请设置direction的参数来设定活动字幕的滚动方向 down:向下滚动;left:向左滚动;right:向右滚动;up:向下滚动。代码如下:
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>无标题文档</title></head><style type="text/css">div{float:left;display:block; margin:0px; padding:0px;}.quan{ width:900px; height:100px;}.left{ width:300px; height:100px;}.left img{ width:100px; height:100px;}.mid{ width:300px; height:100px; text-align:center;}.right{ width:300px; height:100px;}.right img{ width:100px; height:100px;}</style><body><div ><div ><marquee><img src="1.jpg"><img src="2.jpg"><img src="3.jpg"></marquee></div><div >输入文字部分</div><div ><marquee><img src="1.jpg"><img src="2.jpg"><img src="3.jpg"></marquee></div></div></body></html>
可以用JavaScript 脚本和<marquee>标签做,JavaScript还可以在同一区域让图片隔几秒轮换显示的效果,用<marquee directon="left" scrollamount="3" onmouseove=this.stop() onmoseout=this.start()><marquee >图片内容</marquee>属性:directon,滚动方向;
scrollamount,滚动速度(值越大速度越快); onmouseove=this.stop() ,鼠标附上去时停止运动;
onmoseout=this.start(),鼠标离开时开始运动;其它属性可以自己再加。。。JavaScript你自己到其它网站找吧。。。
你没学过的话看不懂的,直接拷贝用上就行了,