Ad code formatting

Status
Not open for further replies.

dest581

New Member
Messages
348
Reaction score
0
Points
0
Because I hate having code look messy, I want to simply add a few spaces before lines, and split up some of the code between a few lines (specifically, the noscript line). To clarify, no code would be changed, just spaces added to make the source look nicer.

Is this ok, or is the advertisement checking done in a way that requires exact spaces and everything?

Note: I do apologize if this has been asked before. There are too many ways to say this that using search would have been difficult.
 
Last edited:

MicrotechXP

New Member
Messages
7,644
Reaction score
0
Points
0
The ad code can not be modified in any way. I am sorry. :(

-MicroTechXP
 

Cynical

Active Member
Messages
3,492
Reaction score
0
Points
36
As long as it renders the same, I don't see a problem. For a definite answer, best post the code you wish to use so we can check it.

EDIT: JEEZUS MICROTECH stop posted at exactly the same time as me, this is the second topic in a row :mad:.
 
Last edited:

dest581

New Member
Messages
348
Reaction score
0
Points
0
Well, the ads certainly display fine, since it's just space addition, and no real changing of the code

Code:
*code above ads, such as head and perhaps a center tag*
   <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>
*code below ads, such as the rest of the viewed site*
 

dest581

New Member
Messages
348
Reaction score
0
Points
0
I hate to "bump" topics, but I'd really like a definite response, and soon.
 

Cynical

Active Member
Messages
3,492
Reaction score
0
Points
36
That's fine, as long as the ad code itself is not changed and still displays correctly.
 
Status
Not open for further replies.
Top