DecemberGuild
New Member
- Messages
- 107
- Reaction score
- 0
- Points
- 0
I know there's another topic on this, but I didn't want to clutter or hijack the thread, so I'm posting this here.
I have looked over the advanced and corporate ads, and I rewrote them to fit XHTML transitional and strict, as well as display neat, clean coding.
I know that the advertisements must contain a certain line of code so the scanner can pick them up. All XHTML-required changes will be in red; if the scanner cannot pick up the script because of a red segment, then I recommend updating the scanner to fit the new internet standard of XHTML.
Note: Green number tags are used to explain the change, and aren't part of the quoted code.
Advanced
Transitional:
2: Closed the image tag properly. This is important in XHTML.
Strict:
2: Removed the 'target' tag. XHTML strict doesn't support this.
3: Changed the 'border' tag. XHTML strict doesn't support this, and this must be done via CSS.
Corporate
Transitional:
Strict:
All four of these codes have been run through the XHTML validator at the W3C website, and have passed. Let me know if these codes are acceptable.
I have looked over the advanced and corporate ads, and I rewrote them to fit XHTML transitional and strict, as well as display neat, clean coding.
I know that the advertisements must contain a certain line of code so the scanner can pick them up. All XHTML-required changes will be in red; if the scanner cannot pick up the script because of a red segment, then I recommend updating the scanner to fit the new internet standard of XHTML.
Note: Green number tags are used to explain the change, and aren't part of the quoted code.
Advanced
Transitional:
1: Removed the 'language' tag. XHTML uses only the 'type' tag and will consider any HTML page that uses 'language' invalid.<script type='text/javascript'>(1)
<!--
if (!document.phpAds_used) document.phpAds_used = ',';
phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
document.write ("<" + "script type='text/javascript'(1) src='");
document.write ("http://x10hosting.com/advert/adjs.php?n=" + phpAds_random);
document.write ("&what=zone:3&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=a915c788' target='_blank'>
<img src='http://x10hosting.com/advert/adview.php?what=zone:3&n=a915c788' border='0' alt='' />(2)
</a>
</noscript>
2: Closed the image tag properly. This is important in XHTML.
Strict:
1: The <a> tag must be wrapped in a <p> tag.<script 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 type='text/javascript' src='");
document.write ("http://x10hosting.com/advert/adjs.php?n=" + phpAds_random);
document.write ("&what=zone:3&target=_blank");
document.write ("&exclude=" + document.phpAds_used);
if (document.referrer)
document.write ("&referer=" + escape(document.referrer));
document.write ("'><" + "/script>");
//-->
</script>
<noscript>
<p>(1)
<a href='http://x10hosting.com/advert/adclick.php?n=a915c788'>(2)
<img src='http://x10hosting.com/advert/adview.php?what=zone:3&n=a915c788' style='border-width:0px;'(3) alt='' />
</a>
</p>
</noscript>
2: Removed the 'target' tag. XHTML strict doesn't support this.
3: Changed the 'border' tag. XHTML strict doesn't support this, and this must be done via CSS.
Corporate
Transitional:
<script 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 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>
Strict:
<script 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 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>
<p>
<a href='http://x10hosting.com/advert/adclick.php?n=a7fb3e9d'>
<img src='http://x10hosting.com/advert/adview.php?what=zone:1&n=a7fb3e9d' style='border-width:0px;' alt='' />
</a>
</p>
</noscript>
All four of these codes have been run through the XHTML validator at the W3C website, and have passed. Let me know if these codes are acceptable.