[thelist] flipping backgrounds of elements in IE/NS ??
Peter-Paul Koch
gassinaumasis at hotmail.com
Fri Jul 6 03:51:00 CDT 2001
>document.getElementById("thiscellDiv").style.background-image.src =
document.getElementById("thiscellDiv").style.backgroundImage =
"url('the_image.gif')"
Now you do document..background MINUS image.src, which makes no sense at
all. In general, CSS background-image, margin-left becomes JavaScript
backgroundImage, marginLeft.
Also, the .src property does not exist on the backgroundImage, but in NN4
you have to do background.src (without the 'Image'). Confused yet <g>?
Otherwise, see
http://www.tijs.org/testlab/photoalbum/index.html
for example code.
ppk
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
More information about the thelist
mailing list