"Tom" <> wrote:
><a href="index.jsp"><img src="images/home.gif" width="81" height="21"
>alt="Home" name="home" onmouseover="home.src = homeon.src"
>onmouseout="home.src = homeoff.src" /></a>
>
>I am having a problem validating the name="home" part of this html...
>Any thoughts on how I can make it validate without having to rejig/rewrite
>the javascript?
Which version of HTML are you validating against?
name is valid as an attribute of img in all versions of HTML 4.01 and
in XHTML 1.0 Transitional. I'm guessing that you're trying to use
XHTML 1.0 Strict. Do you have any strong reasons to use that over HTML
4.01 Strict?
Using id instead of name won't require any major changes to the
JavaScript but will stop the rollover working in some older browsers.
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <> <http://steve.pugh.net/>
|