I am building a site that has 3 main sections (Sec1, Sec2, Sec3) These 3 sections will be the main navigation going accross the top. On the home page will be a image approx 528 X 228. Each section will have a image relevant to the section. So when the user scrolls over the Sec1 navigation link that sections image will apear. An example of this can be seen here http://www.corkscrewsetc.com/
However, I would like each section pic to link to that section. I am using Javascript for this. Here is the code
<script language="JavaScript" type="text/JavaScript">
var image1= new Image();
var image2= new Image();
var image3= new Image();
image1.src = "img/image1.jpg";
image2.src = "img/image2.jpg";
image3.src = "img/image3.jpg";
function doButtons(picimage) {
eval("document['picture'].src = " + picimage + ".src");}
</script>
Then inserting the image using
<img name=picture src="img/iamge_main.jpg" width="528" height="228" border="0">
The rotation works fine but I would like to add links to each image.
Thanks in advance for any suggestions.