隨筆 - 6  文章 - 0  trackbacks - 0
          ?

          腳本說明:
          第一步:把如下代碼加入<head>區域中
          <SCRIPT LANGUAGE="JavaScript">
          <!-- Begin
          function selectScroller(n) {
          optlist = document.scrollform.scroller;
          optlist[optlist.length] = new Option(optlist[0].text, "", false, false);
          optlist[0] = null;
          optlist.selectedIndex = -1;
          n = (n + 1) % optlist.length;
          // change the speed below: 1000 = 1 second.
          setTimeout("selectScroller("+n+")",2000);
          }
          //? End -->
          </script>

          第二步:把如下代碼加入<body>區域中
          <form name="scrollform">
          <select name="scroller" size=8>
          <option>This select option list will
          <option>scroll text by copying
          <option>the top line to the bottom
          <option>line before deleting the
          <option>top line. This moves the
          <option>options up one line and
          <option>gives the impression of
          <option>scrolling.
          <option>
          <option>You can leave as many
          <option>blank lines as you feel
          <option>necessary to give the
          <option>look of begining and
          <option>ending.
          <option>
          <option>This script was written
          <option>in response to those
          <option>who wanted a news
          <option>scroller to work within
          <option>a table's cell and for
          <option>those who want old
          <option>browsers to also see
          <option>a scoller on the page.
          <option>
          <option>This select option list will
          <option>scroll text by copying
          <option>the top line to the bottom
          <option>line before deleting the
          <option>top line. This moves the
          <option>options up one line and
          <option>gives the impression of
          <option>scrolling.
          <option>
          <option>You can leave as many
          <option>blank lines as you feel
          <option>necessary to give the
          <option>look of begining and
          <option>ending.
          <option>
          <option>This script was written
          <option>in response to those
          <option>who wanted a news
          <option>scroller to work within
          <option>a table's cell and for
          <option>those who want old
          <option>browsers to also see
          <option>a scoller on the page.
          <option>
          <option>yobo42@hotmail.com
          </select>
          </form>

          第三步:把<body>改為
          <BODY OnLoad="selectScroller(0);">

          posted on 2006-04-30 16:57 比爾德 閱讀(340) 評論(0)  編輯  收藏 所屬分類: web應用開發
          主站蜘蛛池模板: 叙永县| 额尔古纳市| 三门县| 乡宁县| 阿拉善盟| 长子县| 宝山区| 福清市| 罗平县| 宁河县| 肇源县| 霍林郭勒市| 田阳县| 德庆县| 安宁市| 文登市| 周宁县| 中阳县| 张掖市| 余干县| 阜城县| 库伦旗| 贵州省| 凤城市| 九龙县| 通道| 清丰县| 东辽县| 黑水县| 文成县| 北海市| 邯郸市| 潜山县| 石门县| 鹤庆县| 元谋县| 西吉县| 张掖市| 临夏县| 水富县| 平昌县|