onClick image jumps

liunx

Guest
Hello,<br />
<br />
I'm workingon a site in Dreamweaver that includes a long list of products. Next to the products, in various sections, is an image area where the user can see what the product looks like. I have used an Image Swap behavior with an onClick action to make the images appear, and that works fine.<br />
<br />
My problem is that when you scroll to items further down the page and click on an item, you are taken back to the top of the page (and have to scroll back down to see the graphic). Is there a way to make the onClick not reload to the top of the page? <br />
<br />
I'd like to stay with the onClick option, and not have to revert to a rollover.<br />
<br />
Thanks!<!--content-->I'd bet you have a second, more troubling problem. You have links there that do nothing at all for the 13% of users who do not use JavaScript. Try instead something more like:<br />
<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"newImage.png" onclick="swap(this.href); return false"><!--content-->Thanks Charles, but it didn't work. Here is the original code I used.<br />
<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"#" onClick="MM_swapImage('book','','products/scissor.jpg',1)"><br />
NST-FS<br />
</a><!--content--><a href=http://www.webdeveloper.com/forum/archive/index.php/"products/scissor.jpg" onclick="MM_swapImage('book',this.href,'',1); return false">NST-FS</a><!--content-->
 
Back
Top