Need Help in Validating Site Only 1 error remains

Discussion in 'HTML & Website Design' started by paidhosting, Jul 8, 2007.

  1. #1
    paidhosting, Jul 8, 2007 IP
  2. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #2
    You have onload on a IMG tag:

    <img src="/livehelp/include/status.php" id="LiveHelpStatus" name="LiveHelpStatus" border="0" alt="Live Help" onload= "statusImagesLiveHelp[statusImagesLiveHelp.length] = this;"/>

    That is NOT valid XHTML... or even HTML for that matter - while a number of browsers support that method it is NOT in the specification.

    Though in general you should probably take an axe to the entire javascript for mouseover images stuff as there's more of 1997 about that than 2007. A sliding images technique would mean less files, no need for any goofy pre-cache, and less inlining of presentation in your HTML.

    STUPID ***** Fireworks/Dreamweaver mouseovers - why they STILL use that technique which was a bad idea almost a DECADE ago is beyond me. Just bloats out the page for functionality CSS can do in a quarter the code.
     
    deathshadow, Jul 8, 2007 IP
  3. paidhosting

    paidhosting Peon

    Messages:
    4,822
    Likes Received:
    483
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Well i just removed that onload code and i do not see any problem with proper functioning of script so i suppose it should be ok now, but if you put onload in body tag it should work according to w3c. but thanks for the feedback and help.
     
    paidhosting, Jul 9, 2007 IP