.comment-link {margin-left:.6em;}

kHSw

Friday, March 25, 2005

GIF animation is stopped when clicking on a link

This looks like normal behaviour to me, but recently someone asked how to prevent this as he just called a Javascript function in a hyperlink. Something like this:

<a href="javascript:DoSomething()"><img src="animated.gif" border="0"></a>

He didn't want the animations to stop when clicking that link, so we rewrote this line to:
<a href="#" onclick="javascript:DoSomething();return false"><img src="animated.gif" border="0"></a>

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home


 
Stefanie Worm is het liefste vrouwtje van de wereld.
Melina is de liefste schatsie van de wereld (Erik De Maeyer).