html网页图片自动滚动代码,实现网页图片循环滚动的代码 上/下/左/右(html or asp)…

html网页图片自动滚动代码,实现网页图片循环滚动的代码 上/下/左/右(html or asp)…向上:href=”http://image2.sina.com.cn/gm/lineage2/whz/newwh/images/fy/images/images/ifimage/”>src=”bxtt.gif”>src=”bzjd.gif”>src=”bxtt.gif”>src=”bzjd.gif”>src=”bxtt.gif”>src=”bzjd.gif”&g…

向上:

href=”http://image2.sina.com.cn/gm/lineage2/whz/newwh/images/fy/images/images/ifimage/”>

gfjs.gif

src=”bxtt.gif”>

src=”bzjd.gif”>

gfjs.gif

src=”bxtt.gif”>

src=”bzjd.gif”>

gfjs.gif

src=”bxtt.gif”>

src=”bzjd.gif”>

gfjs.gif

src=”bxtt.gif”>

src=”bzjd.gif”>

gfjs.gif

src=”bxtt.gif”>

src=”bzjd.gif”>

gfjs.gif

src=”bxtt.gif”>

src=”bzjd.gif”>

gfjs.gif

src=”bxtt.gif”>

src=”bzjd.gif”>

gfjs.gif

src=”bxtt.gif”>

src=”bzjd.gif”>

gfjs.gif

src=”bxtt.gif”>

src=”bzjd.gif”>

gfjs.gif

src=”bxtt.gif”>

src=”bzjd.gif”>

gfjs.gif

src=”bxtt.gif”>

src=”bzjd.gif”>

var speed=30

demo2.innerHTML=demo1.innerHTML

function Marquee(){

if(demo2.offsetTop-demo.scrollTop<=0) ,向下:>=0

demo.scrollTop-=demo1.offsetHeight ,向下scrollTop=+

else{

demo.scrollTop++ ,向下scrollTop–}

}

var MyMar=setInterval(Marquee,speed)

demo.οnmοuseοver=function() {clearInterval(MyMar)}

demo.οnmοuseοut=function() {MyMar=setInterval(Marquee,speed)}

向下:

href=”http://image2.sina.com.cn/gm/lineage2/whz/newwh/images/fy/images/images/ifimage/”>

gfjs.gif

src=”bxtt.gif”>

src=”bzjd.gif”>

gfjs.gif

src=”bxtt.gif”>

src=”bzjd.gif”>

gfjs.gif

src=”bxtt.gif”>

src=”bzjd.gif”>

gfjs.gif

src=”bxtt.gif”>

src=”bzjd.gif”>

gfjs.gif

src=”bxtt.gif”>

src=”bzjd.gif”>

gfjs.gif

src=”bxtt.gif”>

src=”bzjd.gif”>

gfjs.gif

src=”bxtt.gif”>

src=”bzjd.gif”>

gfjs.gif

src=”bxtt.gif”>

src=”bzjd.gif”>

gfjs.gif

src=”bxtt.gif”>

src=”bzjd.gif”>

gfjs.gif

src=”bxtt.gif”>

src=”bzjd.gif”>

gfjs.gif

src=”bxtt.gif”>

src=”bzjd.gif”>

var speed=30

demo2.innerHTML=demo1.innerHTML

demo.scrollTop=demo.scrollHeight

function Marquee(){

if(demo1.offsetTop-demo.scrollTop>=0)

demo.scrollTop+=demo2.offsetHeight

else{

demo.scrollTop–

}

}

var MyMar=setInterval(Marquee,speed)

demo.οnmοuseοver=function() {clearInterval(MyMar)}

demo.οnmοuseοut=function() {MyMar=setInterval(Marquee,speed)}

向左:

href=”http://image2.sina.com.cn/gm/lineage2/whz/newwh/images/fy/images/images/ifimage/”>

style=”overflow:hidden;height:100px;width:300px;”>

align=left

cellpadding=0 cellspace=0 border=0>

valign=top>gfjs.gif

src=”bxtt.gif”>bzjd.gif

src=”gfjs.gif”>bxtt.gif

src=”bzjd.gif”>

valign=top>

var speed=30

demo2.innerHTML=demo1.innerHTML

function Marquee(){

if(demo2.offsetWidth-demo.scrollLeft<=0)

demo.scrollLeft-=demo1.offsetWidth

else{

demo.scrollLeft++

}

}

var MyMar=setInterval(Marquee,speed)

demo.οnmοuseοver=function() {clearInterval(MyMar)}

demo.οnmοuseοut=function() {MyMar=setInterval(Marquee,speed)}

向右:

href=”http://image2.sina.com.cn/gm/lineage2/whz/newwh/images/fy/images/images/ifimage/”>

style=”overflow:hidden;height:100px;width:300px;”>

align=left

cellpadding=0 cellspace=0 border=0>

valign=top>gfjs.gif

src=”bxtt.gif”>bzjd.gif

src=”gfjs.gif”>bxtt.gif

src=”bzjd.gif”>

valign=top>

var speed=30

demo2.innerHTML=demo1.innerHTML

demo.scrollLeft=demo.scrollWidth

function Marquee(){

if(demo.scrollLeft<=0)

demo.scrollLeft+=demo2.offsetWidth

else{

demo.scrollLeft–

}

}

var MyMar=setInterval(Marquee,speed)

demo.οnmοuseοver=function() {clearInterval(MyMar)}

demo.οnmοuseοut=function() {MyMar=setInterval(Marquee,speed)}

今天的文章html网页图片自动滚动代码,实现网页图片循环滚动的代码 上/下/左/右(html or asp)…分享到此就结束了,感谢您的阅读,如果确实帮到您,您可以动动手指转发给其他人。

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
如需转载请保留出处:https://bianchenghao.cn/28440.html

(0)
编程小号编程小号

相关推荐

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注