224、静态导航菜单

224、静态导航菜单

静态导航菜单
注意:< body>区域中 < BODY bgcolor="#ffffff" OnLoad="setVariables();checkLocation()">

以下代码加入<head>区域

以下代码加入<body>区域

<script language="JavaScript">

 

 

 

function setVariables() {

 

if (navigator.appName == "Netscape") {

 

v=".top=";

 

dS="document.";

 

sD="";

 

y="window.pageYOffset";

 

}

 

else {

 

v=".pixelTop=";

 

dS="";

 

sD=".style";

 

y="document.body.scrollTop";

 

   }

 

}

 

function checkLocation() {

 

object="object1";

 

yy=eval(y);

 

eval(dS+object+sD+v+yy);

 

setTimeout("checkLocation()",10);

 

}

 

</script>

 

<div id="object1" style="position:absolute; visibility:show; left:0px; top:0px; z-index:5">

 

  <table width=150 border=0 cellspacing=20 cellpadding=0 >

 

    <tr>

 

      <td bgcolor="#EAEAEA">

 

        <center>

 

          静态导航菜单

 

        </center>

 

      </td>

 

    </tr>

 

    <tr>

 

      <td bgcolor="#EAEAEA"><a href="../../../../www.microsoft.com/default.htm" >Microsoft</a></td>

 

    </tr>

 

    <tr>

 

      <td bgcolor="#EAEAEA"><a href="../../../../www.yahoo.com/default.htm" >Yahoo</a></td>

 

    </tr>

 

    <tr>

 

      <td bgcolor="#EAEAEA"><a href="../../../../www.anysite.com/default.htm">Any site</a></td>

 

    </tr>

 

    <tr>

 

      <td bgcolor="#EAEAEA"><a href="http://www.7stk.com/" >哇哈特效站</a></td>

 

    </tr>

 

  </table>

 

  </div>

 

Write a comment

Comments: 0