[thelist] Weird dom behaviour
George E. Papadakis
georgep at phaistosnetworks.gr
Thu Feb 3 09:44:30 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.
When executing this function not by onclicking (or onmouseover-ing) its
working fine.
The only "problem" is that when applying this on any event.
Any ideas would be appreciated.
--
gp
More information about the thelist
mailing list