PDA

View Full Version : Please help with document.getElementById img url



Cico
05 Sep 2007, 03:09 PM
Hello!

I am new to this forum. Can somebody help me to write img to div with: document.getElementById. I can't use style.backgroundImage, because i have to set image height and width. I tried:
document.getElementById('con').src="gallery/image1.jpg";

any help? thanx