Scroll table upwards or downwards using up and down button
Posted
by
Psinyee
on Stack Overflow
See other posts from Stack Overflow
or by Psinyee
Published on 2012-06-12T10:17:22Z
Indexed on
2012/06/12
10:40 UTC
Read the original article
Hit count: 196
I want to create a banner scrolling function for my homepage. I am not too sure of which programming language to use here. I want to code something similar to: http://www.squidfaceandthemeddler.com/. But I want the footer to remain at the same position while the user scroll the table. Is it possible to get that result? I have create a simple tables and 2 images for the user to click on
here is my code for the tables:
<div id="banner" style="height:750px; width:600px; overflow:scroll;" >
<table width="750px" height="600px">
<tr>
<td><a href="sale_1.php"><img src="banner1.png"/></a></td>
</tr>
</table>
<table width="750px" height="600px">
<tr>
<td><a href="sale_2.php"><img src="banner2.png"/></a></td>
</tr>
</table>
<table width="750px" height="600px">
<tr>
<td><a href="sale_3.php"><img src="banner3.png"/></a></td>
</tr>
</table>
</div>
and this is the upwards and downwards button for the scrolling:
<table width="750px" height="30px">
<tr>
<td align="right"><img src="images/up_arrow.png"/><img src="images/down_arrow.png"/></td>
</tr>
</table>
© Stack Overflow or respective owner