|
Posted by Aaron Freeman on 10/06/68 11:42
I have a javascript swap image funciton that's called when a user clicks
on an image wrapped by an anchor. The anchor points to "#", but the
problem is that the image is below the fold, and when the user clicks
on the image, the image swaps but the page links to "#" and scrolls the
page to the top.
So it looks like:
<a href="#" onClick="function()"><img src="image.gif"></a>
If I place the onClick on the image itself, the swap will work without
jumping the page, but the cursor won't change to indicate a "hot" image.
Is there an easy solution here?
Thanks!
Navigation:
[Reply to this message]
|