DecemberGuild
New Member
- Messages
- 107
- Reaction score
- 0
- Points
- 0
I just spent the last few hours looking over the XHTML standard and playing around with XHTML. I converted a small page, which I was using to test PHP as I learned it, to XHTML, and I noticed a problem.
The X10Hosting ads do not conform to the XHTML standards at all. There are open tags, improperly declared scripts, and the works.
I rewrote the javascript just as a test on a new page. I got it to conform to the XHTML standards.
My script:
Can I use my script instead on my page? Or can you guys possibly update your code to fit the XHTML standards? Please? (Remember that the XHTML standards will also meet the older HTML standards so it should be an improvement even for those who prefer to write HTML over XHTML.)
The X10Hosting ads do not conform to the XHTML standards at all. There are open tags, improperly declared scripts, and the works.
I rewrote the javascript just as a test on a new page. I got it to conform to the XHTML standards.
My script:
The code in red is the code that has been updated to conform to the XHTML standards.<script language='JavaScript' type='text/javascript'>
<!--
if (!document.phpAds_used) document.phpAds_used = ',';
phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
document.write ("http://x10hosting.com/advert/adjs.php?n=" + phpAds_random);
document.write ("&what=zone:1&target=_blank");
document.write ("&exclude=" + document.phpAds_used);
if (document.referrer)
document.write ("&referer=" + escape(document.referrer));
document.write ("'><" + "/script>");
//-->
</script>
<noscript>
<a href='http://x10hosting.com/advert/adclick.php?n=a7fb3e9d' target='_blank'>
<img src='http://x10hosting.com/advert/adview.php?what=zone:1&n=a7fb3e9d' border='0' alt='' />
</a>
</noscript>
Can I use my script instead on my page? Or can you guys possibly update your code to fit the XHTML standards? Please? (Remember that the XHTML standards will also meet the older HTML standards so it should be an improvement even for those who prefer to write HTML over XHTML.)
Last edited: