導航欄的下拉菜單在IE6.0的版本可以正常顯示,換到IE7.0的版本無法顯示。


求助:導航欄的下拉菜單在IE6.0的版本可以正常顯示,換到IE7.0的版本無法顯示。
謝謝。

10 个解决方案

#1


兼容。。。
IE6 和7的標准不同
7可以作為FF來新建css

#2


IE7對div滴解釋有些變化,貼源碼出來調一調就行了!

#3


<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@page import="cn.gov.sgs.utils.HandleString;"%>

<SCRIPT language=JavaScript type=text/JavaScript>function mmLoadMenus() {
                           window.mm_menu_0921101155_0 = new Menu("root",76,18,"",12,"#000000","#FF0000","#FFFFD9","#FFFFD9","center","middle",3,0,100,-5,7,true,true,true,0,true,true);
   mm_menu_0921101155_0.addMenuItem("常見問題","window.open('#', '_blank');");
   mm_menu_0921101155_0.addMenuItem("在線咨詢","window.open('#', '_blank');");
   mm_menu_0921101155_0.hideOnMouseOut=true;
   mm_menu_0921101155_0.bgColor='#FEC202';
   mm_menu_0921101155_0.menuBorder=1;
   mm_menu_0921101155_0.menuLiteBgColor='#FEC202';
   mm_menu_0921101155_0.menuBorderBgColor='#FEC202';
   window.mm_menu_0921101312_0 = new Menu("root",76,18,"",12,"#000000","#FF0000","#FFFFD9","#FFFFD9","left","middle",3,0,100,-5,7,true,true,true,0,true,true);
   mm_menu_0921101312_0.addMenuItem("常見問題","window.open('#', '_blank');");
   mm_menu_0921101312_0.addMenuItem("在線咨詢","window.open('#', '_blank');");
   mm_menu_0921101312_0.hideOnMouseOut=true;
   mm_menu_0921101312_0.bgColor='#FEC202';
   mm_menu_0921101312_0.menuBorder=1;
   mm_menu_0921101312_0.menuLiteBgColor='#FEC202';
   mm_menu_0921101312_0.menuBorderBgColor='#FEC202';

   mm_menu_0921101312_0.writeMenus();
} // mmLoadMenus()
 


//彈出框
//window.open ("bullet5.html","sec2","height=190,width=270,toolbar=no,status=no,scrollbars=no,Top=100,Left=230,resizable=no");
//window.open ("bullet6.html","sec3","height=190,width=270,toolbar=no,status=no,scrollbars=no,Top=150,Left=300,resizable=no");
//window.open ("bullet7.html","sec1","height=190,width=270,toolbar=no,status=no,scrollbars=no,Top=150,Left=300,resizable=no");
//window.open ("bullet8.html","sec4","height=190,width=270,toolbar=no,status=no,scrollbars=no,Top=250,Left=440,resizable=no");
//window.open ("bullet/bullet4.html","sec3","height=190,width=270,toolbar=no,status=no,scrollbars=no,Top=100,Left=200,resizable=no");

//window.open ("bullet2005_12_26.html","sec1","height=190,width=260,toolbar=no,status=no,scrollbars=no,Top=100,Left=200,resizable=no");
//window.open ("bullet2006_01_10.html","sec2","height=190,width=270,toolbar=no,status=no,scrollbars=no,Top=100,Left=200,resizable=no");
//window.open ("bullet2006_02_22_2.htm","sec3","height=190,width=270,toolbar=no,status=no,scrollbars=no,Top=100,Left=200,resizable=no");
//window.open ("bullet2006_02_22_1.htm","sec4","height=190,width=270,toolbar=no,status=no,scrollbars=no,Top=150,Left=250,resizable=no");
//window.open ("bullet2006_03_10.htm","sec5","height=190,width=270,toolbar=no,status=no,scrollbars=no,Top=200,Left=300,resizable=no"); 
//window.open ("bullet2006_03_13.htm","sec5","height=190,width=270,toolbar=no,status=no,scrollbars=no,Top=150,Left=250,resizable=no"); 
//window.open ("bullet2006_04_17.htm","sec6","height=190,width=270,toolbar=no,status=no,scrollbars=no,Top=200,Left=300,resizable=no");  
//window.open ("bullet2006_05_11.htm","sec7","height=190,width=270,toolbar=no,status=no,scrollbars=no,Top=250,Left=350,resizable=no");  


</SCRIPT>
<SCRIPT language=JavaScript type=text/JavaScript>
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
//-->
</SCRIPT>
<jsp:include page="config_url.jsp"/>
<link href="${SystemUR}style.css" rel="stylesheet" type="text/css" />
<% 
//獲取當前時間
HandleString hs = new HandleString();
String dateStr = hs.getCurrentlyDateString(true);
%>

<table width="1002" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
   <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="1002" height="100">
      <param name="movie" value="${SystemUR}1002x100.swf">
      <param name="quality" value="high">
      <embed src="images/top.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="1002" height="100"></embed>
    </object></td>
  </tr>
  <tr>
   <td height="32" background="${SystemUR}images/index_r2_c1.jpg">
<table width="1002" border="0" align="center" cellpadding="0" cellspacing="0" class="STYLE22">
     <tr align="center">
       <td width="167" height="32">
  <%=dateStr%></td>
       <td width="44"onMouseOver="MM_showHideLayers('menu0','','show')" 
          onmouseout="MM_showHideLayers('menu0','','hide')"><a href="${SystemURL}sabicsgs/index.jsp" class="blue">首頁</a></td>
       <td width="8" class="STYLE7">|</td>
       <td width="132"onMouseOver="MM_showHideLayers('menu1','','show')" 
          onmouseout="MM_showHideLayers('menu1','','hide')"><a href="${SystemURL}sgs/zfxxgk/zf.jsp" class="blue">政府信息公開</a></td>
       <td width="8" class="STYLE7">|</td>
       <td width="88" onMouseOver="MM_showHideLayers('menu2','','show')" 
          onmouseout="MM_showHideLayers('menu2','','hide')"><a href="#" class="blue">網上辦事</a></td>
       <td width="8" class="STYLE7">|</td>
       <td width="88"onMouseOver="MM_showHideLayers('menu301','','show')" 
          onmouseout="MM_showHideLayers('menu301','','hide')"><a href="#" class="blue">為您服務</a></td>
       <td width="8" class="STYLE7">|</td>
       <td width="88" onMouseOver="MM_showHideLayers('menu4','','show')" 
          onmouseout="MM_showHideLayers('menu4','','hide')"><a href="#" class="blue">網上互動</a></td>
       <td width="8" class="STYLE7">|</td>
       <td width="110"onMouseOver="MM_showHideLayers('menu5','','show')" 
          onmouseout="MM_showHideLayers('menu5','','hide')"><a href="${SystemURL}sgs/v1/lxztc_index.jsp" class="blue">聯系直通車</a></td>
       <td width="8" class="STYLE7">|</td>
   <td width="91"><a href="${SystemURL}sgs/en/index.jsp" class="blue">ENGLISH</a></td>
   <td width="8" class="STYLE7">|</td>
   <td width="130"><a href="${SystemUR}sys_guide.jsp" class="blue" target="_blank">在線操作指南</a></td>
     </tr>
   </table></td>
  </tr>
</table> 

在html里是正常的,include后就不行了。

#4


是啊,怎么解決啊,
期待高手!!

#5


頂上去!!!!
頂上去!!!!頂上去!!!!頂上去!!!!頂上去!!!!頂上去!!!!

#6


我也遇到了此瀏覽器的兼容問題。希望高手幫忙指導。

#7


我也遇到了這個問題,我以為是ie7向下兼容做得不夠好,今天下載了ie8來試了試也不行。我認為yixianggao同志講的有道理。

#8


include一下就不行,怪事/

#9


頂~~~~~~~~~同樣的問題!!!!
希望有人能修改................

#10


是啊,還有我的網站(www.mlfchina.com)也出現了同樣的問題,有沒有高手幫忙解決一下啊

注意!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系我们删除。



 
粤ICP备14056181号  © 2014-2020 ITdaan.com