轉載兩篇文章:
http://blog.sina.com.cn/s/blog_49ce67fc0100atb4.html
https://baike.1688.com/doc/view-d35956084.html
滾動輪播效果
<Marquee direction=up onmouseover=this.stop() onmouseout=this.start() scrollamount=1 scrollDelay=4 width=150 Height=160><table border=0> <td><a href="/Announce.asp?AnnounceID=26" title="2006-2007學年度第二學期網頁設計實訓(3-4周)講座安排" target="_blank"> 2006-2007學年度第二學期網頁設計實訓(3-4周)講座安排</a></td></tr> </td> </Marquee> 滾動字的代碼 文字很快滾。 <marquee scrollamount=1> 文字很慢滾。 </marquee> 文字很慢滾。 <marquee onmouseover=this.stop() onmouseout=this.start() > 鼠標放上去停止滾動,移開繼續滾動。 </marquee> 鼠標放上去停止滾動,移開繼續滾動。 <marquee direction=left scrollamount=3> 文字向左滾。 </marquee> 文字向左滾。 <marquee direction=right scrollamount=3> 文字向右滾。 </marquee> 文字向右滾。 <marquee direction=up scrollamount=3> 文字向上滾。 </marquee> 文字向上滾。 <marquee direction=down scrollamount=3> 文字向下滾。 </marquee> 文字向下滾。 <marquee scrollamount=3 behavior=alternate> 文字來回滾。 </marquee> 文字來回滾。 <marquee scrolldelay=500 scrollamount=100>走一步,停一停!</marquee> marquee: <marquee direction=up behavior=scroll loop=3 scrollamount=1 scrolldelay=10 align=top bgcolor=#ffffff height=300 width=30% hspace=20 vspace=10 onmouseover=this.stop() onmouseout=this.start()> 此處輸入滾動內容 </marquee> 詳解: direction表示滾動的方向,值可以是left,right,up,down,默認為left behavior表示滾動的方式,值可以是scroll(連續滾動)slide(滑動一次)alternate(來回滾動) loop表示循環的次數,值是正整數,默認為無限循環 scrollamount表示運動速度,值是正整數,默認為6 scrolldelay表示停頓時間,值是正整數,默認為0,單位似乎是毫秒 align表示元素的垂直對齊方式,值可以是top,middle,bottom,默認為middle bgcolor表示運動區域的背景色,值是16進制的RGB顏色,默認為白色 height、width表示運動區域的高度和寬度,值是正整數(單位是像素)或百分數,默認width=100% height為標簽內元素的高度 hspace、vspace表示元素到區域邊界的水平距離和垂直距離,值是正整數,單位是像素。 onmouseover=this.stop() onmouseout=this.start()表示當鼠標以上區域的時候滾動停止,當鼠標移開的時候又繼續滾動。