Re: Javascript Swap Image

by Andrew McFarland <aamcf(at)aamcf.co.uk>

 Date:  Mon, 07 Jan 2002 08:07:20 +0000
 To:  "HWG-Languages" <hwg-languages(at)hwg.org>
 References:  qis
  todo: View Thread, Original
At 20:25 06/01/02 -0500, Emerson D. Champion wrote:
>Well, it seems the use of "javascript:" in <a href="javascript:"
>onClick="photoSwap(0);"> caused the problem. When I changed it to a # it
>worked just fine.

You could also try <a href="javascript:photoSwap(0)">

Your method can cause the page to jump when the window is shallower than 
the page. My method can be a bit unreliable (but I can't recall ever having 
trouble with it).

It's a nice effect by the way - excellent use of JavaScript.

Andrew

--
http://aamcf.co.uk/

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA