[thelist] Weird dom behaviour

Chris Heilmann lists at onlinetools.org
Thu Feb 3 10:00:20 CST 2005

> Hi all,
> I am trying to change the src attribute of an image when clicking (or
> mouseovering) another one.
> Say I have <p onclick="Do();">blah</p>
> And then
> function Do()
> {
> 	someElement.setAttribute("src","test.gif");
> }
> IE works as expected.
> Firefox does the image source switching, yet it "leaves" the page loading.
> I keep getting a "waiting for myServer" msg on my browser.

Never encountered that, have you tried without the setAttribute?


Chris Heilmann
Blog: http://www.wait-till-i.com
Writing: http://icant.co.uk/
Binaries: http://www.onlinetools.org/

More information about the thelist mailing list