符合web标准的连续滚动图像的js代码_图象特效

";
leftrightslide[0]+='';
////NO NEED TO EDIT BELOW THIS LINE////////////
var copyspeed=slidespeed
leftrightslide=''+leftrightslide.join(" ")+''
var iedom=document.all||document.getElementById
if (iedom)
document.write(''+leftrightslide+'')
var actualwidth=''
var cross_slide, ns_slide

function fillup(){
if (iedom){
cross_slide=document.getElementById? document.getElementById("test2") : document.all.test2
cross_slide2=document.getElementById? document.getElementById("test3") : document.all.test3
cross_slide.innerHTML=cross_slide2.innerHTML=leftrightslide
actualwidth=document.all? cross_slide.offsetWidth : document.getElementById("temp").offsetWidth
cross_slide2.style.left=actualwidth-5
}
else if (document.layers){
ns_slide=document.ns_slidemenu.document.ns_slidemenu2
ns_slide2=document.ns_slidemenu.document.ns_slidemenu3
ns_slide.document.write(leftrightslide)
ns_slide.document.close()
actualwidth=ns_slide.document.width
ns_slide2.left=actualwidth
ns_slide2.document.write(leftrightslide)
ns_slide2.document.close()
}
lefttime=setInterval("slideleft()",30)
}
window.onload=fillup

function slideleft(){
if (iedom){
if (parseInt(cross_slide.style.left)>(actualwidth*(-1)+8))
cross_slide.style.left=parseInt(cross_slide.style.left)-copyspeed
else
cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth-5

if (parseInt(cross_slide2.style.left)>(actualwidth*(-1)+8))
cross_slide2.style.left=parseInt(cross_slide2.style.left)-copyspeed
else
cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth-5

}
else if (document.layers){
if (ns_slide.left>(actualwidth*(-1)+8))
ns_slide.left-=copyspeed
else
ns_slide.left=ns_slide2.left+actualwidth

if (ns_slide2.left>(actualwidth*(-1)+8))
ns_slide2.left-=copyspeed
else
ns_slide2.left=ns_slide.left+actualwidth
}
}

if (iedom||document.layers){
with (document){
document.write('
')
write('
')
write('

')
write('

')
write('

')
}
else if (document.layers){
write('')
write('')
write('')
write('')
}
document.write('')
}
}

[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]

时间: 2024-08-04 01:24:35

符合web标准的连续滚动图像的js代码_图象特效的相关文章

javascript 不间断的图片滚动并可点击_图象特效

css: 复制代码 代码如下: <style type="text/css"> .rollBox { width: 704px; overflow: hidden; padding: 12px 0 5px 6px; } .rollBox .LeftBotton { height: 52px; width: 19px; background: url(jt.gif) no-repeat 11px 0; overflow: hidden; float: left; displa

链接图片无缝(无间断)向左平滑滚动Js版代码_图象特效

向左无缝滚动

常见JS效果之图片减速度滚动实现代码_图象特效

复制代码 代码如下: <!DOCTYPE html> <html> <head> <meta charset="gb2312" /> <title>图片减速度滚动(by rentj1@163.com;)</title> <style> ul{ margin:0; padding:0} ul{ list-style:none;} body{font:12px/1.2 "宋体"; } .

超级经典一套鼠标控制左右滚动图片带自动翻滚_图象特效

周宪环 周桢炜 张颖 王乃超 谢雯琇 吕铬 贾正如

左右图片循环滚动停顿一下后继续_图象特效

推荐一些符合web标准的媒体播放器代码

web|web标准|媒体 再见了Embed,一些媒体播放器的符合web标准的代码 由于Embed标签是Netscape的私有财产,故一直未被W3C认可,对于各种媒体文件使用Embed标签是非标准的,如何改变?Elizabeth Castro的 Bye Bye Embed 一文对于各种媒体播放器给出了很好的符合web标准的代码. 在线媒体播放--Google Video and YouTube <object type="application/x-shockwave-flash"

符合Web标准的超链接

web|web标准|链接 在HTML 4.0 Strict和XHTML 1.0 STRICT里不允许在<a>标签里使用target属性,这是一件令网页设计者懊恼的事.在过渡的规范里还是允许使用的.但通过一定的方法,我们可以解决这一问题. HTMl4.0规范里拿掉了target属性.但它添加了另外一个属性:rel.这个属性是用来指定包含链接的文档和所链接文档之间的关系的.规范里定义了其属性值(如:next,previous,chapter,section),在这些属性里大多数是用来定义一个大文档

符合web标准的媒体播放器代码

web|web标准|媒体 再见了Embed,一些媒体播放器的符合web标准的代码 由于Embed标签是Netscape的私有财产,故一直未被W3C认可,对于各种媒体文件使用Embed标签是非标准的,如何改变?Elizabeth Castro的 Bye Bye Embed 一文对于各种媒体播放器给出了很好的符合web标准的代码. 在线媒体播放--Google Video and YouTube <object type="application/x-shockwave-flash"

手机网站页面制作更应该符合WEB标准

导读:国内手机网站目前还算是个新鲜事物,相应的手机网站前端开发也并不是特别成熟,对于一个网页设计师来说要做一个手机网站还是会碰到许多问题,本文转载自淘宝 UED,分享如何开发进行手机网站的前端卡发. 从09年初接手淘宝手机网站前端开发的工作至今,转眼已是一年.一步步看着手机淘宝从最初的beta版本到今天的样子,感慨良多. 手机网站开发,有着许多不为人知的困难: 一是可参考的资料太少,大部分手机网站都处于起步阶段,很多的时候都是摸着石头过河,而鉴于淘宝自身的特殊性,也使得我们在参考成功案例之余,要