引用msclass.js文件实现文字滚动效果,提示如图

JavaScript010

引用msclass.js文件实现文字滚动效果,提示如图,第1张

初始化错误 参考链接http://www.w3cfuns.com/notes/14464/70d94a0a7746eb7ba6cc298fdc52fb1f.html

<script type="text/javascript">

        new Marquee(

        {

                MSClass          : {MSClassID :  "MSClassBox " , ContentID :  "ContentID " , TabID :  "TabID "},

                Direction : "top",

                Step : 0.1,

                Width : 760,

                Height : 52,

                Timer : 50,

                DelayTime : 5000,

                WaitTime : 3000,

                ScrollStep: 52,

                AutoStart : 1

        })

        

        

        

        new Marquee(

        {

                MSClassID :  "MSClassBox ",

                ContentID :  "ContentID ",

                TabID :  "TabID ",

                Direction : "top",

                Step : [0.5,30],

                Width : 760,

                Height : 52,

                Timer : 50,

                DelayTime : 5000,

                WaitTime : 3000,

                ScrollStep: 52,

                AutoStart : 1

        })

        

        

        new Marquee(

        {

                MSClass : ["MSClassBox ","ContentID ","TabID "],

                Direction : "top",

                Step : [0.4,"easeOutElastic"],

                Width : 760,

                Height : 52,

                Timer : 50,

                DelayTime : 5000,

                WaitTime : 3000,

                ScrollStep: 52,

                AutoStart : 1

        })

</script>

使用MSClass.js组件吧

瞬间解决你水平滚动、垂直滚动,还可以定时滚动,自定义功能强。

www.hanzhen2000.com

你看看他们这个站上的滚动,就是我用MSClass.js解决的。

你可以参考一下。

麻烦采纳,谢谢!