回复 18# 杨修GG
(event) {e = event ? event : window.event;if(!e) return;if(BROWSER.ie) {e.returnValue = false;e.cancelBubble = true;} else
if(e) {e.stopPropagation();e.preventDefault();}}function _attachEvent(obj, evt, func, eventobj) {eventobj = !eventobj ? obj :
eventobj;if(obj.addEventListener) {obj.addEventListener(evt, func, false);} else if(eventobj.attachEvent) {obj.attachEvent
('on' + evt, func);}}function _detachEvent(obj, evt, func, eventobj) {eventobj = !eventobj ? obj : eventobj;if
(obj.removeEventListener) {obj.removeEventListener(evt, func, false);} else if(eventobj.detachEvent) {obj.detachEvent('on' +
evt, func);}}function setcookie(cookieName, cookieValue, seconds, path, domain, secure) {var expires = new Date
();expires.setTime(expires.getTime() + seconds * 1000);domain = !domain ? cookiedomain : domain;path = !path ? cookiepath :
path;document.cookie = escape(cookieName) + '=' + escape(cookieValue)+ (expires ? '; expires=' + expires.toGMTString() : '')+
(path ? '; path=' + path : '/')+ (domain ? '; domain=' + domain : '')+ (secure ? '; secure' : '');}function getcookie(name)
{var cookie_start = document.cookie.indexOf(name);var cookie_end = document.cookie.indexOf(";", cookie_start);return
cookie_start == -1 ? '' : unescape(document.cookie.substring(cookie_start + name.length + 1, (cookie_end > cookie_start ?
cookie_end : document.cookie.length)));}function thumbImg(obj, method) {if(!obj) {return;}obj.onload = null;file = obj.src;zw
= obj.offsetWidth;zh = obj.offsetHeight;if(zw < 2) {if(!obj.id) {obj.id = 'img_' + Math.random();}setTimeout("thumbImg($('" +
obj.id + "'), " + method + ")", 100);return;}zr = zw / zh;method = !method ? 0 : 1;if(method) {fixw = obj.getAttribute
('_width');fixh = obj.getAttribute('_height');if(zw > fixw) {zw = fixw;zh = zw / zr;}if(zh > fixh) {zh = fixh;zw = zh * zr;}}
else {var widthary = imagemaxwidth.split('%');if(widthary.length > 1) {fixw = $('wrap').clientWidth - 200;if(widthary[0])
{fixw = fixw * widthary[0] / 100;} else if(widthary[1]) {fixw = fixw < widthary[1] ? fixw : widthary[1];}} else {fixw =
widthary[0];}if(zw > fixw) {zw = fixw;zh = zw / zr;obj.style.cursor = 'pointer';if(!obj.onclick) {obj.onclick = function()
{zoom(obj, obj.src);};}}}obj.width = zw;obj.height = zh;}function imgzoom() {}function attachimg() {}function setCopy(text,
msg){if(BROWSER.ie) {clipboardData.setData('Text', text);if(msg) {showDialog(msg, 'notice');}} else {var msg = '<div
style="text-decoration:underline;">点此复制到剪贴板</div>' +AC_FL_RunContent('id', 'clipboardswf', 'name', 'clipboardswf',
'devicefont', 'false', 'width', '120', 'height', '40', 'src', 'images/common/clipboard.swf', 'menu', 'false',
'allowScriptAccess', 'sameDomain', 'swLiveConnect', 'true', 'wmode', 'transparent', 'style' , 'margin-top:-20px');showDialog
(msg, 'info');text = text.replace(/[\xA0]/g, ' ');clipboardswfdata = text;}}function getClipboardData()
{window.document.clipboardswf.SetVariable('str', clipboardswfdata);}function saveData(ignoreempty) {var ignoreempty =
isUndefined(ignoreempty) ? 0 : ignoreempty;var obj = $('postform') && (($('fwin_newthread') &&
$('fwin_newthread').style.display == '') || ($('fwin_reply') && $('fwin_reply').style.display == '')) ? $('postform') :
($('fastpostform') ? $('fastpostform') : $('postform'));if(!obj) return;var data = subject = message = '';for(var i = 0; i <
obj.elements.length; i++) {var el = obj.elements;if(el.name != '' && (el.tagName == 'TEXTAREA' || el.tagName == 'INPUT' &&
(el.type == 'text' || el.type == 'checkbox' || el.type == 'radio')) && el.name.substr(0, 6) != 'attach') {var elvalue =
el.value;if(el.name == 'subject') {subject = trim(elvalue);} else if(el.name == 'message') {if(typeof wysiwyg != 'undefined'
&& wysiwyg == 1) {elvalue = html2bbcode(editdoc.body.innerHTML);}message = trim(elvalue);}if((el.type == 'checkbox' ||
el.type == 'radio') && !el.checked) {continue;}if(trim(elvalue)) {data += el.name + String.fromCharCode(9) + el.tagName +
String.fromCharCode(9) + el.type + String.fromCharCode(9) + elvalue + String.fromCharCode(9, 9);}}}if(!subject && !message &&
!ignoreempty) {return;}if(BROWSER.ie){with(document.documentElement) {setAttribute("value", data);save('Discuz');}} else if
(window.sessionStorage){sessionStorage.setItem('Discuz', data);}}function switchAdvanceMode(url) {var obj = $('postform') &&
(($('fwin_newthread') && $('fwin_newthread').style.display == '') || ($('fwin_reply') && $('fwin_reply').style.display ==
'')) ? $('postform') : $('fastpostform');if(obj && obj.message.value != '') {saveData();url += '&cedit=yes';}location.href =
url;return false;}function updatestring(str1, str2, clear) {str2 = '_' + str2 + '_';return clear ? str1.replace(str2, '') :
(str1.indexOf(str2) == -1 ? str1 + str2 : str1);}function toggle_collapse(objname, noimg, complex, lang) {var obj =
$(objname);if(obj) {obj.style.display = obj.style.display == '' ? 'none' : '';var collapsed = getcookie
('discuz_collapse');collapsed = updatestring(collapsed, objname, !obj.style.display);setcookie('discuz_collapse', collapsed,
(collapsed ? 2592000 : -2592000));}if(!noimg) {var img = $(objname + '_img');if(img.tagName != 'IMG') {if
(img.className.indexOf('_yes') == -1) {img.className = img.className.replace(/_no/, '_yes');if(lang) {img.innerHTML = lang
negligible ? '<a |