TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,972
  • Latest: Lineo
Stats
  • Total Posts: 196,105
  • Total Topics: 21,345
  • Online today: 1,072
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 325
  • Total: 325

phpAdsNew

Started by WSA, October 11, 2006, 11:29:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

WSA

Does anybody use this on their sites?  I just installed it onto my server but am not quite sure how to use it or how to actually put banner ads on my site.

Any ideas?

IchBin

You could just place any banner add you want into a block or something. Anything specifically you're trying to do?

WSA

I am trying to get a rotating banner.  with that application, you can specify time frames that a banner ad will get, such as expiration dates and stuff like that.  if i put it into a block, it will just be static and wont rotate.

gerrymo

If it works stand alone, iFrame it into a block.

WSA

Quote from: gerrymo on October 12, 2006, 01:07:07 PM
If it works stand alone, iFrame it into a block.
Ok, I tried it and all that is shown in the block is the code used.

I put it into an HTML box and then a Javascript box and the below code is all it shows.

<script language='JavaScript' type='text/javascript' src='http://westernslopeanglers.com/banners/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://westernslopeanglers.com/banners/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://westernslopeanglers.com/banners/adclick.php?n=aef13b15' target='_blank'><img src='http://westernslopeanglers.com/banners/adview.php?what=zone:1&amp;n=aef13b15' border='0' alt=''></a></noscript>

gerrymo

This should work if put in a scriptbox block. All you'll need to do is fix the alignment to suit.


<html>
<head>
<script language='JavaScript' type='text/javascript' src='http://westernslopeanglers.com/banners/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://westernslopeanglers.com/banners/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>
</head>
<body>
<noscript><a href='http://westernslopeanglers.com/banners/adclick.php?n=aef13b15' target='_blank'><img src='http://westernslopeanglers.com/banners/adview.php?what=zone:1&n=aef13b15' border='0' alt=''></a></noscript>
</body>
</html>


If it doesnt work, you could try saving it as a web page, and use an iFrame.

WSA

Too cool.  That worked.  Thanks Gerrymo.  How do I center it?

gerrymo

Try


<noscript><center><a href='http://westernslopeanglers.com/banners/adclick.php?n=aef13b15' target='_blank'><img src='http://westernslopeanglers.com/banners/adview.php?what=zone:1&n=aef13b15' border='0' alt=''></a></center></noscript>

WSA

Nope, that didn't work.

WSA

It's wierd too.  When I click the banner, it takes me back to WSA instead of to the listed target.

This website is proudly hosted on Crocweb Cloud Website Hosting.