JavaScript 代码实现 < SCRIPT language = JavaScript > <!-- function marquee1() { document.write("<marquee behavior=scroll direction=up width=140 height=130 scrollamount=1 scrolldelay=60 onmouseover='this.stop()' onmouseout='this.start()'>") } function marquee2() { document.write("</marquee>") } // --> </ SCRIPT > 在代码中插入 < SCRIPT language =JavaScript > marquee1(); </ SCRIPT > 这里是滚动内容,可以直接写入asp代码 < SCRIPT language =JavaScript > marquee2(); </ SCRIPT > 在静态网页中实现此效果时: < MARQUEE onmouseover =this.stop() style ="FONT-SIZE: 9pt; FONT-FAMILY: 宋体" onmouseout =this.start() scrollAmount =1 scrollDelay =10 width ="200" > < A href ="http://www.qpsh.com" target =_blank >< FONT color =#FF0000 > 什么是网页特效? </ FONT ></ A > < A href ="http://www.qpsh.com" target =_blank >< FONT color =#0000FF > 如何使用网页特效? </ FONT ></ A ></ MARQUEE > hobo 2009-11-19 16:48 发表评论 转载于:https://www.cnblogs.com/zhouweiwei/archive/2009/11/19/1866499.html