PDA

View Full Version : DD Conveyor Belt slideshow script: Vertical?



SaraLynnDesign
08-02-2006, 09:24 PM
1) Script Title: Conveyor Belt slideshow

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/leftrightslide.htm

3) Describe problem: I haven't come across any problems, but I am wondering if it is possible to run this script vertically and what would need to be modified. I think I'd want to to scroll from the top down, but it wouldn't matter. Just want to know if it is possible and how to implement.

Thank you!

SLD

mburt
08-02-2006, 10:32 PM
Actually, I wouldn't even try to mess with that. It would probably be an entirely different script, try this one.


<html>
<head>
<script language="javascript">
var i=0
var speed=1.5
function scroll() {
i=i+speed
content.scrollTop=i
if (i>content.scrollHeight-140) {i=0}
t1=setTimeout("scroll()",0)
}
window.onload=scroll
</script>
</head>
<body>
<div id="content" style="border:1px solid gray;padding:2px;font:12px arial;width:120px;height:140px;overflow-y:hidden" onmouseover="clearTimeout(t1)" onmouseout="scroll()">
<span style="height:140px;width:100px"></span>
<img src="http://www.dynamicdrive.com/dynamicindex4/dynamicbook1.gif" border=1></a>
<img src="http://www.dynamicdrive.com/dynamicindex4/dynamicbook2.gif" border=1></a>
<img src="http://www.dynamicdrive.com/dynamicindex4/dynamicbook3.gif" border=1></a>
<img src="http://www.dynamicdrive.com/dynamicindex4/dynamicbook4.gif" border=1></a>
<img src="http://www.dynamicdrive.com/dynamicindex4/dynamicbook5.gif" border=1></a>
<span style="height:140px;width:100px"></span>
</div>
</body>
</html>

SaraLynnDesign
08-03-2006, 04:35 AM
mburt,
thanks for the help. i will try this script and let you know how it goes. i really appreciate it!

SLD