我想为我的主页创建横幅滚动功能。我不太确定在这里使用哪种编程语言。我想编码类似于:http://www.squidfaceandthemeddler.com/。但我希望页脚在用户滚动表格时保持在同一位置。是否有可能获得该结果?我创建一个简单的表格和2个图像供用户点击使用上下按钮向上或向下滚动表格
这里是我的表码:
<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>
,这是滚动的向上和向下按钮:
<table width="750px" height="30px">
<tr>
<td align="right"><img src="images/up_arrow.png"/><img src="images/down_arrow.png"/></td>
</tr>
</table>
嗯...阻止右键单击一个网站...糟糕的设计,不要复制的那部分;) – musefan
提供一个jsfiddle和有人会帮助你。 – iappwebdev