<!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>

解决方案 »

  1.   

    <!-- 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>
      

  2.   

    通过javascript控制台的检查说是20行"cspbPO has no properties"1 function cspbPI(id)
    2 {
    3  //cspbID=document.all["CSPBIcons" + id];
    4  cspbID=cspbDV["CSPBIcons"+id];

    6  cspbID.style.clip="rect(0 "+cspbGD.clientWidth+" "+cspbSH+" 0)";
    7  cspbID.y=0;
    8  if(cspbBS>0 && navigator.platform!="MacPPC")
    9  {
    10  cspbID.y=1;
    11  }
    12  cspbID.x=cspbBS;
    13  var cspbPO=cspbGD;
    14  var cspbPId="";
    15 
    16  while(cspbPId!="CSPBButtons")
    17  {
    18  cspbID.y+=cspbPO.offsetTop;
    19  cspbPO=cspbPO.parentElement;
    20  if(cspbPO.tagName=="TR")    //-------------说这行"cspbPO has no properties"
    21  {
    22  cspbPO=cspbPO.parentElement;
    23  }
    24  cspbPId=cspbPO.id;
    25  }
    26  if(navigator.platform=="MacPPC")
    27  {
    28  cspbID.style.top="auto";
    29  cspbID.style.left="auto";
    30  }
    31  else
    32  {
    33  cspbID.style.top=cspbID.y;
    34  cspbID.style.left=cspbID.x;
    35  }
    36 }
      

  3.   

    你这么贴谁有空看这么长啊,在mozila中层的用法和ie中有点不一样,好像mozila和NS类似
    cspbPO.tagName用法是对的,但是可能cspbPO本身就没有取到值
      

  4.   

    cspbPO=cspbPO.parentElement;
    这句都没有问题阿,要是cspbPO本身就没有取到值,那可以怎么添加它的值呢?不过觉得还是想办法怎么测试它本身就没有取到值,不过这点还不知道怎么去实现?
      

  5.   

    to :mjpclab(我是大猫猫啊 mjpclab.8u8.com) :人家都说把all改为getElementById了
    呵呵,楼主是人教论坛的吧??不知道记得在下否?
      

  6.   

    to:   surfchen(冲浪)哈哈,记得,是你告诉我到这里来问问的。呵呵,我也是刚接触人教论坛,在上面问的,不过基本上没有人回。这个论坛感觉挺大,挺实用的。不过不像水母,可以贴附件,速度要慢一点,呵呵希望知道的都过来说说阿,这个问题都有好几天没有解决了,最近很是郁闷!
      

  7.   

    要兼容是很麻烦的,你可以先试一下ID 和 name 都设置成一样的值,估计你的问题还是没有取道对象。
      

  8.   

    to microguoj() :这里真的好多高手的....呵呵,随便拿一个人到人教那边都是电脑技术第一了..现在论坛还不能发附件之类的,下一版论坛应该就可以了...这里和人教还有一个不同之处就是:这里一般是工作日人多,因为这里都是工作一族的多,呵呵,节假日要休息的,人比较少...到了工作的日子,人就比较多了..不像人教,因为都是学生,所有节假日人才多..呵呵,我对JS不是很熟悉,所以就不能帮你什么了..我主要还是在PHP版活动...