Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[求助] 升级到1.5后,进后台操作经常性出现这个错误(Chrome类别的浏览器)

[复制链接]
gjjx 发表于 2010-9-26 14:04:06 | 显示全部楼层 |阅读模式
本帖最后由 gjjx 于 2010-9-28 17:55 编辑

<div class="blockcode"><blockquote>hrefs[j].className = j == (key == 'plugin' ? 1 : 0) ? 'tabon' : ''; } } if(key == 'uc') { parent.main.location = $('header_uc').href + '&a=main&iframe=1'; } setMenuScroll(); } function setMenuScroll() { $('frametable').style.width = document.body.offsetWidth < 1000 ? '1000px' : '100%'; var obj = $('menu_' + menukey); if(!obj) { return; } var scrollh = document.body.offsetHeight - 160; obj.style.overflow = 'visible'; obj.style.height = ''; $('scrolllink').style.display = 'none'; if(obj.offsetHeight + 150 > document.body.offsetHeight && scrollh > 0) { obj.style.overflow = 'hidden'; obj.style.height = scrollh + 'px'; $('scrolllink').style.display = ''; } } function resizeHeadermenu() { var lis = $('topmenu').getElementsByTagName('li'); var maxsize = $('frameuinfo').offsetLeft - 160, widths = 0, moi = -1, mof = ''; if($('menu_mof')) { $('topmenu').removeChild($('menu_mof')); } if($('menu_mof_menu')) { $('append_parent').removeChild($('menu_mof_menu')); } for(var i = 0; i < lis.length; i++) { widths += lis.offsetWidth; if(widths > maxsize) { lis.style.visibility = 'hidden'; var sobj = lis.childNodes[0].childNodes[0]; if(sobj) { mof += '&#8250; ' + sobj.innerHTML + '
'; } } else { lis.style.visibility = 'visible'; } } if(mof) { for(var i = 0; i < lis.length; i++) { if(lis.style.visibility == 'hidden') { moi = i; break; } } mofli = document.createElement('li'); mofli.innerHTML = '&#187;'; mofli.onmouseover = function () { showMenu({'ctrlid':'menu_mof','pos':'43'}); } mofli.id = 'menu_mof'; $('topmenu').insertBefore(mofli, lis[moi]); mofmli = document.createElement('li'); mofmli.className = 'popupmenu_popup'; mofmli.style.width = '150px'; mofmli.innerHTML = mof; mofmli.id = 'menu_mof_menu'; mofmli.style.display = 'none'; $('append_parent').appendChild(mofmli); } } function menuScroll(op, e) { var obj = $('menu_' + menukey); var scrollh = document.body.offsetHeight - 160; if(op == 1) { obj.scrollTop = obj.scrollTop - scrollh; } else if(op == 2) { obj.scrollTop = obj.scrollTop + scrollh; } else if(op == 3) { if(!e) e = window.event; if(e.wheelDelta <= 0 || e.detail > 0) { obj.scrollTop = obj.scrollTop + 20; } else { obj.scrollTop = obj.scrollTop - 20; } } } function menuNewwin(obj) { window.open(obj.parentNode.href); doane(); } function initCpMenus(menuContainerid) { var key = '', lasttabon1 = null, lasttabon2 = null, hrefs = $(menuContainerid).getElementsByTagName('a'); for(var i = 0; i < hrefs.length; i++) { if(menuContainerid == 'leftmenu' && 'action=members&operation=ban&username=%B4%F7%B0%CB'.indexOf(hrefs.href.substr(hrefs.href.indexOf(admincpfilename + '?') + admincpfilename.length + 1)) != -1) { if(lasttabon1) { lasttabon1.className = ''; } key = hrefs.parentNode.parentNode.id.substr(5); hrefs.className = 'tabon'; lasttabon1 = hrefs; } if(!hrefs.getAttribute('ajaxtarget')) hrefs.onclick = function() { if(menuContainerid != 'custommenu') { var lis = $(menuContainerid).getElementsByTagName('li'); for(var k = 0; k < lis.length; k++) { if(lis[k].firstChild && lis[k].firstChild.className != 'menulink') lis[k].firstChild.className = ''; } if(this.className == '') this.className = menuContainerid == 'leftmenu' ? 'tabon' : ''; } if(menuContainerid != 'leftmenu') { var hk, currentkey; var leftmenus = $('leftmenu').getElementsByTagName('a'); for(var j = 0; j < leftmenus.length; j++) { hk = leftmenus[j].parentNode.parentNode.id.substr(5); if(this.href.indexOf(leftmenus[j].href) != -1) { if(lasttabon2) { lasttabon2.className = ''; } leftmenus[j].className = 'tabon'; lasttabon2 = leftmenus[j]; if(hk != 'index') currentkey = hk; } else { leftmenus[j].className = ''; } } if(currentkey) toggleMenu(currentkey); hideMenu(); } } } return key; } var header_key = initCpMenus('leftmenu'); toggleMenu(header_key ? header_key : 'index'); function initCpMap() { var ul, hrefs, s = '', count = 0; for(var k in headers) { if(headers[k] != 'index' && headers[k] != 'uc') { s += '
' + $('header_' + headers[k]).innerHTML + '
'; ul = $('menu_' + headers[k]); if(!ul) { continue; } hrefs = ul.getElementsByTagName('a'); for(var i = 0; i < hrefs.length; i++) { s += '
' + hrefs.innerHTML + '
'; } s += '
'; count++; } } var width = (count > 11 ? 11 : count) * 80; s = '
管理中心导航

' + '
' + s + '
'; $('cmain').innerHTML = s; $('cmain').style.width = (width > 1000 ? 1000 : width) + 'px'; } initCpMap(); initCpMenus('mapmenu'); var cmcache = false; function showMap() { showMenu({'ctrlid':'cpmap','evt':'click', 'duration':3, 'pos':'00'}); } function resetEscAndF5(e) { e = e ? e : window.event; actualCode = e.keyCode ? e.keyCode : e.charCode; if(actualCode == 27) { if($('cpmap_menu').style.display == 'none') { showMap(); } else { hideMenu(); } } if(actualCode == 116 && parent.main) { parent.main.location.reload(); if(document.all) { e.keyCode = 0; e.returnValue = false; } else { e.cancelBubble = true; e.preventDefault(); } } } function uc_left_menu(uc_menu_data) { var leftmenu = $('menu_uc'); leftmenu.innerHTML = ''; var html_str = ''; for(var i=0;i'+uc_menu_data+''; } leftmenu.innerHTML = html_str; } var uc_left_last = null; function uc_left_switch(obj) { if(uc_left_last) { uc_left_last.className = ''; } obj.className = 'tabon'; uc_left_last = obj; } function uc_modify_sid(sid) { $('header_uc').href = 'http://www.2y2r.org/uc_server/admin.php?m=frame'; } _attachEvent(document.documentElement, 'keydown', resetEscAndF5); _attachEvent(window, 'resize', setMenuScroll, document); _attachEvent(window, 'resize', resizeHeadermenu, document); if(BROWSER.ie){ $('leftmenu').onmousewheel = function(e) { menuScroll(3, e) }; } else { $('leftmenu').addEventListener("DOMMouseScroll", function(e) { menuScroll(3, e) }, false); } resizeHeadermenu();</blockquote></div><br />



经常出现呀,这是什么情况?IE浏览器无此问题
dis.cuz. 发表于 2010-9-26 14:16:45 | 显示全部楼层
回复 gjjx 的帖子

做什么操作出现的呢?
回复

使用道具 举报

 楼主| gjjx 发表于 2010-9-26 14:20:30 | 显示全部楼层
回复 dis.cuz. 的帖子

任何操作都有可能出现,偶然性出现,没有固定做什么操作
回复

使用道具 举报

精品科技 发表于 2010-9-26 14:23:42 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-9-29 16:22 , Processed in 0.692638 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表