這是由asp二級側拉選單修改的 複製程式碼程式碼如下: for ( i=0; i<navRoot.childNodes.length; i++) { <BR>node = navRoot.childNodes[i]; <BR>if (node.nodeName=="LI") { <BR>node. { <BR>this.className+=" 結束"; <BR>} <BR>節點。 { <BR>this.className=this.className.replace(" over", ""); <BR>} <BR>} <BR>} <BR>} <BR>} <BR>視窗。 <BR></腳本> <br><樣式類型=“text/css”> <BR><!-- <BR>ul { <BR>邊距:0; <BR>填充:0; <BR>列表樣式:無; <BR>寬度:200px; /* 菜單項的寬度*/ <BR>border-bottom: 0pxsolid #ccc; <BR>} <BR>ul li { <BR>位置:相對; <BR>} <BR>li ul { <BR>位置:絕對; <BR>左:199px; /* 設定比選單寬度小1px */ <BR>top: 0; <BR>顯示:無; <br>}🎜>top: 0; <BR>顯示:無; <BR>}🎜>top: 0; <BR>顯示:無; <BR>}🎜>top: 0; <BR>顯示:無; <BR>} <BR>/* 選單項目樣式*/ <BR>ul li a { <BR>display: block; <BR>文字裝飾:無; <BR>顏色:#777; <BR>背景:#8A0000; /* IE6 錯誤*/ <BR>padding: 5px; <BR>邊框:0px #ccc; /* IE6 錯誤*/ <BR>border-bottom: 0; <BR>} <BR>/* 霍莉哈克。 IE 要求*/ <BR>* html ul li { float: left;高度:1%; } <BR>* html ul li a { 高度:1%; } <BR>/* 結束*/ <BR>li: hover ul, li.over ul { display: block; } /* 魔法*/ <BR>.ulbox{border:1pxsolid #ffffff;overflow:hidden;margin-left:1px;background-color:#E87DDD} <BR> --> <BR></風格> <BR><表格寬度=“200”cellspacing=“0”cellpadding=“0”邊框=“0”align=“center”> <br><tr> <BR> <tdalign="left"> <BR><ul>; <BR><?php <BR>require('../Connections/lr.php'); <BR>mysql_select_db($database_lr, $lr); <BR>$query = mysql_query("SELECT * FROM bigclass order by sort"); <BR>$j=0; <BR>while($row=mysql_fetch_array($query)) <BR>{$j=$j+ 1; <BR>$bigclassid=$row['bigclassid']; <BR>$bigclassname_leftmenu=$row['bigclassname']; <BR>if ($htmlname==1){ <BR>$bigclass_htmlname_leftmenu=$nclassname_leftmenu=$big ;//大類別名稱<BR>if (substr_count($bigclass_htmlname_leftmenu," ")>0){ <BR>$bigclass_htmlname_leftmenu= str_replace(" ","-",$bigclass_htmlname_leftmenu); <BR>if ($htmlname==0){ <BR>$bigclass_htmlname_leftmenu=$bigclassid; <BR>} <BR>? > <BR><li><a href=""><?php echo $row['bigclassname']?> <BR><ul>; <br><?php <BR>mysql_select_db($ database_lr, $lr); <BR>$query_small = mysql_query("SELECT * FROM Smallclass where bigclassid='$bigclassid' order by sort"); <br>while($rs=mysql_fetch_array($query_array($mquery)> <BR>$smallclassid_small_leftmenu=$rs['smallclassid']; <BR>$smallclassname_small=$rs['smallclassname'];//小類別名稱<BR>if ($htmlname==1){ <BR>$smallclass_htmlname =$smallclassname_small; <BR>if (substr_count($smallclass_htmlname," ")>0){ <BR>$smallclass_htmlname= str_replace(" ","-",$smallclass_htmlname); <BR>} <BR>} <br>} <br>} <BR>} <BR>} <BR>} <br>} <BR>} <BR>} <BR>} <BR>} <BR>if ($htmlname==0){ $smallclass_htmlname=$smallclassid_small_leftmenu; } ? > } ?> } ?> 以上就介紹了實拍裸模攝影現場PHP向右側拉菜單實現代碼,測試使用中,包括了實拍裸模攝影現場方面的內容,希望對PHP教程有興趣的朋友有所幫助。