![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Mar 2004
Posts: 4,027
|
Anyone have a simple banner rotator script available?
I found some online but theyre confusing.
Anyone have a simple one available? also is it better to do it in javascript, or php? I'm guessing javascript. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Nov 2002
Location: Sunny California
Posts: 26,053
|
__________________
icq 1904905 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: May 2004
Location: SW Palm Bay, Florida
Posts: 1,323
|
It's better to use PHP since it's server side. The javascript rotators do not work if the users browser doesn't support/enable javascripting.
I'll make you a custom one that does exactly what you need if you're interested. Contact me and we can talk about it. Thanks, Levi [email protected] aim/icq: 957-413
__________________
subarus. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Jul 2004
Posts: 1,021
|
I would also be interested in a simple rotater ...
__________________
![]()
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Too lazy to set a custom title
Industry Role:
Join Date: May 2001
Location: My network is hosted at TECHIEMEDIA.net ...Wait, you meant where am *I* located at? Oh... okay, I'm in Winnipeg, Canada. Oops. :)
Posts: 51,460
|
__________________
Promote Wildmatch, ImLive, Sexier.com, and more!! ![]() ALWAYS THE HIGHEST PAYOUTS: Big Bux/ImLive SIGNUP ON NOW!!! ![]() Put some PUSSYCA$H in your pocket. ICQ me at: 31024634 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Too lazy to set a custom title
Industry Role:
Join Date: May 2001
Location: My network is hosted at TECHIEMEDIA.net ...Wait, you meant where am *I* located at? Oh... okay, I'm in Winnipeg, Canada. Oops. :)
Posts: 51,460
|
Here's a different one. Simple to customize it...
http://javascript.internet.com/misce...ng-banner.html
__________________
Promote Wildmatch, ImLive, Sexier.com, and more!! ![]() ALWAYS THE HIGHEST PAYOUTS: Big Bux/ImLive SIGNUP ON NOW!!! ![]() Put some PUSSYCA$H in your pocket. ICQ me at: 31024634 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Industry Role:
Join Date: Jan 2004
Location: Wisconsin
Posts: 4,517
|
Not the cleanest most efficient code, but here
<? $delim = "\n"; $cryfile = "random.txt"; $fp = fopen($cryfile, "r"); $contents = fread($fp, filesize($cryfile)); $cry_arr = explode($delim,$contents); fclose($fp); srand((double)microtime()*1000000); $cry_index = (rand(1, sizeof($cry_arr)) - 1); $herecry = $cry_arr[$cry_index]; echo $herecry . "\n"; ?> random.txt can contain any html.. complete on one line (no empty lines) ie: <a href="http://www.domain1.com"><img src="image1.jpg"></a> <a href="http://www.domain2.com"><img src="image2.jpg"></a> <a href="http://www.domain3.com"><img src="image3.jpg"></a> <a href="http://www.domain4.com"><img src="image4.jpg"></a> etc... |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Wall Street Pimp
Industry Role:
Join Date: Jun 2003
Location: Phoenix, AZ
Posts: 14,345
|
Code:
<script language="Javascript"> <!-- var currentdate = 0; var core = 0; function initArray() { this.length = initArray.arguments.length; for (var i = 0; i < this.length; i++) { this[i] = initArray.arguments[i]; } } link = new initArray( "http://yoururl.com/38666/pr/rev/1.html", "http://yoururl.com/38666/pr/rev/2.html", "http://yoururl.com/38666/pr/rev/3.html" ); image = new initArray( "http://domain.com/images/ls/pic1.gif", "http://domain.com/images/ls/pic2.gif", "http://domain.com/images/ls/pic3.jpg" ); text = new initArray( "description text for image 1", "description text for image 2", "description text for image 3" ); var currentdate = new Date(); var core = currentdate.getSeconds() % image.length; var ranlink = link[core]; var ranimage = image[core]; var rantext = text[core]; document.write('<a href=\"' +ranlink+ '\" target=\"_blank\"><img src=\"'+ranimage+'\" border="0" alt=\"'+rantext+'\"></a>'); //--> </SCRIPT> ![]()
__________________
Tradeking - my online broker | 4.95 a trade | make real $$ |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Join Date: Jul 2004
Posts: 1,021
|
Thanks for your help ...
__________________
![]()
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
boots are my religion
Join Date: Nov 2005
Location: Heart of europe
Posts: 21,765
|
i use the script of
http://www.javascript-page.com |
![]() |
![]() ![]() ![]() ![]() ![]() |