青口凤凰城:我想在网页的底端,让他滚动显示图片,如何办呀,哪们高手给写一下代码

来源:百度文库 编辑:高考问答 时间:2024/05/13 03:06:53

网页连续滚动图片的代码:

1.就直接用FLASH来做,简单,不过年如果想随时替换图片jiu有点烦了,而且大

2.用marquee:
<marquee id="scrollarea" direction="up" scrolldelay="5" scrollamount="5" width="167" height="580" onmouseover="this.stop();" onmouseout="this.start();"> 内容 </marquee>

direction=方向 up,left,right
scrolled=滚动方式
scrollamount= 速度 越小越慢
width=宽
height=高
onmouseover="this.stop();" 鼠标放在上面停止移动
onmouseout="this.start();" 拿开鼠标继续移动
scrollAmount=2 表示移动速度 数字越大,速度越快
behavior="alternate" 左右滚动

不过,滚动的时候有间隙......

3.连续滚动无空白:
http://zhidao.baidu.com/question/5937268.html

用marquee函数实现。你先建一个表格,表格border=o,各表格中插入图片,然后用marquee实现表格动态,试试吧。

用走马灯可以做到,
<marquee width=514 height=222 direction=down scrollamount=10 bgcolor="#333333" behavior=scroll scrolldelay=500>
<img........>
</marquee>
既然是底部,就应该是左右摆吧,那就把direction=后的down改为left或right.
<img>放入你的图片。其它参数你看着改吧。