Ad Code and Site Music

Discussion in 'Free Hosting' started by GMS, Mar 5, 2005.

Thread Status:
Not open for further replies.
  1. GMS

    GMS New Member

    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    0
    I can't seem to be able to get the ad code to work, I've put it in the code and it isn't showing up. http://www.madgamez.x10hosting.com

    *EDIT*
    Ok, just read a few similar threads, guess it's having problems.

    This question is still up for grabs though -

    Also is it allowed to have site music, not for distribution?

    Thank you.
     
  2. Conor

    Conor New Member

    Messages:
    3,570
    Likes Received:
    0
    Trophy Points:
    0
    PHP:
    <script language='JavaScript' type='text/javascript' src='http://x10hosting.com/advert/adx.js'></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:2&amp;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=a4f0eec1' target='_blank'><img src='http://x10hosting.com/advert/adview.php?what=zone:2&amp;n=a4f0eec1' border='0' alt=''></a></noscript>
     
    Get rid of that code. Use this:
    PHP:
    <?php include("http://www.madgamez.x10hosting.com/adcode.php?id=advanced"); ?>
    If your page is in PHP don't include <?php and ?>.

    Then copy and paste the following code into Notepad and save it as adcode.php. Then upload to your public_html or www file.

    PHP:
    <?php
    switch($_GET['id'])
    {
    case 
    "corporate":
    ?>

    <script language='JavaScript' type='text/javascript' src='http://x10hosting.com/advert/adx.js'></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&amp;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>

    <?php
    break;
    case 
    "advanced":
    ?>

    <script language='JavaScript' type='text/javascript' src='http://x10hosting.com/advert/adx.js'></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:2&amp;target=_blank"); document.write ("&amp;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=a4f0eec1' target='_blank'><img src='http://x10hosting.com/advert/adview.php?what=zone:2&n=a4f0eec1' border='0' alt=''></a></noscript>

    <?php
    break;
    case 
    "static":
    ?>

    <script language='JavaScript' type='text/javascript' src='http://x10hosting.com/advert/adx.js'></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:3&amp;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=a915c788' target='_blank'><img src='http://x10hosting.com/advert/adview.php?what=zone:3&amp;n=a915c788' border='0' alt=''></a></noscript>

    <?php
    break;
    }
    ?>

    Only if you own the copyrights to the music or have permission to use it from the owner.
     
  3. GMS

    GMS New Member

    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    0
  4. prasys

    prasys New Member

    Messages:
    330
    Likes Received:
    0
    Trophy Points:
    0
    Hmm ,thats weird..What language are you using (To create the site)
     
  5. GMS

    GMS New Member

    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    0
  6. Maurice

    Maurice New Member

    Messages:
    1,930
    Likes Received:
    0
    Trophy Points:
    0
    Lol, I'm sure he meant PHP, ASP, HTML etc.
     
  7. GMS

    GMS New Member

    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    0
    Lol, PHP,HTML, and Javascript
     
Thread Status:
Not open for further replies.

Share This Page