怎样使网页里的图片向上滚动改为向左滚动?

来源:百度知道 编辑:UC知道 时间:2024/06/09 13:02:23
<div id="demo" style="width:200px;height=200px;overflow:hidden;background:#DDD"><div id="demo1">
<img src="1匹.jpg" width="130" height="120"><img src="images/15匹.jpg" width="130" height="120"><img src="images/2匹.jpg" width="130" height="120"><img src="images/1匹.jpg" width="130" height="120"><img src="images/10P.jpg" width="130" height="120">
</div>
<div id="demo2"></div> </div>
</html>
<script language="javascript" type="text/javascript">
<!--
var demo = document.getElementById("demo");
var demo1 = document.getElementById("demo1");
var demo2 = document.getElementById("demo2");
var speed=20; //滚动速度值,值越大速度越慢
demo2.inn

你可以参考一下这个。 用HTM就可以运行了。
<table width="90%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td width="12%" height="126" align="right">企业图片:</td>
<td width="88%" align="left"><table width="121" height="126" border="0" cellpadding="0" cellspacing="0"><tr><td>
<style type="text/css">
<!--
#demo {
background: #FFF;
overflow:hidden;
border: 1px dashed #CCC;
width: 600px;
}
#demo img {
border: 3px solid #F2F2F2;
}
#indemo {
float: left;
width: 800%;
}
#demo1 {
float: left;
}
#demo2 {
float: left;
}
-->
</style>

<div id="demo">
<div id="indemo">
<div id="demo1">