I'm wondering if it's possible to roll your mouse over images to enlarge them to a certain size without having the image opening in a new window and is it simple?
Thanks for the link, but I'm now stuck. I am putting 20 images onto a page and there will be 9 pages. So to make it easier for myself, I'm planning to have 1 page 20 images in 9 seperate folders, so I know where things are.
I think I have followed the first part of that "fact sheet" correct by creating an img.js file. Here is the scrip:-
THe first thing to do is to add all of the smaller images to your page exactly as you normally would and also place the first of the larger images where you want it to appear. You then surround each of the smaller images with a span tag that contains an onmouseover call that sets document.rollimg.src to the preloaded copy of the larger version of that image. The only other change that you need to make is to add name="rollimg" to the image tag for the larger image so that the rollovers will know which imige it is that is to be replaced.
Here is the code from the sample page so that you can see what these additions look like, the span tags around the first of the smaller images as well as the name attribute on the larger image are shown in bold:
<p align="center"><span onmouseover="document.rollimg.src=image0.src;"> <img src="graphics/pic1.gif" width="32" height="32" border="0" alt="1" /></span> <span onmouseover="document.rollimg.src=image1.src;"> <img src="graphics/pic2.gif" width="32" height="32" border="0" alt="2" /></span> <span onmouseover="document.rollimg.src=image2.src;"> <img src="graphics/pic3.gif" width="32" height="32" border="0" alt="3" /></span> </p> <p align="center"><img src="graphics/pic1a.gif" width="150" height="150" border="0" alt="Larger version of one of the smaller images above" name="rollimg" /></p>
Now I'm stuck. I've put all my 20 images onto the page where I want them and put the first large image onto the page as well.
I don't know what to edit from the scrippt or how. Also do I need to list all 20 images in the script for each image that is on the page?
I would be grateful if you could help me out please.
I would have normally posted the information here, but in this case it was a site specific thing. The information would have been no use to anyone else as it contained information about his particular website.