do you name those DIVs properly with "HOST_IMAGE1" and "LINK_MSG..."?

解决方案 »

  1.   

    是的定义如下
    <%if BrowserType="MSIE" then%>
       <DIV ID="HOST_IMAGE1" style="POSITION: absolute;visibility=hidden;"></DIV>
    <%else%>
    <LAYER name="HOST_IMAGE1" visibility="hide"></LAYER>
    <%end if%>
    取得时的代码
       if(navigator.appVersion.charAt(0) >=4 && navigator.appName.charAt(0)=="N") {
                document.layers["HOST_IMAGE1"].moveTo(x+0, y+0);
                document.layers["HOST_IMAGE1"].visibility = "SHOW";
                document.layers["LINK_MSG"+num].moveTo(x-80, y+20);
                document.layers["LINK_MSG"+num].visibility = "SHOW";
    }
      

  2.   

    这里的Javascript编码只适用于NETSCAPE,IE的呢?
      

  3.   

    take a look here:
    Cross-Browser Dynamic HTML Resources 
    http://www.wdvl.com/Authoring/DHTML/CB/Resources.htmland the following two articles
    http://www.wdvl.com/Authoring/DHTML/CB/Objects/
    http://www.wdvl.com/Authoring/DHTML/CB/Cards/
      

  4.   

    else
    {
    document.all("HOST_IMAGE1").style.posLeft = x;
    document.all("HOST_IMAGE1").style.posTop = y;
    document.all("HOST_IMAGE1").style.visibility = "visible";var sID = "LINK_MSG"+num;document.all(sID).style.posLeft = x-80;
    document.all(sID).style.posTop = y+20;
    document.all(sID).style.visibility = "visible";}