1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

W3C Validation error

Discussion in 'HTML & Website Design' started by satishtalim, Jun 22, 2005.

  1. #1
    I have this code in my html page -
    <script type="text/javascript"><!--
    var EXlogin='smtalim' // Login
    var EXvsrv='s9' // VServer
    navigator.javaEnabled()==1?EXjv="y":EXjv="n";
    EXd=document;EXw?"":EXw="na";EXb?"":EXb="na";
    EXd.write("<img src=\"http://e0.extreme-dm.com",
    "/"+EXvsrv+".g?login="+EXlogin+"&amp;",
    "jv="+EXjv+"&amp;j=y&amp;srw="+EXw+"&amp;srb="+EXb+"&amp;",
    "l="+escape(EXd.referrer)+"\" height=1 width=1 />");//-->
    </script>
    <noscript><img height="1" width="1" alt=""
    src="http://e0.extreme-dm.com/s9.g?login=smtalim&amp;j=n&amp;jv=n" />
    </noscript>
    
    Code (markup):
    When I validate this page at W3C, using W3C//DTD XHTML 1.0 Transitional//EN I get the error -
    "document type does not allow element "noscript" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag"

    I am unable to fix this error. The html code is of Extreme Tracker. Any pointers? All help appreciated.
     
    satishtalim, Jun 22, 2005 IP
  2. tresman

    tresman Well-Known Member

    Messages:
    235
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    138
    #2

    Two things so you can validate a XHTML strict 1.0:

    Do not put it on the <head>, put it on the body. Better than this, put it just before the </body> tag, so the loads first and then the js counter. That way if any problem with the counter server (i.e: has a bad day and becomes slow) you page will not hang till the counter loads.

    Sencond: look at this and see the diference:

    <noscript><p>
    <img height="1" width="1" alt="" src="http://e0.extreme-dm.com/s9.g?login=smtalim&amp;j=n&amp;jv=n" />
    </p>
    </noscript>
    Code (markup):
    I hope I helped you.
     
    tresman, Jun 22, 2005 IP