wenson小庄

导航

杂1导

<?php
   if(isset($_SESSION['name'])){
   $_sql="SELECT count(ID) as num FROM a WHERE tid=".$_SESSION['ID'];
   $_query=mysql_query($_sql);
   $_row=mysql_fetch_array($_query);
   $b=$_row['num'];
  ?>

 

<script type="text/javascript">
        function qiehuan(num){
            for(var id = 0;id<=8;id++)
            {
                if(id==num)
                {
                    document.getElementById("qh_con"+id).style.display="block";
                    document.getElementById("mynav"+id).className="nav_on";
                }
                else
                {
                    document.getElementById("qh_con"+id).style.display="none";
                    document.getElementById("mynav"+id).className="";
                }
            }
        }
    </script>
    <div id="mainbav">
        <div id="menu_left"></div>
        <div id="menu_cen">
            <ul id="nav">
                <li><a onmouseover="javascript:qiehuan(0)" id="mynav0" class="nav_on" href="/main.php" ><span>首&nbsp;页</span></a></li>
                <li class="menu_line"></li>
                <li><a onmouseover="javascript:qiehuan(1)" id="mynav1" class="nav_off" href="/a.html"><span>a</span></a></li>
                <li class="menu_line"></li>
                <li><a onmouseover="javascript:qiehuan(2)" id="mynav2" class="nav_off" href="/b.html"><span>b</span></a></li>
                <li class="menu_line"></li>
                <li><a onmouseover="javascript:qiehuan(3)" id="mynav3" class="nav_off" href="/c.html"><span>c</span></a></li>
                <li class="menu_line"></li>
                <li><a onmouseover="javascript:qiehuan(4)" id="mynav4" class="nav_off" href="/d.html"><span>d</span></a></li>
                <li class="menu_line"></li>
                <li><a onmouseover="javascript:qiehuan(5)" id="mynav5" class="nav_off" href="/e.php"><span>e</span></a></li>
                <li class="menu_line"></li>
                <li><a onmouseover="javascript:qiehuan(6)" id="mynav6" class="nav_off" href="/fphp"><span>f</span></a></li>
                <li class="menu_line"></li>
                <li><a onmouseover="javascript:qiehuan(7)" id="mynav7" class="nav_off" href="/g.html"><span>g</span></a></li>
                <li class="menu_line"></li>
                <li><a onmouseover="javascript:qiehuan(8)" id="mynav8" class="nav_off" href="/h.html"><span>h</span></a></li>

                <!--<li class="menu_line"></li>
                <li><a onmouseover="javascript:qiehuan(8)" id="mynav8" class="nav_off" href="/j.php"><span>i</span></a></li>-->
            </ul>

 

posted on 2013-09-29 17:54  小庄1  阅读(230)  评论(0编辑  收藏  举报