社区
其他
帖子详情
关于DREAMWEAVER4。0时间轴的问题
hntjc
2002-07-19 09:54:03
本人由于某一网页所需显示图片较多,因此想采用时间轴加行为在同一位置依次显示这些图片,并循环,制作完成后,发现显示的图片切换速度逐渐有递增或递减的现象,请解答。如果不采用时间轴,是否还有其它方法。
谢谢!
...全文
94
3
打赏
收藏
关于DREAMWEAVER4。0时间轴的问题
本人由于某一网页所需显示图片较多,因此想采用时间轴加行为在同一位置依次显示这些图片,并循环,制作完成后,发现显示的图片切换速度逐渐有递增或递减的现象,请解答。如果不采用时间轴,是否还有其它方法。 谢谢!
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
3 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
recollect
2002-07-20
打赏
举报
回复
<script language="JavaScript1.2">
var scrollerwidth=140; var scrollerheight=110; var scrollerbgcolor='white'; var pausebetweenimages=3000; var slideimages=new Array()
slideimages[7]='<a href="flashlove2.htm"><img src="flashlogo/forever.gif" alt="直到永远" border="0" target=_blank></a>';
slideimages[8]='<a href="flashlove2.htm"><img src="flashlogo/dream.gif" alt="dream" border="0" target=_blank></a>';
slideimages[9]='<a href="flash.htm"><img src="flashlogo/letter.gif" alt="伊能静——秋天的信" border="0"></a>';
slideimages[3]='<a href="flashlove2.htm"><img src="flashlogo/12281.gif" alt="周杰伦——可爱女人" border="0" target=_blank></a>';
slideimages[2]='<a href="flashlove2.htm"><img src="flashlogo/12272.gif" alt="周杰伦——爱在西元前" border="0" target=_blank></a>';
slideimages[1]='<a href="flash.htm"><img src="flashlogo/12311.gif" alt="周杰伦——简单爱" border="0" target=_blank></a>';
slideimages[0]='<a href="flash.htm"><img src="flashlogo/12052.gif" alt="永远" border="0"></a>';
slideimages[4]='<a href="flash.htm"><img src="flashlogo/07092.gif" alt="say forever" border="0"></a>';
slideimages[5]='<a href="flash.htm"><img src="flashlogo/04264.gif" alt="杜德伟——情人" border="0"></a>';
slideimages[6]='<a href="flash.htm"><img src="flashlogo/04131.gif" alt="杜德伟——不走" border="0"></a>';
slideimages[10]='<a href="flash.htm"><img src="flashlogo/musicball.gif" alt="音乐爱情故事——气球" border="0"></a>';
slideimages[11]='<a href="flash.htm"><img src="flashlogo/10103.gif" alt="任贤齐——给你幸福" border="0"></a>';
slideimages[12]='<a href="flash.htm"><img src="flashlogo/02213.gif" alt="纪如景——值得一辈子去爱" border="0"></a>';
if (slideimages.length>1)
i=2
else
i=0
function move1(whichlayer){
tlayer=eval(whichlayer)
if (tlayer.top>0&&tlayer.top<=5){
tlayer.top=0
setTimeout("move1(tlayer)",pausebetweenimages)
setTimeout("move2(document.main.document.second)",pausebetweenimages)
return
}
if (tlayer.top>=tlayer.document.height*-1){
tlayer.top-=5
setTimeout("move1(tlayer)",100)
}
else{
tlayer.top=scrollerheight
tlayer.document.write(slideimages[i])
tlayer.document.close()
if (i==slideimages.length-1)
i=0
else
i++
}}
function move2(whichlayer){
tlayer2=eval(whichlayer)
if (tlayer2.top>0&&tlayer2.top<=5){
tlayer2.top=0
setTimeout("move2(tlayer2)",pausebetweenimages)
setTimeout("move1(document.main.document.first)",pausebetweenimages)
return
}
if (tlayer2.top>=tlayer2.document.height*-1){
tlayer2.top-=5
setTimeout("move2(tlayer2)",100)
}
else{
tlayer2.top=scrollerheight
tlayer2.document.write(slideimages[i])
tlayer2.document.close()
if (i==slideimages.length-1)
i=0
else
i++
}}
function move3(whichdiv){
tdiv=eval(whichdiv)
if (tdiv.style.pixelTop>0&&tdiv.style.pixelTop<=5){
tdiv.style.pixelTop=0
setTimeout("move3(tdiv)",pausebetweenimages)
setTimeout("move4(second2)",pausebetweenimages)
return
}
if (tdiv.style.pixelTop>=tdiv.offsetHeight*-1){
tdiv.style.pixelTop-=5
setTimeout("move3(tdiv)",100)
}
else{
tdiv.style.pixelTop=scrollerheight
tdiv.innerHTML=slideimages[i]
if (i==slideimages.length-1)
i=0
else
i++
}
}
function move4(whichdiv){
tdiv2=eval(whichdiv)
if (tdiv2.style.pixelTop>0&&tdiv2.style.pixelTop<=5){
tdiv2.style.pixelTop=0
setTimeout("move4(tdiv2)",pausebetweenimages)
setTimeout("move3(first2)",pausebetweenimages)
return
}
if (tdiv2.style.pixelTop>=tdiv2.offsetHeight*-1){
tdiv2.style.pixelTop-=5
setTimeout("move4(second2)",100)
}
else{
tdiv2.style.pixelTop=scrollerheight
tdiv2.innerHTML=slideimages[i]
if (i==slideimages.length-1)
i=0
else
i++
}}
function startscroll(){
if (document.all){
move3(first2)
second2.style.top=scrollerheight
}
else if (document.layers){
move1(document.main.document.first)
document.main.document.second.top=scrollerheight+5
document.main.document.second.visibility='show'
}}
window.onload=startscroll
//-->
</script>
上面的scrip程序可以实现图片替换,你只需将其中相应的gif文件改成你需要的图片文件,即可实现.
alphalee
2002-07-19
打赏
举报
回复
http://tcpip.myrice.com,
图片循环展示,可以看代码。
qisanyou
2002-07-19
打赏
举报
回复
http://www.1studio.net/html/example/0050/0050.htm
http://www.1studio.net/html/example/0009/0009.htm
............
去这个网站找一些JS效果
Dreamweaver
实验(有步骤)
Dreamweaver
实验 模板的使用 层与
时间轴
(一) 超链接......
网页设计速成之
Dreamweaver
本课程由有着多年网页设计经验的谢青老师精心打造,课程从基础讲起,讲述页面中的标签、页面中的布局与框架、HTML样式表、页面中的表单、经典项目实战等内容。课程内容丰富全面,非常适合初级学习者。
Dreamweaver
网页设计 授课教案
Dreamweaver
课程设计 1.网页设计概述; 2.
Dreamweaver
8 入门; 3.使用
Dreamweaver
8创建站点; 4.页面设置、CSS简介; 5.制作包含常见对象的网页; 6.表格; *7.框架; 8.层; 9.
时间轴
和行为; *10.应用模板。
第7章_层和
时间轴
.ppt
Dreamweaver
8中文版实用教程 第7章_层和
时间轴
.ppt
其他
10,607
社区成员
29,047
社区内容
发帖
与我相关
我的任务
其他
Web 开发 其他
复制链接
扫一扫
分享
社区描述
Web 开发 其他
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章