Member Since: Mar 22, 2007
Mac Specs: Lenovo Z560 Hackintosh -:- '06 iMac -:- iPod Touch 2ndGen
04-18-2008, 09:10 AM
img = document.getElementById('imageID');
img.src = 'http://website.com/image.jpg';
That's off the top of my head, but it's something similar. The IMG tag needs an id="imageID"
for this to work:
<img id="imageID" src="image.jpg" />
You can also pre-load the new image into a variable and assign it later, but the code is slightly different. As Thyamine said there are bazillions of tutorials on the web for doing this
[URL="http://beadia.net"]Beadia[/URL - Jewelry Business Management Software]
I judge you when you use poor grammar.