网站首页  汉语字词  英语词汇  考试资料  写作素材  旧版资料

请输入您要查询的范文:

 

标题 导航显示层
范文
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
    <html xmlns="">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>无标题文档</title>
    </head>
    <script language="javascript">
    <!--
    function showdiv(id)
    {
    var obj=document.getElementById("Ainput").getElementsByTagName("a");
    var objlength=obj.length;
    for(i=1;i<objlength+1;i++)
    {tempdiv="showdivD"+i;
    if(i==id)
    {document.getElementById("showdivD"+i).style.display="";}
    else
    {document.getElementById("showdivD"+i).style.display="none";}
    }
    }
    -->
    </script>
    <body>
    <div id="Ainput">
    <a href="#" onmouseover="showdiv(1)">显示层1</a>
    <a href="#" onmouseover="showdiv(2)">显示2</a>
    <a href="#" onmouseover="showdiv(3)">显示3</a>
    <a href="#" onmouseover="showdiv(4)">显示4</a>
    <a href="#" onmouseover="showdiv(5)">显示5</a>
    <a href="#" onmouseover="showdiv(6)">显示6</a>
    <a href="#" onmouseover="showdiv(7)">显示7</a>
    <a href="#" onmouseover="showdiv(8)">显示8</a>
    <a href="#" onmouseover="showdiv(9)">显示9</a>
    </div>
    <div id="showdivD1">1</div>
    <div id="showdivD2">2</div>
    <div id="showdivD3">3</div>
    <div id="showdivD4">4</div>
    <div id="showdivD5">5</div>
    <div id="showdivD6">6</div>
    <div id="showdivD7">7</div>
    <div id="showdivD8">8</div>
    <div id="showdivD9">9</div>
    </body>
    </html>
随便看

 

在线学习网范文大全提供好词好句、学习总结、工作总结、演讲稿等写作素材及范文模板,是学习及工作的有利工具。

 

Copyright © 2002-2024 cuapp.net All Rights Reserved
更新时间:2025/5/22 21:27:45