Can I please..?

Status
Not open for further replies.

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:
<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 ("&amp;what=zone:1&target=_blank");
document.write ("&amp;exclude=" + document.phpAds_used);
if (document.referrer)
document.write ("&amp;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&amp;n=a7fb3e9d' border='0' alt='' />
</a>
</noscript>
The code in red is the code that has been updated to conform to the XHTML standards.
valid-xhtml10

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:

Cynical

Active Member
Messages
3,492
Reaction score
0
Points
36
It looks good to me... as long as the ad displays correclty (which it does), there is no problem.
 

Starshine

Legend Killer
Messages
14,423
Reaction score
0
Points
0
Well, Cynical is an Account Manager, so I would assume that is pretty official.
 

Chris Z

Active Member
Messages
5,603
Reaction score
0
Points
36
see, we don't just write that part up (as far as i know at least). i am almost 100% positive that we use a thirdparty script to rotate the corporate ads (and probably the advanced ads too), so when it comes straight out of the script, it's like that, so we can't make it come out XHTML compliant is i guess what i am trying to say, maybe you could right to the author of the program (phpAdsNew) and get him/her/them to make it come out XHTML compliant haha
 

Brandon

Former Senior Account Rep
Community Support
Messages
19,181
Reaction score
28
Points
48
I wouldnt want to because ads are checked 2 ways....by human and by a script.

The script wont know this, and will auto-suspend you, but Corey will probely have to answer this one.
 

Brandon

Former Senior Account Rep
Community Support
Messages
19,181
Reaction score
28
Points
48
Cynical said:
That script hasn't been run since May ;)

it says for me Never, Corey runs it regualry I think..thats user dependent;)
 

Chris S

Retired
Messages
2,055
Reaction score
1
Points
38
this has actually been suggested many times before, i just don't remember what the answer is. So for now, use the given ad code
 

clinvet

New Member
Messages
2
Reaction score
0
Points
0
This is for Techneco: If you don't have something good to say, shout up, please! Atte: me
 

Chris Z

Active Member
Messages
5,603
Reaction score
0
Points
36
clinvet, we can handle moderating the forums, this user has already been warned for that post
 
Status
Not open for further replies.
Top