下拉選單 – JavaScript

*header.php*

要加入下面這一段,才能讓選單發生跳頁的作用。

<script type="text/javascript">
function jumpMenu(targ,selObj,restore){
if(!selObj.options[selObj.selectedIndex].value){
return false;
}
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); if (restore)
selObj.selectedIndex=0;
}
</script>

過去的同一天,我還發表了...

0 Responses to “下拉選單 – JavaScript”


  • No Comments

Leave a Reply

You must login to post a comment.