Welcome![Sign In][Sign Up]
Location:
Search - javascript scro

Search list

[Special Effectspic_scroll

Description: 打开页面后,图片就会不停的滚动。本实例首先使用了css中的overflow属性,把它的值设为hidden可以隐藏超出面积的部分,接着定义Marquee11()函数,通过改变gundong。scrollLeft的数值来使滚动图片的位置不停变化, 最后setInterval(mq,speed)来制作定时器达到动态效果。-Open the page, the picture will keep rolling. The examples of the first to use the css in the overflow attribute, its value is set to hidden to hide beyond the area of the part, then the definition of Marquee11 () function, by changing the gundong. Numerical scrollLeft to make a rolling picture of the location of non-stop change, the final setInterval (mq, speed) to create a timer to achieve the dynamic effects.
Platform: | Size: 11264 | Author: tsm | Hits:

CodeBus www.codebus.net