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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

关于DZ程序IE无法打开INTERNET站点的解决办法[分享]

[复制链接]
rost 发表于 2006-10-25 22:38:08 | 显示全部楼层
"倔犟的牛"我的论坛一直就是这个嘛!看看我的签名就知道了!呵!其实个人感觉这个空间是个噱头!会挂的很早的!
回复

使用道具 举报

 楼主| 倔犟的牛 发表于 2006-10-25 22:40:47 | 显示全部楼层
哈哈,肯定啦。4G哦。能申请多少个人。能用多久就用多久吧。反正不要钱。
回复

使用道具 举报

飞越 发表于 2006-11-12 16:32:20 | 显示全部楼层
兄弟特来致谢,刚刚用你的方法解决了我的问题,我的网站打不开了好在去掉了显示友好的HTTP错误信息所以很知道是include/menu.js的问题,用这几个字也跑遍了搜索引擎,没有打到答案,但在DISCUZ论坛,用这几个字符搜索,直接就进入了你的主题.谢谢!!
回复

使用道具 举报

飞越 发表于 2006-11-12 18:10:30 | 显示全部楼层

回复 #13 飞越 的帖子

又出现了一个问题,字号和颜色下拉框不能用了,请问与这次改动有没有关系?怎样解决才好?谢谢!!
回复

使用道具 举报

 楼主| 倔犟的牛 发表于 2006-11-12 18:39:15 | 显示全部楼层

回复 #14 飞越 的帖子

有关系的。MENU.JS不能直接去掉,需要修改,你参考我一楼帖出的方法就可解决。


你是个好同志啊,解决了还留个名!!
回复

使用道具 举报

飞越 发表于 2006-11-12 19:47:11 | 显示全部楼层
呵呵,我对这些代码根本看不懂,是用你那些代码覆盖的,还是你看看应该改那里吧,

  1. /******************************************************************************
  2.   Crossday Discuz! Board - Floating Advertisements for Discuz!
  3.   Copyright 2001-2006 Comsenz Inc. (http://www.comsenz.com)
  4. *******************************************************************************/
  5. if (document.readyState!="complete") return ;
  6. var menuslidetimer = null;
  7. function Popup_Handler() {
  8. this.open_steps = 2;
  9. this.open_fade = false;
  10. this.active = false;
  11. this.menus = new Array();
  12. this.activemenu = null;
  13. this.hidden_selects = new Array();

  14.         this.activate = function(active) {
  15.                 this.active = active;
  16.         }

  17.         this.register = function(clickactive, controlkey, noimage) {
  18.                 this.menus[controlkey] = new Popup_Menu(clickactive, controlkey, noimage);
  19.                 return this.menus[controlkey];
  20.         }

  21.         this.hide = function() {
  22.                 if(this.activemenu != null) this.menus[this.activemenu].hide();
  23.         }
  24. }

  25. function Popup_Events() {
  26.         this.controlobj_show = function(e) {
  27.                 doane(e);
  28.                 clearTimeout(this.slidetimer);
  29.                 if(popupmenu.activemenu == null || popupmenu.menus[popupmenu.activemenu].controlkey != this.id)        {popupmenu.menus[this.id].show(this, false, popupmenu.menus[this.id].clickactive);}
  30.         }

  31.         this.controlobj_onclick = function(e) {
  32.                 doane(e);
  33.                 if(popupmenu.activemenu == null || popupmenu.menus[popupmenu.activemenu].controlkey != this.id)        {popupmenu.menus[this.id].show(this, false, popupmenu.menus[this.id].clickactive);}
  34.                 else {popupmenu.menus[this.id].hide();}
  35.         }

  36.         this.controlobj_onmouseover = function(e) {
  37.                 doane(e);
  38.                 popupmenu.menus[this.id].hover(this);
  39.         }

  40.         this.menuoption_onclick_function = function(e) {
  41.                 this.ofunc(e);
  42.                 popupmenu.menus[this.controlkey].hide();
  43.         }

  44.         this.menuoption_onclick_link = function(e) {
  45.                 popupmenu.menus[this.controlkey].choose(e, this);
  46.         }

  47.         this.menuoption_onmouseover = function(e) {
  48.                 this.className = 'popupmenu_highlight';
  49.         }

  50.         this.menuoption_onmouseout = function(e) {
  51.                 this.className = 'popupmenu_option';
  52.         }
  53. }

  54. popupmenu = new Popup_Handler();
  55. popupevents = new Popup_Events();

  56. function popupmenu_hide(e) {
  57.         if(e && e.button && e.button != 1 && e.type == 'click')  return true;
  58.         else popupmenu.hide();
  59. }

  60. function Popup_Menu(clickactive, controlkey, noimage) {
  61.         this.controlkey = controlkey;
  62.         this.clickactive = clickactive;
  63.         this.menuname = this.controlkey.split('.')[0] + '_menu';
  64.         if($(this.menuname)) {this.init_menu(clickactive);}
  65.         this.slide_open = (is_opera ? false : true);
  66.         this.open_steps = popupmenu.open_steps;

  67.         this.init_control = function(noimage) {
  68.                 this.controlobj = $(this.controlkey);
  69.                 this.controlobj.state = false;
  70.                 if(this.controlobj.firstChild && (this.controlobj.firstChild.tagName == 'TEXTAREA' || this.controlobj.firstChild.tagName == 'INPUT')) {
  71.                 } else {
  72.                         if(!this.clickactive && !noimage && !(is_mac && is_ie)) {
  73.                                 var img = document.createElement('img');
  74.                                 img.src = 'images/common/jsmenu.gif';
  75.                                 img.border = 0;
  76.                                 img.title = '';
  77.                                 img.alt = '';
  78.                                 this.controlobj.appendChild(img);
  79.                         }
  80.                         this.controlobj.unselectable = true;
  81.                         if(!noimage) {
  82.                                 this.controlobj.style.cursor = is_ie ? 'hand' : 'pointer';
  83.                         }
  84.                         if(clickactive) {
  85.                                 this.controlobj.onclick = popupevents.controlobj_onclick;
  86.                                 this.controlobj.onmouseover = popupevents.controlobj_onmouseover;
  87.                         } else {
  88.                                 this.controlobj.onmouseover = popupevents.controlobj_show;
  89.                         }
  90.                 }
  91.         }

  92.         this.init_control( noimage);

  93.         this.init_menu = function() {
  94.                 this.menuobj = $(this.menuname);
  95.                 if(this.menuobj && !this.menuobj.initialized) {
  96.                         this.menuobj.initialized = true;
  97.                         this.menuobj.onclick = ebygum;
  98.                         this.menuobj.style.position = 'absolute';
  99.                         if(!this.clickactive) {
  100.                                 this.menuobj.onmouseover = function() {
  101.                                         clearTimeout(menuslidetimer);
  102.                                 }
  103.                                 this.menuobj.onmouseout = function() {
  104.                                         menuslidetimer = setTimeout("menuhide()",500);
  105.                                 }
  106.                         }
  107.                         this.menuobj.style.zIndex = 50;
  108.                         if(is_ie && !is_mac) {
  109.                                 this.menuobj.style.filter += "progid:DXImageTransform.Microsoft.shadow(direction=135,color=#CCCCCC,strength=2)";
  110.                         }
  111.                         this.init_menu_contents();
  112.                 }
  113.         }

  114.         this.init_menu_contents = function() {
  115.                 var tds = findtags(this.menuobj, 'td');
  116.                 for(var i = 0; i < tds.length; i++) {
  117.                         if(tds[i].className == 'popupmenu_option' || tds[i].className == 'editor_colornormal') {
  118.                                 if(is_ie && !is_mac) {
  119.                                         tds[i].style.filter += "progid:DXImageTransform.Microsoft.Alpha(opacity=85,finishOpacity=100,style=0)";
  120.                                 }
  121.                                 tds[i].style.opacity = 0.85;
  122.                                 if(tds[i].title && tds[i].title == 'nohighlight') {
  123.                                         tds[i].title = '';
  124.                                 } else {
  125.                                         tds[i].controlkey = this.controlkey;
  126.                                         if(tds[i].className != 'editor_colornormal') {
  127.                                                 tds[i].onmouseover = popupevents.menuoption_onmouseover;
  128.                                                 tds[i].onmouseout = popupevents.menuoption_onmouseout;
  129.                                         }
  130.                                         if(typeof tds[i].onclick == 'function') {
  131.                                                 tds[i].ofunc = tds[i].onclick;
  132.                                                 tds[i].onclick = popupevents.menuoption_onclick_function;
  133.                                         } else {
  134.                                                 tds[i].onclick = popupevents.menuoption_onclick_link;
  135.                                         }
  136.                                         if(!is_saf && !is_kon)        {
  137.                                                 try {
  138.                                                         links = findtags(tds[i], 'a');
  139.                                                         for(var j = 0; j < links.length; j++) {
  140.                                                                 if(typeof links[j].onclick  == 'undefined') links[j].onclick = ebygum;
  141.                                                         }
  142.                                                 }
  143.                                                 catch(e) {}
  144.                                         }
  145.                                 }
  146.                         }
  147.                 }
  148.         }

  149.         this.show = function(obj, instant) {
  150.                 if(!popupmenu.active){return false;}
  151.                 else if(!this.menuobj)        {this.init_menu();}
  152.                 if(!this.menuobj) {return false;}
  153.                 if(popupmenu.activemenu != null) {popupmenu.menus[popupmenu.activemenu].hide();}
  154.                 popupmenu.activemenu = this.controlkey;
  155.                 this.menuobj.style.display = '';
  156.                 if(popupmenu.slide_open) {this.menuobj.style.clip = 'rect(auto, auto, auto, auto)';}
  157.                 this.pos = this.fetch_offset(obj);
  158.                 this.leftpx = this.pos['left'];
  159.                 this.toppx = this.pos['top'] + obj.offsetHeight;
  160.                 if((this.leftpx + this.menuobj.offsetWidth) >= document.body.clientWidth && (this.leftpx + obj.offsetWidth - this.menuobj.offsetWidth) > 0) {
  161.                         this.leftpx = this.leftpx + obj.offsetWidth - this.menuobj.offsetWidth;
  162.                         this.direction = 'right';
  163.                 } else {this.direction = 'left';}
  164.                 this.menuobj.style.left = this.leftpx + 'px';
  165.                 this.menuobj.style.top  = this.toppx + 'px';
  166.                 if(!instant && this.slide_open) {
  167.                         this.intervalX = Math.ceil(this.menuobj.offsetWidth / this.open_steps);
  168.                         this.intervalY = Math.ceil(this.menuobj.offsetHeight / this.open_steps);
  169.                         this.slide((this.direction == 'left' ? 0 : this.menuobj.offsetWidth), 0, 0);
  170.                 } else if(this.menuobj.style.clip && popupmenu.slide_open) {
  171.                         this.menuobj.style.clip = 'rect(auto, auto, auto, auto)';
  172.                 }
  173.                 this.handle_overlaps(true);
  174.                 if(this.menuobj.scrollHeight > 400) {
  175.                         this.menuobj.style.height = '400px';
  176.                         if(is_ie || is_opera) {
  177.                                 this.menuobj.style.width = this.menuobj.scrollWidth + 18;
  178.                         }
  179.                         if(is_opera) {
  180.                                 this.menuobj.style.overflow = 'scroll';
  181.                         } else {
  182.                                 this.menuobj.style.overflowY = 'scroll';
  183.                         }
  184.                 }
  185.         }

  186.         this.hide = function(e) {
  187.                 if(e && e.button && e.button != 1) {return true;}
  188.                 this.stop_slide();
  189.                 this.menuobj.style.display = 'none';
  190.                 this.handle_overlaps(false);
  191.                 popupmenu.activemenu = null;
  192.         }

  193.         this.slidehide = function() {
  194.                 popupmenu.menus[popupmenu.activemenu].hide()
  195.         }

  196.         this.hover = function(obj, clickactive) {
  197.                 if(popupmenu.activemenu != null) {
  198.                         if(popupmenu.menus[popupmenu.activemenu].controlkey != this.id) {this.show(obj, true, clickactive);}
  199.                 }
  200.         }

  201.         this.choose = function(e, obj) {
  202.                 var links = findtags(obj, 'a');
  203.                 if(links[0]) {
  204.                         if(is_ie) {
  205.                                 links[0].click();
  206.                                 window.event.cancelBubble = true;
  207.                         } else {
  208.                                 if(e.shiftKey) {
  209.                                         window.open(links[0].href);
  210.                                         e.stopPropagation();
  211.                                         e.preventDefault();
  212.                                 } else {
  213.                                         window.location = links[0].href;
  214.                                         e.stopPropagation();
  215.                                         e.preventDefault();
  216.                                 }
  217.                         }
  218.                         this.hide();
  219.                 }
  220.         }

  221.         this.slide = function(clipX, clipY, opacity) {
  222.                 if(this.direction == 'left' && (clipX < this.menuobj.offsetWidth || clipY < this.menuobj.offsetHeight)) {
  223.                         if(popupmenu.open_fade && is_ie) {
  224.                                 opacity += 10;
  225.                                 this.menuobj.filters.item('DXImageTransform.Microsoft.alpha').opacity = opacity;
  226.                         }
  227.                         clipX += this.intervalX;
  228.                         clipY += this.intervalY;
  229.                         this.menuobj.style.clip = "rect(auto, " + clipX + "px, " + clipY + "px, auto)";
  230.                         this.slidetimer = setTimeout("popupmenu.menus[popupmenu.activemenu].slide(" + clipX + ", " + clipY + ", " + opacity + ");", 0);
  231.                 } else if(this.direction == 'right' && (clipX > 0 || clipY < this.menuobj.offsetHeight)) {
  232.                         if(popupmenu.open_fade && is_ie) {
  233.                                 opacity += 10;
  234.                                 menuobj.filters.item('DXImageTransform.Microsoft.alpha').opacity = opacity;
  235.                         }
  236.                         clipX -= this.intervalX;
  237.                         clipY += this.intervalY;
  238.                         this.menuobj.style.clip = "rect(auto, " + this.menuobj.offsetWidth + "px, " + clipY + "px, " + clipX + "px)";
  239.                         this.slidetimer = setTimeout("popupmenu.menus[popupmenu.activemenu].slide(" + clipX + ", " + clipY + ", " + opacity + ");", 0);
  240.                 } else {this.stop_slide();}
  241.         }

  242.         this.stop_slide = function() {
  243.                 clearTimeout(this.slidetimer);
  244.                 this.menuobj.style.clip = 'rect(auto, auto, auto, auto)';
  245.                 if(popupmenu.open_fade && is_ie) {this.menuobj.filters.item('DXImageTransform.Microsoft.alpha').opacity = 100;}
  246.         }

  247.         this.fetch_offset = function(obj) {
  248.                 var left_offset = obj.offsetLeft;
  249.                 var top_offset = obj.offsetTop;
  250.                 while ((obj = obj.offsetParent) != null) {
  251.                         left_offset += obj.offsetLeft;
  252.                         top_offset += obj.offsetTop;
  253.                 }
  254.                 return { 'left' : left_offset, 'top' : top_offset };
  255.         }

  256.         this.overlaps = function(obj, m) {
  257.                 var s = new Array();
  258.                 var pos = this.fetch_offset(obj);
  259.                 s['L'] = pos['left'];
  260.                 s['T'] = pos['top'];
  261.                 s['R'] = s['L'] + obj.offsetWidth;
  262.                 s['B'] = s['T'] + obj.offsetHeight;
  263.                 if(s['L'] > m['R'] || s['R'] < m['L'] || s['T'] > m['B'] || s['B'] < m['T']) {return false;}
  264.                 return true;
  265.         }

  266.         this.handle_overlaps = function(dohide) {
  267.                 if(is_ie) {
  268.                         var selects = findtags(document, 'select');
  269.                         if(dohide) {
  270.                                 var menuarea = new Array(); menuarea = {
  271.                                         'L' : this.leftpx,
  272.                                         'R' : this.leftpx + this.menuobj.offsetWidth,
  273.                                         'T' : this.toppx,
  274.                                         'B' : this.toppx + this.menuobj.offsetHeight
  275.                                 };
  276.                                 for(var i = 0; i < selects.length; i++) {
  277.                                         if(this.overlaps(selects[i], menuarea)) {
  278.                                                 var hide = true;
  279.                                                 var s = selects[i];
  280.                                                 while (s = s.parentNode) {
  281.                                                         if(s.className == 'popupmenu_popup') {
  282.                                                                 hide = false;
  283.                                                                 break;
  284.                                                         }
  285.                                                 }
  286.                                                 if(hide) {
  287.                                                         selects[i].style.visibility = 'hidden';
  288.                                                         arraypush(popupmenu.hidden_selects, i);
  289.                                                 }
  290.                                         }
  291.                                 }
  292.                         } else {
  293.                                 while (true) {
  294.                                         var i = arraypop(popupmenu.hidden_selects);
  295.                                         if(typeof i == 'undefined' || i == null) break;
  296.                                         else selects[i].style.visibility = 'visible';
  297.                                 }
  298.                         }
  299.                 }
  300.         }
  301. }

  302. function doane(eventobj) {
  303.         if(!eventobj || is_ie)        {
  304.                 window.event.returnValue = false;
  305.                 window.event.cancelBubble = true;
  306.                 return window.event;
  307.         } else {
  308.                 eventobj.stopPropagation();
  309.                 eventobj.preventDefault();
  310.                 return eventobj;
  311.         }
  312. }

  313. function ebygum(eventobj) {
  314.         if(!eventobj || is_ie) {
  315.                 window.event.cancelBubble = true;
  316.                 return window.event;
  317.         } else {
  318.                 if(eventobj.target.type == 'submit')  eventobj.target.form.submit();
  319.                 eventobj.stopPropagation();
  320.                 return eventobj;
  321.         }
  322. }

  323. function menuregister(clickactive, controlid, noimage, datefield) {
  324.         if(typeof popupmenu == 'object') {
  325.                 popupmenu.register(clickactive, controlid, noimage);
  326.         }
  327. }

  328. function menuhide() {
  329.         if(popupmenu.activemenu != null) {
  330.                 popupmenu.menus[popupmenu.activemenu].slidehide();
  331.         }
  332. }

  333. if(typeof popupmenu == 'object') {
  334.         if(window.attachEvent && !is_saf) {
  335.                 document.attachEvent('onclick', popupmenu_hide);
  336.                 window.attachEvent('onresize', popupmenu_hide);
  337.         } else if(document.addEventListener && !is_saf) {
  338.                 document.addEventListener('click', popupmenu_hide, false);
  339.                 window.addEventListener('resize', popupmenu_hide, false);
  340.         } else {
  341.                 window.onclick = popupmenu_hide;
  342.                 window.onresize = popupmenu_hide;
  343.         }
  344.         popupmenu.activate(true);
  345. }
复制代码
回复

使用道具 举报

 楼主| 倔犟的牛 发表于 2006-11-12 21:12:27 | 显示全部楼层
你更新缓存过了吧?
回复

使用道具 举报

szg_000 发表于 2006-11-12 21:20:28 | 显示全部楼层

多向 牛斑竹 学习

好贴一定要顶,
回复

使用道具 举报

飞越 发表于 2006-11-13 05:45:40 | 显示全部楼层
早上好!
     当时没有更新缓存,今天早晨更新了下,但问题仍然有
回复

使用道具 举报

飞越 发表于 2006-11-13 12:59:11 | 显示全部楼层
不用找原因了,我改回原文件更新了一下缓存开始出现乱码,但打开一个页面后又正常了,现在打开正常了

以后再出现这样的情况你用你的方法弄一下,然后再改回来,呵呵
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-21 22:15 , Processed in 0.100179 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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