图片滚动代码,网页中的滚动图片的代码怎么写
一、淘宝店招做文字滚动,滚动代码怎么弄
请设置direction的参数来设定活动字幕的滚动方向down:向下滚动;left:向左滚动;right:向右滚动;up:向下滚动。代码如下:
二、html代码。图片上下滚动特效
<MARQUEEonmouseover=stop()onmouseout=start()scrollAmount=3loop=infinitedeplay="0"><IMGsrc="第一张图片地址"><IMGsrc="第二张图片地址"></MARQUEE>
注释:
1)scrollAmount。它表示速度,值越大速度越快。
2)加入onmouseover=stop()onmouseout=start()代码,鼠标指向循环文字图片时他们会停止滚动,鼠标离开时继续滚动。
给滚动图片加超链接
用<ahref=>和</a>把<img>包围,并且img必须设border=0,否则图片会出现边框。例子如下:
<MARQUEEscrollAmount=3loop=infinitedeplay="0"><arel="external nofollow" href=""><imgsrc="图片网址"border=0></a></MARQUEE>
图片从右到左滚动
<MARQUEEwidth=宽height=高onmouseover=stop()onmouseout=start()scrollAmount=速度loop=infinitedeplay="0"><imgsrc="图片地址"><imgsrc="图片地址">···</MARQUEE>
图片从下到上滚动
<marqueebehavior="scroll"direction=upwidth="宽"height="高"scrollamount="5"onmouseout="this.start()"><imgsrc="图片网址"><imgsrc="图片网址">···</marquee>
带有超链接的图片实现滚动效果
<marqueebehavior="scroll"direction=upwidth="120"height="60"scrollamount="1"scrolldelay="60"onmouseover="this.stop()"onmouseout="this.start()"><atarget="cont"rel="external nofollow" rel="external nofollow" href="连接地址"><imgsrc="http://图片地址"idth="88"height="33"border="0"></a><atarget="cont"rel="external nofollow" rel="external nofollow" href="连接地址"><imgsrc="图片地址"width="88"height="33"border="0"></a></marquee>
三、网页中的滚动图片的代码怎么写
这段代码是从左向右无缝滚动代码,你直接放到放滚动图片的地方就行,记得设置下图片的宽高,还有就是上面css里面设置下整个图片滚动区域的宽度