[网站建设]网页中插入图片实现滚动代码.doc

上传人:小** 文档编号:89069493 上传时间:2019-05-17 格式:DOC 页数:4 大小:33.50KB
返回 下载 相关 举报
[网站建设]网页中插入图片实现滚动代码.doc_第1页
第1页 / 共4页
[网站建设]网页中插入图片实现滚动代码.doc_第2页
第2页 / 共4页
[网站建设]网页中插入图片实现滚动代码.doc_第3页
第3页 / 共4页
[网站建设]网页中插入图片实现滚动代码.doc_第4页
第4页 / 共4页
亲,该文档总共4页,全部预览完了,如果喜欢就下载吧!
资源描述

《[网站建设]网页中插入图片实现滚动代码.doc》由会员分享,可在线阅读,更多相关《[网站建设]网页中插入图片实现滚动代码.doc(4页珍藏版)》请在金锄头文库上搜索。

1、网站建设网页中插入图片实现滚动代码var speed=30butong_net_top2.innerHTML=butong_net_top1.innerHTML /克隆butong_net_top1为butong_net_top2function 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_

2、net_top跳到最顶端elsebutong_net_top.scrollTop+;var MyMar1=setInterval(Marquee1,speed)/设置定时器/鼠标移上时清除定时器达到滚动停止的目的butong_net_top.onmouseover=function() clearInterval(MyMar1)/鼠标移开时重设定时器butong_net_top.onmouseout=function()MyMar1=setInterval(Marquee1,speed)var speed=30butong_net_bottom2.innerHTML=butong_net_bo

3、ttom1.innerHTMLbutong_net_bottom.scrollTop=butong_net_bottom.scrollHeightfunction Marquee2()if(butong_net_bottom1.offsetTop-butong_net_bottom.scrollTop=0)butong_net_bottom.scrollTop+=butong_net_bottom2.offsetHeightelsebutong_net_bottom.scrollTop-var MyMar2=setInterval(Marquee2,speed)butong_net_botto

4、m.onmouseover=function() clearInterval(MyMar2)butong_net_bottom.onmouseout=function() MyMar2=setInterval(Marquee2,speed)img src=var speed=30/速度数值越大速度越慢butong_net_left2.innerHTML=butong_net_left1.innerHTMLfunction Marquee3()if(butong_net_left2.offsetWidth-butong_net_left.scrollLeft=0)butong_net_left.

5、scrollLeft-=butong_net_left1.offsetWidthelsebutong_net_left.scrollLeft+var MyMar3=setInterval(Marquee3,speed)butong_net_left.onmouseover=function() clearInterval(MyMar3)butong_net_left.onmouseout=function() MyMar3=setInterval(Marquee3,speed)var speed=30/速度数值越大速度越慢butong_net_right2.innerHTML=butong_n

6、et_right1.innerHTMLfunction Marquee4()if(butong_net_right.scrollLeft=0)butong_net_right.scrollLeft+=butong_net_right2.offsetWidthelsebutong_net_right.scrollLeft-var MyMar4=setInterval(Marquee4,speed)butong_net_right.onmouseover=function() clearInterval(MyMar4)butong_net_right.onmouseout=function() MyMar4=setInterval(Marquee4,speed)

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 商业/管理/HR > 管理学资料

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号