• 滚动公告栏代码 公告栏向上滚动代码 超链接公告栏滚动代码 - [博客实用技巧]

    2008年05月10日

          自上而下滚动的公告栏网页特效代码,公告里可以加超级连接,也可以设置颜色等其他参数.
    改变一下文字和颜色就可以了,后面提供有各种颜色对应的代码.

    <marquee dir=要滚动的方向 scrolldelay=时间 onmouseover=this.stop() onmouseout=this.start()
    >你要的文字</marquee>

     <MARQUEE onmouseover=this.stop() style=""
    onmouseout=this.start() scrollAmount=1 direction=up width=200
    height=120 border="0"
    align="center">
    填入要滚动的文字,也可以动态返回数据库的数据!
    </MARQUEE>

    应该是这种效果,你试一下!注:width=200 height=120是控制滚动区域的宽度与高度!
    其中:要滚动的方向为:
    left,right,down,up
    时间:1000为一秒

    代码如下:你可以先运行看效果

     


    收藏到:Del.icio.us

发表评论

您将收到博主的回复邮件
记住我


日历