I have a need to display a lot of image thumnails in a small space.
My idea is to have 3 columns of thumbnails with an undetermined amount of rows. I planned to put this content in a and then put that inside a viewport div. Like so:
<div id="viewport" style="width: 300px; height: 300px; overflow: hidden;">
<div id="content" style="width: 300px; height: 100000px;">
Rows of thumbnails go here
</div>
</div>
<a href="javascript:ScrollUp()">Previous</a>
<a href="javascript:ScrollDown()">Next</a>
Autotrader's image control is exactly what I am going for if an example helps illustrate my point.
I think what I need to do is change the topMargin of 'content' over a period of time with javascript for a scroll effect when one of the buttons is clicked.
I don't mess with javascript much and I'm not sure where to start. Can someone point me in the right direction?