Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Howto validate this html...?

Reply
Thread Tools

Howto validate this html...?

 
 
Tom
Guest
Posts: n/a
 
      05-05-2004
<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?

Thanks for any thoughts.
Tom


 
Reply With Quote
 
 
 
 
Mitja
Guest
Posts: n/a
 
      05-05-2004
Tom <(E-Mail Removed)>
(news:c7bp8j$tes$(E-Mail Removed)) 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?
>
> Thanks for any thoughts.
> Tom


Name parameter only applies to form elements; use id instead.


 
Reply With Quote
 
 
 
 
Steve Pugh
Guest
Posts: n/a
 
      05-05-2004
"Tom" <(E-Mail Removed)> 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 <(E-Mail Removed)> <http://steve.pugh.net/>
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie, unable to validate with genuine windows XP Pro? =?Utf-8?B?SWdvciBRdWFzaW1vZG8=?= Microsoft Certification 0 11-05-2005 08:17 PM
Xerces, howto parse stringstream and validate with xsd-file heiko C++ 0 10-01-2005 01:06 PM
Validate SessionID Shankar Reddy ASP .Net 3 09-25-2004 05:59 AM
can i validate the presence of .Net framework in the OS a_srivathsan ASP .Net 2 09-08-2004 03:56 AM
howto validate a checkboxlist Dan ASP .Net Web Controls 1 07-16-2003 01:23 PM



Advertisments