<title>MSClass (Class Of Marquee Scroll通用不間斷滾動JS封裝類) Ver 1.2 程序制作/版權所有:崔永祥(333)</title> <style> a,body,select{font-size:12px;text-decoration:none;} a,pre{color:#808080;} body{background:#efefef;} </style> <pre> /*MSClass (Class Of Marquee Scroll通用不間斷滾動類) Ver 1.2*\
制作時間:2006-08-29 (Ver 0.5) 發(fā)布時間:2006-08-31 (Ver 0.8) 更新時間:2006-09-22 (Ver 1.2) 更新說明: + 加入功能 * 修正、完善 1.2.060922 + 指定范圍間歇滾動 * 程序調整 * 連續(xù)間歇滾動停止的錯誤 1.0.060901 + 向下,、向右滾動 + 開始等待時間 + 連續(xù)滾動 * 調整時間單位 * 滾動誤差 * 隨機死循環(huán) * 加強性能 * 程序優(yōu)化 0.8.060829 翻屏不間斷向上,、向左滾動
演示地址:<a href="http://www./script/MSClass.htmlhttp://www./script/MSClass.html">http://www./script/MSClass.html</a> 下載地址:<a href="http://www./script/MSClass.js"><font color="red">http://www./script/MSClass.js</font></a>
應用說明:頁面包含<script type="text/javascript" src="MSClass.js"></script>
創(chuàng)建實例:new Marquee("marquee",0,1,760,52,50,5000,3000) new Marquee("marquee",0,1,760,104,50,5000,3000,52)
參數說明:marquee 容器ID 0 向上滾動(0向上 1向下 2向左 3向右) 1 滾動的步長 760 容器可視寬度 52 容器可視高度 50 定時器 數值越小,滾動的速度越快(1000=1秒,建議不小于20) 5000 間歇停頓時間(0為不停頓,1000=1秒) 3000 開始時的等待時間(0為不等待,1000=1秒) (52) 間歇滾動間距(可選)
\***程序制作/版權所有:崔永祥(333) E-Mail:[email protected] 網址:http://www.***/ </pre>
<script src="MSClass.js" language="javascript"></script>
<b>PCAS (Province City Area Selector 省,、市,、地區(qū)聯(lián)動選擇JS封裝類) Ver 2.01 數據壓縮完整版</b> <a href="pcas.html"><font color="red">演示及下載</font></a><br><br>
<br>
<b>不間斷滾動應用實例演示:</b> <a href="MSClass.js"><font color="red">下載</font></a><br><br>
<fieldset style="padding:5px;"> <legend>不間斷滾動實例</legend> <center>
文字翻屏滾動 <div id="textdiv" style="border:1 solid #c0c0c0;text-align:left;"> 演示地址:<a href="http://www./script/MSClass.html http://www./script/MSClass.html">http://www./script/MSClass.html</a><br> 下載地址:<a href="pcas.html"pcas.html"><font color="red">演示及下載</font></a><br> \***程序制作/版權所有:崔永祥(333) E-Mail:[email protected] 網址:http://www.***/<br> </div> <br> <br> 文字間歇滾動 <div id="textdiv1" style="border:1 solid #c0c0c0;text-align:left;"> 演示地址:<a href="http://www./script/MSClass.html http://www./script/MSClass.html">http://www./script/MSClass.html</a><br> 下載地址:<a href="pcas.html"pcas.html"><font color="red">演示及下載</font></a><br> \***程序制作/版權所有:崔永祥(333) E-Mail:[email protected] 網址:http://www.***/<br> </div> <br> <br> 向上翻屏滾動 <div id="marqueediv1"> <table width="760" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td height="52" align="center" valign="middle"><img src="images/yaode.gif" width="150" height="50" border="0" hspace="1"><img src="images/qtrjczh.gif" width="150" height="50" border="0" hspace="1"><img src="images/gucang.gif" width="150" height="50" border="0" hspace="1"><img src="images/bmfd.gif" width="150" height="50" border="0" hspace="1"><img src="images/guangming.gif" width="150" height="50" border="0" hspace="1"></td> </tr> <tr> <td height="52" align="center" valign="middle"><img src="images/liangan.gif" width="150" height="50" border="0" hspace="1"><img src="images/klk.gif" width="150" height="50" border="0" hspace="1"><img src="images/old.gif" width="150" height="50" border="0" style="border-color:#cccccc" hspace="1"><img src="images/yangyang.gif" width="150" height="50" border="0" hspace="1"><img src="images/hanch.gif" width="150" height="50" border="0" hspace="1"></td> </tr> </table> </div> <br> <br> 向下翻屏滾動 <div id="marqueediv2" style="height:52;border:0 solid black;"> <table width="760" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td height="52" align="center" valign="middle"><img src="images/yaode.gif" width="150" height="50" border="0" hspace="1"><img src="images/qtrjczh.gif" width="150" height="50" border="0" hspace="1"><img src="images/gucang.gif" width="150" height="50" border="0" hspace="1"><img src="images/bmfd.gif" width="150" height="50" border="0" hspace="1"><img src="images/guangming.gif" width="150" height="50" border="0" hspace="1"></td> </tr> <tr> <td height="52" align="center" valign="middle"><img src="images/liangan.gif" width="150" height="50" border="0" hspace="1"><img src="images/klk.gif" width="150" height="50" border="0" hspace="1"><img src="images/old.gif" width="150" height="50" border="0" style="border-color:#cccccc" hspace="1"><img src="images/yangyang.gif" width="150" height="50" border="0" hspace="1"><img src="images/hanch.gif" width="150" height="50" border="0" hspace="1"></td> </tr> </table> </div> <br> <br> 向左翻屏滾動 <nobr> <div id="marqueediv3"><img src="images/yaode.gif" width="150" height="50" border="0" hspace="1"><img src="images/qtrjczh.gif" width="150" height="50" border="0" hspace="1"><img src="images/gucang.gif" width="150" height="50" border="0" hspace="1"><img src="images/bmfd.gif" width="150" height="50" border="0" hspace="1"><img src="images/guangming.gif" width="150" height="50" border="0" hspace="1"><img src="images/liangan.gif" width="150" height="50" border="0" hspace="1"><img src="images/klk.gif" width="150" height="50" border="0" hspace="1"><img src="images/old.gif" width="150" height="50" border="0" style="border-color:#cccccc" hspace="1"><img src="images/yangyang.gif" width="150" height="50" border="0" hspace="1"><img src="images/hanch.gif" width="150" height="50" border="0" hspace="1"></div> </nobr> <br> <br> 向右翻屏滾動 <nobr> <div id="marqueediv4"><img src="images/yaode.gif" width="150" height="50" border="0" hspace="1"><img src="images/qtrjczh.gif" width="150" height="50" border="0" hspace="1"><img src="images/gucang.gif" width="150" height="50" border="0" hspace="1"><img src="images/bmfd.gif" width="150" height="50" border="0" hspace="1"><img src="images/guangming.gif" width="150" height="50" border="0" hspace="1"><img src="images/liangan.gif" width="150" height="50" border="0" hspace="1"><img src="images/klk.gif" width="150" height="50" border="0" hspace="1"><img src="images/old.gif" width="150" height="50" border="0" style="border-color:#cccccc" hspace="1"><img src="images/yangyang.gif" width="150" height="50" border="0" hspace="1"><img src="images/hanch.gif" width="150" height="50" border="0" hspace="1"></div> </nobr> <br> <br> 向上連續(xù)滾動 <div id="marqueediv5" style="height:52;border:0 solid black;"> <table width="760" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td height="52" align="center" valign="middle"><img src="images/yaode.gif" width="150" height="50" border="0" hspace="1"><img src="images/qtrjczh.gif" width="150" height="50" border="0" hspace="1"><img src="images/gucang.gif" width="150" height="50" border="0" hspace="1"><img src="images/bmfd.gif" width="150" height="50" border="0" hspace="1"><img src="images/guangming.gif" width="150" height="50" border="0" hspace="1"></td> </tr> <tr> <td height="52" align="center" valign="middle"><img src="images/liangan.gif" width="150" height="50" border="0" hspace="1"><img src="images/klk.gif" width="150" height="50" border="0" hspace="1"><img src="images/old.gif" width="150" height="50" border="0" style="border-color:#cccccc" hspace="1"><img src="images/yangyang.gif" width="150" height="50" border="0" hspace="1"><img src="images/hanch.gif" width="150" height="50" border="0" hspace="1"></td> </tr> </table> </div> <br> <br> 向左連續(xù)滾動 <nobr> <div id="marqueediv6"><img src="images/yaode.gif" width="150" height="50" border="0" hspace="1"><img src="images/qtrjczh.gif" width="150" height="50" border="0" hspace="1"><img src="images/gucang.gif" width="150" height="50" border="0" hspace="1"><img src="images/bmfd.gif" width="150" height="50" border="0" hspace="1"><img src="images/guangming.gif" width="150" height="50" border="0" hspace="1"><img src="images/liangan.gif" width="150" height="50" border="0" hspace="1"><img src="images/klk.gif" width="150" height="50" border="0" hspace="1"><img src="images/old.gif" width="150" height="50" border="0" style="border-color:#cccccc" hspace="1"><img src="images/yangyang.gif" width="150" height="50" border="0" hspace="1"><img src="images/hanch.gif" width="150" height="50" border="0" hspace="1"></div> </nobr> <br> <br>
向上間歇滾動 <div id="marqueediv7"> <table width="760" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td height="52" align="center" valign="middle"><img src="images/yaode.gif" width="150" height="50" border="0" hspace="1"><img src="images/qtrjczh.gif" width="150" height="50" border="0" hspace="1"><img src="images/gucang.gif" width="150" height="50" border="0" hspace="1"><img src="images/bmfd.gif" width="150" height="50" border="0" hspace="1"><img src="images/guangming.gif" width="150" height="50" border="0" hspace="1"></td> </tr> <tr> <td height="52" align="center" valign="middle"><img src="images/liangan.gif" width="150" height="50" border="0" hspace="1"><img src="images/klk.gif" width="150" height="50" border="0" hspace="1"><img src="images/old.gif" width="150" height="50" border="0" style="border-color:#cccccc" hspace="1"><img src="images/yangyang.gif" width="150" height="50" border="0" hspace="1"><img src="images/hanch.gif" width="150" height="50" border="0" hspace="1"></td> </tr> </table> </div> <br> <br>
向左間歇滾動 <nobr> <div id="marqueediv8"><img src="images/yaode.gif" width="150" height="50" border="0" hspace="1"><img src="images/qtrjczh.gif" width="150" height="50" border="0" hspace="1"><img src="images/gucang.gif" width="150" height="50" border="0" hspace="1"><img src="images/bmfd.gif" width="150" height="50" border="0" hspace="1"><img src="images/guangming.gif" width="150" height="50" border="0" hspace="1"><img src="images/liangan.gif" width="150" height="50" border="0" hspace="1"><img src="images/klk.gif" width="150" height="50" border="0" hspace="1"><img src="images/old.gif" width="150" height="50" border="0" style="border-color:#cccccc" hspace="1"><img src="images/yangyang.gif" width="150" height="50" border="0" hspace="1"><img src="images/hanch.gif" width="150" height="50" border="0" hspace="1"></div> </nobr> <br> <br> </center> <script defer> new Marquee("textdiv",0,1,760,42,20,4000,5000) new Marquee("textdiv1",0,1,760,42,20,4000,5000,14) new Marquee("marqueediv1",0,1,760,52,50,4000,500) new Marquee("marqueediv2",1,2,760,52,50,4000,500) new Marquee("marqueediv3",2,20,760,50,20,4000,5000) new Marquee("marqueediv4",3,10,760,52,20,4000,500) new Marquee("marqueediv5",0,1,760,52,30,0,0) new Marquee("marqueediv6",2,1,760,52,20,0,0) new Marquee("marqueediv7",0,1,760,104,50,4000,500,52) new Marquee("marqueediv8",2,20,760,50,20,4000,5000,152) </script>
</fieldset>
<br>
</body>
|