語法說明:

1.在 <option>前不見古人,後不見來者,念天地之悠悠,獨愴然而淚下. <option>終南陰嶺秀,積雪浮雲端,林表明霽色,城中增暮寒!. <option>空山不見人,但聞人語響,返景入深林,復照青苔上!. <option>獨坐幽篁裡,彈琴復長嘯,深林人不知,明月來相照! 中修改顯示的文字,可自行增加或減少
2.在 setTimeout("rotate()",3000); 中修改捲動的速度,數值越大就越慢,越小就越快


<!--欄位式捲動字_開始-->
<form name="menuform"><center><select size="1" name="msg">
    <option>前不見古人,後不見來者,念天地之悠悠,獨愴然而淚下.
    <option>終南陰嶺秀,積雪浮雲端,林表明霽色,城中增暮寒!.
    <option>空山不見人,但聞人語響,返景入深林,復照青苔上!.
    <option>獨坐幽篁裡,彈琴復長嘯,深林人不知,明月來相照!
  </select></center></form>
<script language="javascript">
<!-- Begin
function rotate() {
menu = document.menuform.msg;
chosen = menu.selectedIndex;
menu.selectedIndex= (chosen == (menu.length-1)) ? 0 : chosen + 1;
setTimeout("rotate()",3000);
}
rotate();
-->
</script>
<!--欄位式捲動字_結束-->

arrow
arrow
    全站熱搜

    nicole 發表在 痞客邦 留言(0) 人氣()