I am busy making a website for an architecture firm
I have a div
with 100% height position on the right, with images inside this div
You can view this website here to see what I am talking about.
The arrows under the div make the margin-top
of the first img
within the div
-135px
of what it currently is. (done using Javascript)
My goal is to try and make the images within the div continuos forever so that when that after the last image comes the first image again. (Obviously without having to copy and paste the images over and over again).
The HTML for the div
:
<div id="rightPanel">
<div id="first" style="margin-top:0px;" onclick="changeF('url(images/bg1.jpg)')"><img src="images/thumb.jpg" width="170px" height="113px"></div>
<div onclick="changeF('green')"><img width="170px" style="background:green;" height="113px"></div>
<div onclick="changeF('yellow')"><img width="170px" style="background:yellow;" height="113px"></div>
<div onclick="changeF('purple')"><img width="170px" style="background:purple;" height="113px"></div>
<div onclick="changeF('red')"><img width="170px" style="background:red;" height="113px"></div>
<div onclick="changeF('blue')"><img width="170px" style="background:blue;" height="113px"></div>
<div onclick="changeF('aqua')"><img width="170px" style="background:aqua;" height="113px"></div>
<div onclick="changeF('orange')"><img width="170px" style="background:orange;" height="113px"></div>
<div onclick="changeF('yellow')"><img width="170px" style="background:yellow;" height="113px"></div>
<div onclick="changeF('white')"><img width="170px" style="background:white;" height="113px"></div>
<div onclick="changeF('gray')"><img width="170px" style="background:gray;" height="113px"></div>
<div onclick="changeF('pink')"><img width="170px" style="background:pink;" height="113px"></div>
<div onclick="changeF('yellow')"><img width="170px" style="background:yellow;" height="113px"></div>
<div onclick="changeF('purple')"><img width="170px" style="background:purple;" height="113px"></div>
<div onclick="changeF('red')"><img width="170px" style="background:red;" height="113px"></div>
<div onclick="changeF('blue')"><img width="170px" style="background:blue;" height="113px"></div>
<div onclick="changeF('aqua')"><img width="170px" style="background:aqua;" height="113px"></div>
<div onclick="changeF('orange')"><img width="170px" style="background:orange;" height="113px"></div>
<div onclick="changeF('violet')"><img width="170px" style="background:violet;" height="113px"></div>
<div onclick="changeF('white')"><img width="170px" style="background:white;" height="113px"></div>
<div onclick="changeF('black')"><img width="170px" style="background:black;" height="113px"></div>
</div>
Is there any method that would make this possible?
Your answers are highly appreciated.