![]() |
FHG Rotator Script ?
i need a FHG Rotator Script
nothing fancy like ST or COMUS better not to use mysql spam me |
Hey Ace, Here's a real simple script that I use to rotate thumbs on a few of my sites. There is nothing special about it, it just randomly chooses a thumb to display and sends the user to the link that you want to go with that thumb. I'm not sure if this is what you are looking for, but I think its might be along those lines. Just copy and paste this into whatever you use to edit your HTML pages:
<SCRIPT LANGUAGE="Javascript"><!-- function banner() { }; banner = new banner(); number = 0; // bannerArray banner[number++] = "<a href='link url here' target='_blank'><img src='image link here' border='0'></a>" banner[number++] = "<a href='link url here' target='_blank'><img src='image link here' border='0'></a>" banner[number++] = "<a href='link url here' target='_blank'><img src='image link here' border='0'></a>" // increment = Math.floor(Math.random() * number); document.write(banner[increment]); //--></SCRIPT> You can modify it to add more or less links and thumbs as you need to, and you can use it all over your site without slowing down the loading time for your surfers. Hope this helps you out. |
thanks for the help but im looking for something in PHP
|
ahhhhh..... php....... in that case, try googleing around a bit. You'd be surprised what you can find for free out there. Good luck to you.
|
nope wizzard had one but hes been hiding or some shit
|
You're going to need MySQL. There's no reason not to use it if the script is well-written.
|
why is so hard to find a light thumb rotator ?
no need to be free but i dont want to pay for things that i will not use, thats why i dont want ST or comus |
hit me up on icq 348-132-803
|
rstgp.com
|
Quote:
|
Quote:
|
hit me up on ICQ...
|
<?php
$filename = $_SERVER["DOCUMENT_ROOT"].'/inc/pub/pub_array.inc'; $how_many_to_show = 4; if ($fileContents = file($filename)) { shuffle($fileContents); for ($i = 0; $i < $how_many_to_show; $i++) { print($fileContents[$i]. '<br />'); } } else { die('Could not get contents of: ' . $filename); } ?> |
Quote:
is very nice tool and very simple |
thats cool
|
|
|
i suggest tgpx
|
Quote:
..and i know you like it ;) |
I would like to try jmcb420 script. What do I have to do after putting the code into a page? I have to create the thumbs no? What should I name them and do they have tyo be located in the same file as the html page using the script?
|
bump. Still waiting for an answer
|
Quote:
To answer your questions: I have to create the thumbs no? = Yes you do unless you are hotlinking them. What should I name them? = whatever you want. Just remeber which thumb goes with which URL. do they have tyo be located in the same file as the html page using the script? - Nope. Remember, that script is nothing special. It serves no purpose other then randomization. |
tgpx......
|
oh oh try proton tm easy to set up no database needed from the makers of script pulse
|
TGP Rotator is great as a small standallone gallery rotator....no submitts just your own sponsors.... Too bad its been discontinued and replaced by TGPX...which is great btw...but somewhat bloated if you want something small and fast...
|
All times are GMT -7. The time now is 03:27 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123