[thelist] validation problem

Jeff Howden jeff at jeffhowden.com
Mon Mar 24 08:50:41 CST 2003


> From: { schaapy }
> http://www.theparagon.org/work/gmb/gallery.shtml
> <a href="#" onmouseover="swtch(3,center)"
>    onmouseout="swtch(3,center)">
> <img src="img/gallery/zeeland_highschool/three.jpg"
>  alt="Zeeland Building Shot One" border="1"></a>

Don't have any suggestions for your particular questions, but had some
comments nonetheless.

First, make sure that all the images you're swapping in are the same size.
Otherwise you'll end up with the ">> Back to TOP" link bouncing up and down
as you swap images.

Second, please don't use a hash as the value of the href.  You're needlessly
breaking the page and its functionality for non-js users.  give the
following article a read.

Links & JavaScript Living Together in Harmony

as a solution, i'd suggest putting the path to the image you're swapping in
in the href.  then, add an onlick event handler with the value "return
false".  now everyone can see the bigger image.  the only difference is
non-js users will have to click to it and then click back to the site while
js users will only need to place their mouse over the image they wanna see



NOTICE:  members.evolt.org web and email address are changing!
| OLD:                            | NEW:                            |
| jeff at members.evolt.org          | evolt at jeffhowden.com            |
| http://members.evolt.org/jeff/  | http://evolt.jeffhowden.com/    |

More information about the thelist mailing list