216、状态栏也跟着鼠标走动

216、状态栏也跟着鼠标走动

以下代码加入<head>区域

<script>

<!--

function play(){

onMousemove=borba()

}

function borba(){

a=navigator.appVersion

b=navigator.appName

if(a.substring(0,2)==4.0){

       if(b.substring(0,1)=="M"){

      eval("document.all.img.style.pixelTop = event.clientY + document.body.scrollTop -20;");

}

else{

alert("Sorry, but this script only works on IE 4.0 ")}}}

//-->

</script>

以下代码加入<body>区域

<div id="img" style="position:absolute; left:684px; top:43px; width:134px; height:1px; z-index:2; background-color:#999999">

            <b><font size="2" face="Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF">不会变的导航栏</font></b>

          </div>

          <div id="Layer1" style="position:absolute; left:818px; top:41px; width:167px; height:165px; z-index:3" onMouseOver="play()">

            <table border="0" width="166" bgcolor="#99CCFF" cellspacing="9" cellpadding="1">

              <tr bordercolor="#333333" bgcolor="#CDF0FE">

                <td align="CENTER"><font face="Arial, Helvetica, sans-serif" size="4"><b><a href="http://www.7stk.com/">新思路网页特效集锦</a></b></font></td>

              </tr>

              <tr bordercolor="#E7E3E7" bgcolor="#CDF0FE">

                <td align="CENTER"><font face="Arial, Helvetica, sans-serif" size="4"><b><a href="../../index.htm">新思路网页特效集锦</a></b></font></td>

              </tr>

              <tr bgcolor="#CDF0FE">

                <td align="CENTER"><font face="Arial, Helvetica, sans-serif" size="4"><b><a href="../../annie.htm">电影天使</a></b></font></td>

              </tr>

              <tr bgcolor="#CDF0FE">

                <td align="CENTER"><font face="Arial, Helvetica, sans-serif" size="4"><b><a href="连接地址">连接名称</a></b></font></td>

              </tr>

              <tr bgcolor="#CDF0FE">

                <td align="CENTER"><font face="Arial, Helvetica, sans-serif" size="4"><b><a href="连接地址">连接名称</a></b></font></td>

              </tr>

            </table>

          </div>

 

Write a comment

Comments: 0