Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2005-05-25, 02:03 PM   #1
Sinistress
Just because I don't care doesn't mean I don't understand!
 
Sinistress's Avatar
 
Join Date: May 2004
Location: Canada
Posts: 97
Banner Rotation Script that isn't a program

Alright,

I'm new to scripts, and I downloaded phpadsnew, took one look at it, and didn't understand a damn thing about it.

I've seen a couple scripts that would be inserted into the HTML code of a site, and have spent enough time looking for one that works that I'm already learning a lot about them... lol

I'm looking for something that will rotate banners about once every 15 seconds or so, versus every page refresh. If anybody knows of a good site that can supply me with this where all I have to do is switch out the image paths & directing urls then that'd be fantastic...

Right now my test site for the banner rotation is this... http://www.sexwithsin.com/teentest1.html ...I got so excited when the banners finally rotated, that I didn't even realize that the url's were not also cycling... LOL

So, if there's any rotation scripts that can be inserted into the HTML like that one is, or else if anybody has any idea how to get the url's to cycle on the script that is on that page, please let me know??

Deviantly yours,
~Sinistress~
__________________
Sinistress is offline   Reply With Quote
Old 2005-05-25, 05:32 PM   #2
Sams
Rock stars ... is there anything they don't know?
 
Sams's Avatar
 
Join Date: Jun 2004
Location: in your imagination...
Posts: 12
http://phpadsnew.com/two/support-documentation.html
http://phpadsnew.com/two/support-faq.html?section=1

http://forum.phpadsnew.com/index.php?showforum=4
Sams is offline   Reply With Quote
Old 2005-05-25, 05:37 PM   #3
cd34
a.k.a. Sparky
 
cd34's Avatar
 
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
You could use phpadsnew and run a cron job every minute to write to a set of files that are included via SSI.

You could use phpadsnew as it is intended and insert the ads via javascript or local invocation. I think if you spend the time, you'll find phpadsnew to be relatively easy to use and can probably do exactly what you want.

Natalie and Cleo's contribution to world sanity:
http://www.greenguysboard.com/board/...ad.php?t=19668
__________________
SnapReplay.com a different way to share photos - iPhone & Android
cd34 is offline   Reply With Quote
Old 2005-05-26, 07:02 PM   #4
scrm
Internet! Is that thing still around?
 
scrm's Avatar
 
Join Date: May 2005
Location: WA, PL
Posts: 8
Send a message via ICQ to scrm
PHP Code:
<script language="JavaScript">

url = new Array;
url[0] = 'http://www.address1.pl';
url[1] = 'http://www.address2.pl';
url[2] = 'http://www.address3.pl';

desc = new Array;
desc[0] = 'Description 1';
desc[1] = 'Description 2';
desc[2] = 'Description 3';

ads Math.floor(Math.random()*url.length);
document.write('<a href="' url[ads] + '" target="_blank"><img src="banner' ads '.gif" border="0" alt="' desc[ads] + '"><br>' desc[ads] + '</a>');

</script> 
put this script just in place where you want to show random banners

name the files banner1.gif, banner2.gif, banner3.gif, etc.

you may use this script only once within the one .html file
__________________
best regards,
scream
ICQ#46072336
scrm is offline   Reply With Quote
Old 2005-05-29, 10:34 AM   #5
2msacras
The sun? That's the hottest place on Earth
 
2msacras's Avatar
 
Join Date: Jul 2004
Location: Chicago
Posts: 394
Send a message via ICQ to 2msacras
Thanks SCRM...I was looking for a script like that....
2msacras is offline   Reply With Quote
Old 2005-05-30, 05:47 AM   #6
Sinistress
Just because I don't care doesn't mean I don't understand!
 
Sinistress's Avatar
 
Join Date: May 2004
Location: Canada
Posts: 97
Thanks SCRM... playing with it now.
__________________
Sinistress is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:07 AM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc