Ad Code Question

Status
Not open for further replies.

reiterb

New Member
Messages
24
Reaction score
0
Points
0
I have a question about the ad code, I'm trying to write a site in XML, which is then transformed via xslt (possibly using php for that), and there is a minor error (error from the point of view of XML, not from HTML) with the ad code.

I've been using the HTML ad code, below from the ads.zip, and the XML parser complains about a missing closing tag, of which there is only one, the <img> tag in the <noscript> section.

So basically I was wondering if it would be possible to change the add code so that it would be complient with w3c standard for strict XHTML 1.0. All that would be required (I think) is to add a slash '/' at the very end of the image tag in the <noscript> block. I know we're not supposed to modify the ad code, but the change seems completely harmless to me, but on the other hand I certainly don't know everything, perhaps this has other effects.

Anyway the actual change I think is needed would be something like:
changing
</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&amp;n=a915c788' border='0' alt=''></a></noscript>

to

</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&amp;n=a915c788' border='0' alt='' /></a></noscript>

The only change is the '/' at the end of the <img> tag right here ^^^^. I think that is all
the would need to be changed to make it XHTML 1.0 (maybe it's 1.1 I forget)I hope this question makes some sense, I can clarify if need be. Thanks.
 
Last edited:

saachi

New Member
Messages
186
Reaction score
0
Points
0
No way man, that looks very malicious, like your redirecting ad revenue to your own bank account...

just kidding. Actually, to make it valid XHTML you'd need to cut out the anchor target and the image border too. Otherwise its harmless what you intend to do, but who am I to say so.
 
Status
Not open for further replies.
Top