CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
山寨机中的战斗机! 程序优化工程师到底对IT界有没有贡献
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  Web 开发 >  JavaScript

在IE中能够浏览为什么不能在MOZILA中浏览呢?(附文件)怎么没有人来回阿?倾囊给出所有分了

楼主microguoj()2005-01-01 13:54:12 在 Web 开发 / JavaScript 提问

用javascript写的一页面,在ie中能够正确的显示,可是在mozila中却显示不了。我已经将把  
  document.all.标识号                 改成           document.getElementById("标识号")  
  了,可还是不能正确显示,到底是怎么回事啊?我把员文件贴上来了,大家帮我看看吧  
  有谁知道的告诉我一声,小弟,先谢谢了!  
  问题点数:0、回复次数:2Top

1 楼microguoj()回复于 2005-01-01 13:55:21 得分 0

<!DOCTYPE   HTML   PUBLIC   "-//W3C//DTD   HTML   4.0   Transitional//EN">  
  <!--   saved   from   url=(0039)http://166.111.194.98/baoming/Menu.aspx   -->  
  <HTML>  
  <HEAD>  
  <TITLE>Gps卫星定位查询系统管理员menu页面</TITLE>  
  <META   http-equiv="Content-Type"   content="text/html;   charset=gb2312">  
  </HEAD>  
  <BODY   onresize="cspbRefresh()"   bottomMargin="1"   bgColor="#efefef"   leftMargin="1"   topMargin="1"  
  onload="cspbShowSection(0)"   rightMargin="1">  
  <STYLE   type="text/css">.CSPB   {  
  LEFT:   0px;   POSITION:   relative;   TOP:   0px  
  }  
  .cspbBtnCell   {  
  BACKGROUND-IMAGE:   url(./images/ButtonBackground.gif);   CURSOR:   hand;   HEIGHT:   25px  
  }  
  .cspbBtn   {  
  PADDING-RIGHT:   0px;   PADDING-LEFT:   0px;   FONT-WEIGHT:   normal;   FONT-SIZE:   13px;   COLOR:   #ffffff;   FONT-STYLE:   normal;   FONT-FAMILY:   宋体;   TEXT-ALIGN:   center;   TEXT-DECORATION:   none  
  }  
  .cspbItm   {  
  FONT-WEIGHT:   normal;   FONT-SIZE:   12px;   COLOR:   #005acb;   FONT-STYLE:   normal;   FONT-FAMILY:   宋体;   TEXT-DECORATION:   none  
  }  
  .cspbItm:hover   {  
  FONT-WEIGHT:   bold;   FONT-SIZE:   12px;   COLOR:   #005acb;   FONT-STYLE:   normal;   FONT-FAMILY:   宋体;   TEXT-DECORATION:   none  
  }  
  .cspbItmAlign   {  
  PADDING-RIGHT:   0px;   PADDING-LEFT:   15px;   TEXT-ALIGN:   center  
  }  
  </STYLE>  
  <SCRIPT   language="javascript"   type="text/javascript">  
   
  /////////////////////////////////////////////////  
  //   Coalesys   PanelBar   for   ASP.NET   IE5/6   DHTML   script  
  //   Build   58   COPYRIGHT   2000-2002   Coalesys,   Inc.  
  /////////////////////////////////////////////////  
  var   cspbVS="CSPBPanelBarLoading";  
  ////////  
  var   cspbDV=document.getElementsByTagName('div');  
  ///////  
  var   cspbGD=new   Object();  
  var   cspbID=new   Object();  
  var   cspbBoH=300;var   cspbBuH=0;  
  var   cspbSH=0;  
  var   cspbBM=0;  
  var   cspbBS=0;  
  var   cspbAF=true;  
  var   cspbCT=0;  
  var   cspbCB=0;  
  var   cspbSS=false;  
  var   cspbMA=0;  
  var   cspbUEI="./images/scroll_up_enable.gif";  
  var   cspbUDI="./images/scroll_up_disable.gif";  
  var   cspbUAI="./images/scroll_up_active.gif";  
  var   cspbDEI="./images/scroll_down_enable.gif";  
  var   cspbDDI="./images/scroll_down_disable.gif";  
  var   cspbDownActiveImg="./images/scroll_down_active.gif";  
  var   cspbSelI=0;  
  function   cspbShowSection(id)  
  {  
  if(cspbVS=="CSPBPanelBarLoading")  
  {  
  //document.all.CSPBButtons.style.display="inline";  
  document.getElementById("CSPBButtons").style.display="inline";  
  }  
  if(("CSPBGroup"   +   id)!=cspbVS)  
  {  
  cspbSelI=id;  
  //document.all[cspbVS].style.display="none";  
  cspbDV[cspbVS].style.display="none";  
   
  //cspbGD=document.all["CSPBGroup"   +   id];  
  cspbGD=cspbDV["CSPBGroup"+id];  
   
  cspbGD.style.display="none";  
  cspbVS="CSPBGroup"+id;  
  cspbRS(cspbVS);  
  cspbGD.style.display="inline";  
  cspbPI(id);  
   
  if(cspbID.clientHeight>cspbSH)  
  {  
  ScrollStop=false;  
  cspbCT=0;  
  cspbCB=0;  
  cspbMA=0;  
  cspbCI(id);  
  cspbSP();  
  cspbSI();  
  }  
  else  
  {  
  //document.all.CSPBScrollUp.style.display="none";  
  //document.all.CSPBScrollDown.style.display="none";  
  document.getElementById("CSPBScrollUp").style.display="none";  
  document.getElementById("CSPBScrollDown").style.display="none";  
  }  
  //document.all.CSPanelBar.style.display="none";  
  //document.all.CSPanelBar.style.display="block";  
  document.getElementById("CSPanelBar").style.display="none";  
  document.getElementById("CSPanelBar").style.display="block";  
  }  
  }  
   
  function   cspbRS(id)  
  {  
  cspbSSH(id);  
  if(cspbSH>0)  
  {  
  cspbGD.style.height   =   cspbSH;  
  }  
  }  
   
  function   cspbSSH(id)  
  {  
  if(cspbAF==true)  
  {  
  //cspbBM=document.all.CSPanelBar.offsetTop*2;  
  cspbBM=document.getElementById("CSPanelBar").offsetTop*2;  
   
  cspbBoH=document.body.clientHeight;  
  if(navigator.platform=="MacPPC")  
  {  
  //cspbBuH=document.all.CSPBButtons.clientHeight+(cspbBS*2);  
  cspbBuH=document.getElementById("CSPBButtons").clientHeight+(cspbBS*2);  
  }  
  else  
  {  
  //cspbBuH=document.all.CSPBButtons.offsetHeight+(cspbBS*2);  
  cspbBuH=document.getElementById("CSPBButtons").offsetHeight+(cspbBS*2);  
  }  
  cspbSH=(cspbBoH-cspbBM)-(cspbBuH);  
  }  
  else  
  {  
  //cspbBuH=document.all.CSPBButtons.offsetHeight+(cspbBS*2);  
  cspbBuH=document.getElementById("CSPBButtons").offsetHeight+(cspbBS*2);  
  cspbSH=cspbBoH-cspbBuH;  
  }  
   
  if(cspbSH<32)  
  {  
  cspbSH=32;  
  }  
  }  
   
  function   cspbPI(id)  
  {  
  //cspbID=document.all["CSPBIcons"   +   id];  
  cspbID=cspbDV["CSPBIcons"+id];  
   
  cspbID.style.clip="rect(0   "+cspbGD.clientWidth+"   "+cspbSH+"   0)";  
  cspbID.y=0;  
  if(cspbBS>0   &&   navigator.platform!="MacPPC")  
  {  
  cspbID.y=1;  
  }  
  cspbID.x=cspbBS;  
  var   cspbPO=cspbGD;  
  var   cspbPId="";  
   
  while(cspbPId!="CSPBButtons")  
  {  
  cspbID.y+=cspbPO.offsetTop;  
  cspbPO=cspbPO.parentElement;  
  if(cspbPO.tagName=="TR")  
  {  
  cspbPO=cspbPO.parentElement;  
  }  
  cspbPId=cspbPO.id;  
  }  
  if(navigator.platform=="MacPPC")  
  {  
  cspbID.style.top="auto";  
  cspbID.style.left="auto";  
  }  
  else  
  {  
  cspbID.style.top=cspbID.y;  
  cspbID.style.left=cspbID.x;  
  }  
  }  
   
  function   cspbCI(id)  
  {  
  cspbID.style.clip="rect(0   "+cspbGD.clientWidth+"   "+cspbSH+"   0)";  
  }  
   
  function   cspbSP()  
  {  
  //document.all.CSPBScrollUp.style.top=cspbID.y;  
  //document.all.CSPBScrollUp.style.left=(cspbID.clientWidth-16)+cspbBS;  
  //document.all.CSPBScrollDown.style.top=(cspbID.y+cspbSH)-16;  
  //document.all.CSPBScrollDown.style.left=(cspbID.clientWidth-16)+cspbBS;  
  //document.all.CSPBScrollUp.style.display="block";  
  //document.all.CSPBScrollDown.style.display="block";  
  document.getElementById("CSPBScrollUp").style.top=cspbID.y;  
  document.getElementById("CSPBScrollUp").style.left=(cspbID.clientWidth-16)+cspbBS;  
  document.getElementById("CSPBScrollDown").style.top=(cspbID.y+cspbSH)-16;  
  document.getElementById("CSPBScrollDown").style.left=(cspbID.clientWidth-16)+cspbBS;  
  document.getElementById("CSPBScrollUp").style.display="block";  
  document.getElementById("CSPBScrollDown").style.display="block";  
  }  
   
  function   cspbSI(dir)  
  {  
  var   UE;var   DE;  
  if(cspbCB>=cspbID.clientHeight)  
  {  
  //document.all.CSPBScrollDownImg.src=cspbDDI;  
  document.getElementById("CSPBScrollDownImg").src=cspbDDI;  
  DE=false;  
  }  
  else  
  {  
  //document.all.CSPBScrollDownImg.src=cspbDEI;  
  document.getElementById("CSPBScrollDownImg").src=cspbDEI;  
  DE=true;  
  }  
   
  if(cspbMA   !=   0)  
  {  
  //document.all.CSPBScrollUpImg.src=cspbUEI;  
  document.getElementById("CSPBScrollUpImg").src=cspbUEI;  
  UE=true;  
  }  
  else  
  {  
  //document.all.CSPBScrollUpImg.src=cspbUDI;  
  document.getElementById("CSPBScrollUpImg").src=cspbUDI;  
  UE=false;  
  }  
  if(dir=="inactive")  
  {  
  if(DE==true)  
  {  
  //document.all.CSPBScrollDownImg.src=cspbDEI;  
  document.getElementById("CSPBScrollDownImg").src=cspbDEI;  
  }  
  }  
  else   if(dir=="down")  
  {  
  //document.all.CSPBScrollDownImg.src=cspbDownActiveImg;  
  document.getElementById("CSPBScrollDownImg").src=cspbDownActiveImg;  
  }  
  else   if(dir=="up")  
  {  
  //document.all.CSPBScrollUpImg.src=cspbUAI;  
  document.getElementById("CSPBScrollUpImg").src=cspbUAI;  
  }  
  }  
   
  function   cspbSD(speed)  
  {  
  if(cspbSS==false)  
  {  
  cspbCB=cspbSH+cspbMA;  
  if(cspbCB<cspbID.clientHeight)  
  {  
  cspbMA+=7;cspbID.style.top=cspbID.offsetTop-7;  
  cspbCT=cspbMA;  
  cspbCB=cspbSH+cspbMA;  
  cspbID.style.clip="rect("+cspbCT+"   "+cspbID.clientWidth+"   "+cspbCB+"   0)";  
  cspbSI("down");  
  setTimeout("cspbSD("+speed+");",speed);  
  }  
  else  
  {  
  cspbSS=true;  
  cspbSI();  
  }  
  }  
  }  
   
  function   cspbSU(speed)  
  {  
  if(cspbSS==false)  
  {  
  cspbCB=cspbSH+cspbMA;  
  if(cspbMA>0)  
  {  
  cspbMA-=7;  
  cspbID.style.top=cspbID.offsetTop+7;  
  cspbCT=cspbMA;  
  cspbCB=cspbSH+cspbMA;  
  cspbID.style.clip="rect("+cspbCT+"   "+cspbID.clientWidth+"   "+cspbCB+"   0)";  
  cspbSI("up");  
  setTimeout("cspbSU("+speed+");",speed);  
  }  
  else  
  {  
  cspbSS=true;cspbSI();  
  }  
  }  
  }  
   
  function   cspbRefresh()  
  {  
  cspbVS="CSPBPanelBarLoading";  
  cspbShowSection(cspbSelI);  
  }  
   
  function   cspbSetHeight(px)  
  {  
  cspbBoH=px;  
  }  
  </SCRIPT>Top

2 楼microguoj()回复于 2005-01-01 13:56:57 得分 0

<!--   Coalesys   PanelBar   for   ASP.NET   -->   <!--   IE5/6   Output-->   <!--   PanelBar   HTML   Structure   COPYRIGHT   2000-2002   Coalesys,   Inc.   -->  
  <DIV   id="CSPanelBar"   style="LEFT:   0px;   POSITION:   relative;   TOP:   0px">  
  <DIV   id="CSPBPanelBarLoading">  
  <TABLE   borderColor="#000000"   cellSpacing="0"   cellPadding="5"   width="100%"   bgColor="#efefef"  
  border="1">  
  <TBODY>  
  <TR>  
  <TD   class="cspbBtn">正在加载菜单…</TD>  
  </TR>  
  </TBODY>  
  </TABLE>  
  </DIV>  
  <DIV   id="CSPBButtons"   style="DISPLAY:   none;   CURSOR:   default">  
  <TABLE   width="100%"   height="100"   border="0"   cellPadding="0"   cellSpacing="0">  
  <TBODY>  
  <TR   align="middle">  
  <TD   width="100%"   bgColor="#efefef">  
  <TABLE   cellSpacing="0"   cellPadding="0"   width="100%"   border="0">  
  <TBODY>  
  <TR>  
  <TD   width="100%"   height="30"   bgColor="#efefef"   background="images/back-botton.jpg"   bgColor="#efefef">  
  <TABLE   cellSpacing="0"   cellPadding="0"   width="100%"   border="0">  
  <TBODY>  
  <TR>  
  <TD   class="cspbBtnCell"   onclick="cspbShowSection(0);">  
  <P   class="cspbBtn">基本操作</P>  
  </TD>  
  </TR>  
  </TBODY>  
  </TABLE>  
  </TD>  
  </TR>  
  </TBODY>  
  </TABLE>  
  <DIV   id="CSPBGroup0"   style="DISPLAY:   none;   BACKGROUND-IMAGE:     url(file:///D|/GpsSite/Solution1/ADM/./image/ItemBackground.gif)">  
  <TABLE   cellSpacing="0"   cellPadding="0"   width="100%"   border="0">  
  <TBODY>  
  <TR>  
  <TD   id="CSPBGroup0End"></TD>  
  </TR>  
  </TBODY>  
  </TABLE>  
  <DIV   id="CSPBIcons0"   style="LEFT:   0px;   POSITION:   absolute;   TOP:   0px">  
  <TABLE   cellSpacing="0"   cellPadding="0"   width="100%"   border="0">  
  <TBODY>  
  <TR>  
  <TD   height="26"   class="cspbItmAlign"   background="images/back-botton1.gif"><a   class="cspbItm"   href='../logout.aspx'   target="_parent">系统首页</a></TD>  
  </TR>  
  <TR>  
  <TD   height="26"   class="cspbItmAlign"   background="images/back-botton1.gif"><A   class="cspbItm"   href='../login.aspx'   target="main">登录系统</A></TD>  
  </TR>  
  <TR>  
  <TD   height="26"   class="cspbItmAlign"   background="images/back-botton1.gif"><A   class="cspbItm"   href='../amendpassword.aspx'   target="main">修改密码</A></TD>  
  </TR>  
  <TR>  
  <TD   height="26"   class="cspbItmAlign"   background="images/back-botton1.gif"><a   class="cspbItm"   href="../logout.aspx"   target="_parent">退出登录</a></TD>  
  </TR>  
  <TR>  
  <TD   class="cspbItmAlign">  
  </TBODY>  
  </TABLE>  
  </DIV>  
  </DIV>  
  </TD>  
  </TR>  
   
  <TR   align="middle">  
  <TD   width="100%"   bgColor="#efefef">  
  <TABLE   cellSpacing="0"   cellPadding="0"   width="100%"   border="0">  
  <TBODY>  
  <TR>  
  <TD   width="100%"   height="30"   bgColor="#efefef"   background="images/back-botton.jpg"   bgColor="#efefef">  
  <TABLE   cellSpacing="0"   cellPadding="0"   width="100%"   border="0">  
  <TBODY>  
  <TR>  
  <TD   class="cspbBtnCell"   onclick="cspbShowSection(1);">  
  <P   class="cspbBtn">信息相关</P>  
  </TD>  
  </TR>  
  </TBODY>  
  </TABLE>  
  </TD>  
  </TR>  
  </TBODY>  
  </TABLE>  
  <DIV   id="CSPBGroup1"   style="DISPLAY:   none;   BACKGROUND-IMAGE:     url(file:///D|/GpsSite/Solution1/ADM/./image/ItemBackground.gif)">  
  <TABLE   cellSpacing="0"   cellPadding="0"   width="100%"   border="0">  
  <TBODY>  
  <TR>  
  <TD   id="CSPBGroup1End"></TD>  
  </TR>  
  </TBODY>  
  </TABLE>  
  <DIV   id="CSPBIcons1"   style="LEFT:   0px;   POSITION:   absolute;   TOP:   0px">  
  <TABLE   cellSpacing="0"   cellPadding="0"   width="100%"   border="0">  
  <TBODY>  
   
  <TR>  
  <TD   height="26"   class="cspbItmAlign"   background="images/back-botton1.gif">  
  <A   class="cspbItm"   href='../doctorInfo.aspx'   target="main">医生个人信息</A></TD>  
  </TR>  
  <TR>  
  <TD   height="26"   class="cspbItmAlign"   background="images/back-botton1.gif">  
  <A   class="cspbItm"   href='../patientInfo.aspx'   target="main">病人信息</A></TD>  
  </TR>  
  <TR>  
  <TD   class="cspbItmAlign">  
  </TBODY>  
  </TABLE>  
  </DIV>  
  </DIV>  
  </TD>  
  </TR>  
  <TR>  
  <TR>  
  <TD   class="cspbItmAlign">  
  </TBODY>  
  </TABLE>  
  </DIV>  
  </DIV>  
  <td   height="72">  
  <DIV   id="CSPBScrollUp"   style="DISPLAY:   none;   LEFT:   0px;   POSITION:   absolute;   TOP:   0px"><IMG   onmouseup="cspbSS=true;cspbSI('inactive');"   onmousedown="cspbSS=false;cspbSU(50);"  
  id="CSPBScrollUpImg"   onmouseout="cspbSS=true;cspbSI('inactive');"   height="16"   alt=""   src="file:///D|/GpsSite/Solution1/ADM/images/scroll_up_disable.gif"   width="16"  
  border="0"></DIV>  
  <DIV   id="CSPBScrollDown"   style="DISPLAY:   none;   LEFT:   0px;   POSITION:   absolute;   TOP:   0px"><IMG   onmouseup="cspbSS=true;cspbSI('inactive');"   onmousedown="cspbSS=false;cspbSD(50);"  
  id="CSPBScrollDownImg"   onmouseout="cspbSS=true;cspbSI('inactive');"   height="16"   alt=""   src="file:///D|/GpsSite/Solution1/ADM/images/scroll_down_enable.gif"   width="16"  
  border="0"></DIV>  
  <!--   End   PanelBar   --></BODY></HTML>Top

相关问题

  • 倾囊送分!!!
  • Sorry !倾囊而赠
  • 倾囊而尽为一题
  • 敬请关注!敬请关注!敬请关注!倾囊送分!倾囊送分!倾囊送分!
  • 倾囊寻求mp3解码代码
  • 加急!绝对简单!!倾囊给分!!!
  • 倾囊相报!高手请进.
  • 倾囊请教!!!各位HELP ME 啊!
  • 倾囊而出,换您一言……
  • 倾囊请教:tomcat的邪门问题

关键词

得分解答快速导航

  • 帖主:microguoj

相关链接

  • Web开发类图书

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
北京创新乐知广告有限公司 版权所有, 京 ICP 证 070598 号
世纪乐知(北京)网络技术有限公司 提供技术支持
Copyright © 2000-2008, CSDN.NET, All Rights Reserved
GongshangLogo