Greetings, I have an image gallery where I need to display a bunch of thumbs and then go to a larger image when clicked. Seems fairly simple but I'm fairly new to JS. I want the larger image page to be just one page displaying the larger image of whatever is clicked. My image names are formatted like: thumb: WTP-111_th.jpg. larger image: WTP-111.jpg. The URL looks something like: http://mytestserver/hgi/patd.asp?Col1Image=images/camo/WTP-109_th.jpg patd.asp is the pattern detail page where I want to display the image: WTP-109.jpg. So far I can parse out the image name, eliminating the _th. What I can't seem to get is changing the img src dynamically on the page. Right now, it's the only thing on the page. Any help will be GREATLY appreciated. Kevin
You have to reference the image by it's id. For example: <img src="" id="imagetoreplace" /> HTML: then in your javascript you need to use this: document.getElementById("imagetoreplace").src="newimage.jpg"