+ Reply to Thread
Page 1 of 3 123 LastLast
Results 1 to 10 of 24

Thread: New x10 ad code

  1. #1
    yahia is offline x10 Sophmore yahia is an unknown quantity at this point
    Join Date
    Jul 2006
    Location
    Morocco
    Posts
    169

    New x10 ad code

    Hello

    The ad code of X10's free hosting service is really a pain to have in a website.
    That's why I'm suggesting to make a code much easy for everyone.

    For a valid webpage's html, the actual code looks like:
    HTML Code:
    <script language='JavaScript' type='text/javascript'>
    // a lot of JS here
    </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=''></a></noscript>
    And this doesn't validate if you are authoring correct webpages.

    But if you compare with the code they give at Technorati when you want to embed a bunch of links and stuff in your blog, here's the only thing you need to put:
    HTML Code:
    <script type="text/javascript" src="http://embed.technorati.com/embed/somecode.js"></script>
    And in a config page in your account at technorati.com, you choose which stuff you want to be shown.

    Isn't technorati's code better? It doesn't involve the user's source code in any way. The code stays clean, and everything is done from one line.

    Can X10 do make an ad code like this one?

  2. #2
    Brandon's Avatar
    Brandon is offline Former Senior Account Rep Brandon is on a distinguished road
    Join Date
    Jun 2006
    Location
    Tewksbury, MA
    Posts
    9,589

    Re: New x10 ad code

    Well the script is made from the script that x10 is using, so dunno.
    Thanks,
    Brandon Long

  3. #3
    YamiKaitou's Avatar
    YamiKaitou is offline x10 Elder YamiKaitou is an unknown quantity at this point
    Join Date
    Oct 2006
    Posts
    636

    Re: New x10 ad code

    Wouldn't that fall under editing the code? Cause if you look at the source code, can you not see the x10 ad code?

  4. #4
    Chris Z's Avatar
    Chris Z is offline x10 Spammer Chris Z is an unknown quantity at this point
    Join Date
    Sep 2005
    Location
    Alabama, USA
    Posts
    2,802

    Re: New x10 ad code

    ya, maybe if you'd like to develop a script that would make it as easy as that, but as for now, we're using phpAdsNew, and that's what it outputs, we can't do anything about it, the whole script is in the code
    -Chris Z
    Retired Account Manager


  5. #5
    t2t2t's Avatar
    t2t2t is offline x10 Elder t2t2t is an unknown quantity at this point
    Join Date
    Sep 2006
    Location
    Europe, Estonia
    Posts
    690

    Re: New x10 ad code

    By what i got from what yahia said, i think that validation will be passed if faulty javascript is executed from a javascript file (*.js), so if code would be just for short something like following:

    HTML Code:
    <script type="text/javascript" src="http://www.x10hosting.com/ads.js"></script>
    the faulty js inside it would not be readed in w3c validation, and it also would be smaller to be copied.

    Interesting...
    Last edited by t2t2t; 12-27-2006 at 09:09 PM. Reason: Typo, typo and only 1 typo
    This post has been marked spam 52 times.


  6. #6
    yahia is offline x10 Sophmore yahia is an unknown quantity at this point
    Join Date
    Jul 2006
    Location
    Morocco
    Posts
    169

    Re: New x10 ad code

    Exactly, t2t2t.

    and that will be much better because X10 will have control of the JS file.
    The actual solution doesn't provide much X10 to modify its code on all pages that utilize it.

    Also, it is very lightweight and practical that way for everyone to copy and paste in his code.

  7. #7
    Brandon's Avatar
    Brandon is offline Former Senior Account Rep Brandon is on a distinguished road
    Join Date
    Jun 2006
    Location
    Tewksbury, MA
    Posts
    9,589

    Re: New x10 ad code

    Basicaly the one we have now dosnt have to be changed for new ads. If you are trying to get your page W3C validated, modify the code so that it works with the validation, then post it in free web hosting support, and we can approve it, as it dosnt have to be exact, but it needs to work and have certain data in it.
    Thanks,
    Brandon Long

  8. #8
    noerrorsfound is offline x10 Elder noerrorsfound is an unknown quantity at this point
    Join Date
    Mar 2006
    Posts
    868

    Re: New x10 ad code

    I use this:
    Code:
    <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 language='JavaScript' 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><div><a href="http://x10hosting.com/advert/adclick.php?n=a915c788"><img src="http://x10hosting.com/advert/adview.php?what=zone:3&amp;n=a915c788" alt="" style="border:0" /></a></div></noscript>
    EOF

  9. #9
    ArNoX is offline x10 Sophmore ArNoX is an unknown quantity at this point
    Join Date
    Jul 2006
    Posts
    207

    Re: New x10 ad code

    you can find the orginal ad code when you click on your account button

  10. #10
    Zenax's Avatar
    Zenax is offline Lord Of The Keys Zenax is an unknown quantity at this point
    Join Date
    Jul 2006
    Location
    The Brilliant United Kingdom
    Posts
    1,339

    Re: New x10 ad code

    Really, I don't bother with standards. I find that if the web page works how I want it too, then there is nothing wrong with the code.

    Simple as that really. Same when I insert the ads! If they display fine then there is nothing wrong with them, and I can leave it alone, and not do anything to it.

    Regards,
    Zenax
    Regards,
    Zenax

+ Reply to Thread
Page 1 of 3 123 LastLast

Similar Threads

  1. Hybrid's HTML Lessons
    By Hybrid in forum Tutorials
    Replies: 18
    Last Post: 11-28-2009, 02:12 PM
  2. Problem with ad code (includes?)
    By Salvatos in forum Free Hosting
    Replies: 10
    Last Post: 12-12-2006, 04:16 PM
  3. Ad Code Question
    By reiterb in forum Free Hosting
    Replies: 1
    Last Post: 08-18-2005, 09:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers