Ok, sorry for the capital letters but I'm pulling my hair out here. So, I am fairly new to website development and I'm am currently developing a site for my model wife. I am creating a pictures page and trying to create it with JavaScript. I want basically a left side of the page with a bunch of thumbnails that when hovered over show the full size image on the right side of the page. I get the code below but don't know how to use CSS to position the full size image away from the thumb. Is there a way to id the 'full.png' image? How do I name/id, or get JavaScript or CSS to recognize that image?
Code:
<img src="thumb.png" id="image1" onMouseOver="window.document.image1.src='full.png';"
onMouseOut="window.document.image1.src='thumb.png';"/>
Any help would be appreciated!!
By the way... Yes, I know how to create this effect with just HTML and CSS by using the <a><img/><span><img/></span></a> but I'm reading two Javascript books right now and would like to do it using this language.
Bookmarks