html页面中图片滚动,Html网页图片滚动代码

html页面中图片滚动,Html网页图片滚动代码style=overflow:hidden;height:100;width:90;>id=butong_net_top2>varspeed=30butong_net_top2.innerHTML=butong_net_top1.innerHTML//克隆butong_net_top1为butong_net_top2functionMarquee1(){//当滚动至butong_n…

style=overflow:hidden;height:100;width:90;>

%E6%8F%92%E5%85%A5%E9%9C%80%E8%A6%81%E6%BB%9A%E5%8A%A8%E7%9A%84%E5%9B%BE%E7%89%87

%E6%8F%92%E5%85%A5%E9%9C%80%E8%A6%81%E6%BB%9A%E5%8A%A8%E7%9A%84%E5%9B%BE%E7%89%87

%E6%8F%92%E5%85%A5%E9%9C%80%E8%A6%81%E6%BB%9A%E5%8A%A8%E7%9A%84%E5%9B%BE%E7%89%87

%E6%8F%92%E5%85%A5%E9%9C%80%E8%A6%81%E6%BB%9A%E5%8A%A8%E7%9A%84%E5%9B%BE%E7%89%87

%E6%8F%92%E5%85%A5%E9%9C%80%E8%A6%81%E6%BB%9A%E5%8A%A8%E7%9A%84%E5%9B%BE%E7%89%87

id=butong_net_top2>

var speed=30

butong_net_top2.innerHTML=butong_net_top1.innerHTML

//克隆butong_net_top1为butong_net_top2

function Marquee1(){

//当滚动至butong_net_top1与butong_net_top2交界时

if(butong_net_top2.offsetTop-butong_net_top.scrollTop<=0)&<60;&<60;

butong_net_top.scrollTop-=butong_net_top1.offsetHeight

//butong_net_top跳到最顶端

else{

butong_net_top.scrollTop++;

}

}

var MyMar1=setInterval(Marquee1,speed)//设置定时器

//鼠标移上时清除定时器达到滚动停止的目的

butong_net_top.οnmοuseοver=function() {clearInterval(MyMar1)}

//鼠标移开时重设定时器

butong_net_top.οnmοuseοut=function(){MyMar1=setInterval(Marquee1,speed)}

style=overflow:hidden;height:100;width:90;>

%E6%8F%92%E5%85%A5%E9%9C%80%E8%A6%81%E6%BB%9A%E5%8A%A8%E7%9A%84%E5%9B%BE%E7%89%87

%E6%8F%92%E5%85%A5%E9%9C%80%E8%A6%81%E6%BB%9A%E5%8A%A8%E7%9A%84%E5%9B%BE%E7%89%87

%E6%8F%92%E5%85%A5%E9%9C%80%E8%A6%81%E6%BB%9A%E5%8A%A8%E7%9A%84%E5%9B%BE%E7%89%87

%E6%8F%92%E5%85%A5%E9%9C%80%E8%A6%81%E6%BB%9A%E5%8A%A8%E7%9A%84%E5%9B%BE%E7%89%87

%E6%8F%92%E5%85%A5%E9%9C%80%E8%A6%81%E6%BB%9A%E5%8A%A8%E7%9A%84%E5%9B%BE%E7%89%87

id=butong_net_bottom2>

var speed=30

butong_net_bottom2.innerHTML=butong_net_bottom1.innerHTML

butong_net_bottom.scrollTop=butong_net_bottom.scrollHeight

function Marquee2(){

if(butong_net_bottom1.offsetTop-butong_net_bottom.scrollTop>=0)

butong_net_bottom.scrollTop+=butong_net_bottom2.offsetHeight

else{

butong_net_bottom.scrollTop–

}

}

var MyMar2=setInterval(Marquee2,speed)

butong_net_bottom.οnmοuseοver=function()

{clearInterval(MyMar2)}

butong_net_bottom.οnmοuseοut=function()

{MyMar2=setInterval(Marquee2,speed)}

style=”overflow:hidden;width:500px;”>

border=”0″>

id=”butong_net_left1″ valign=”top”

align=”center”>

border=”0″>

src=”

src=”插入需要滚动的图片”>

src=”插入需要滚动的图片”>

src=”插入需要滚动的图片”>

src=”插入需要滚动的图片”>

src=”插入需要滚动的图片”>

valign=”top”>

var speed=30//速度数值越大速度越慢

butong_net_left2.innerHTML=butong_net_left1.innerHTML

function Marquee3(){

if(butong_net_left2.offsetWidth-butong_net_left.scrollLeft<=0)

butong_net_left.scrollLeft-=butong_net_left1.offsetWidth

else{

butong_net_left.scrollLeft++

}

}

var MyMar3=setInterval(Marquee3,speed)

butong_net_left.οnmοuseοver=function()

{clearInterval(MyMar3)}

butong_net_left.οnmοuseοut=function()

{MyMar3=setInterval(Marquee3,speed)}

style=”overflow:hidden;width:500px;”>

border=”0″>

id=”butong_net_right1″ valign=”top”

align=”center”>

border=”0″>

src=”插入需要滚动的图片”>

src=”插入需要滚动的图片”>

src=”插入需要滚动的图片”>

src=”插入需要滚动的图片”>

src=”插入需要滚动的图片”>

valign=”top”>

var speed=30//速度数值越大速度越慢

butong_net_right2.innerHTML=butong_net_right1.innerHTML

function Marquee4(){

if(butong_net_right.scrollLeft<=0)

butong_net_right.scrollLeft+=butong_net_right2.offsetWidth

else{

butong_net_right.scrollLeft–

}

}

var MyMar4=setInterval(Marquee4,speed)

butong_net_right.οnmοuseοver=function()

{clearInterval(MyMar4)}

butong_net_right.οnmοuseοut=function()

{MyMar4=setInterval(Marquee4,speed)}

今天的文章html页面中图片滚动,Html网页图片滚动代码分享到此就结束了,感谢您的阅读,如果确实帮到您,您可以动动手指转发给其他人。

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

(0)
编程小号编程小号

相关推荐

发表回复

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