GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Banner rotator... (https://gfy.com/showthread.php?t=836851)

uvort 06-23-2008 09:39 PM

Banner rotator...
 
Anyone know of a simple banner rotator script with static html where you can add banners through a web based admin and the banners display randomly on your page? I need something besides Openx and LedAds.

Thanks in advance!

fris 06-23-2008 09:41 PM

could try madisonave

uvort 06-23-2008 09:53 PM

madisonave? got a link?

kmanrox 06-23-2008 11:11 PM

http://openx.org

this is what gfy uses, they use an older version of this software actually... open source

2MuchMark 06-23-2008 11:21 PM

Quote:

Originally Posted by uvort (Post 14366586)
Anyone know of a simple banner rotator script with static html where you can add banners through a web based admin and the banners display randomly on your page? I need something besides Openx and LedAds.

Thanks in advance!


Hi Uvort -

Here is a super simple banner rotator script. Just drop this into any HTML page you are running. Copy your banners to your server and adjust the URL's for each.

<SCRIPT language=JavaScript type="text/javascript">
var img_width = "480";
var img_height = "60";
var img_title = "Click Here";

var ad=new Array();
ad[0]='http://www.YourWebsite.com/banner0.jpg';
ad[1]='http://www.YourWebsite.com/banner1.jpg';

var links=new Array();
links[0]='http://www.WebSite1com';
links[1]='http://www.WebSite2.com';

var text=new Array();
text[0]='Any Text you Want 1';
text[1]='Any Text you want 2';

var xy=Math.floor(Math.random()*ad.length);
document.write('<a href="'+links[xy]+'"><img src="'+ad[xy]+'" alt="'+img_title+'" border = "0"><br>'+text[xy]+'</a>');
</SCRIPT>


First Part:
Change the width and height values to be the same size as your banners. You can change the tital of the banners ("click here") to be anything you want.

Second Part: Make sure the URL's for each banner are correct.

Third Part: Use any text or caption you want for each banner.

You can have as many banners as you like. Just make sure to give each one a unique number in the variable list (ad[2], ad[3], ad[4], and then links2, links3, links4, etc.

The script will select a banner at random and display it. With a little tweaking, you can give some banners more weight so that they load more often than others if you wan them to.

Good luck!

Darkhorse 06-24-2008 01:20 AM

Quote:

Originally Posted by kmanrox (Post 14366926)
http://openx.org

this is what gfy uses, they use an older version of this software actually... open source

Ya used to be phpadsnew (that script) bit overkill for what he wants though....

take a look through http://www.hotscripts.com plenty there...

kmanrox 06-24-2008 03:56 AM

Quote:

Originally Posted by Darkhorse (Post 14367351)
Ya used to be phpadsnew (that script) bit overkill for what he wants though....

take a look through http://www.hotscripts.com plenty there...

you're right.. i didnt read his whole paragraph.. he had me at 'simple banner rotator script'

:)

flava 06-28-2008 02:55 PM

Quote:

Originally Posted by uvort (Post 14366586)
Anyone know of a simple banner rotator script with static html where you can add banners through a web based admin and the banners display randomly on your page? I need something besides Openx and LedAds.

Thanks in advance!

Same here. I tried Openx but the interface seems.... RETARDED to me. If the greatest sophistication is in simplicity then that was made by fools.

Deej 06-28-2008 03:46 PM

if you want a simple javascript based rotator hit me up

*edit actually... my solution highly resembles Mark Prince's post... it allows the text n everything...

flava 06-28-2008 03:52 PM

Ad Manager Pro looks alot better. But of course it's not free


All times are GMT -7. The time now is 10:20 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123