|
Sigs and Graphics Show off your sigs/graphics or request your own |
![]() |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||
|
how?
how do i get my sigs to rotate everytime someone refreshes or goes into a new page??? ive seen loads of ppl with it and insom has it atm. what do you do?
|
#2
|
||
|
use a php to randomise the image display...
http://photomatt.net/scripts/randomimage for one, there are plenty around though... |
#3
|
|||
|
absolutely you have to make shure you have a host for this though, or else its not going to be able to work.
First off make a folder anywhere, I just made one on my desktop called "mysigs". Open the folder: right click : goto new text document Paste this code in there: Quote: <? $array[200]; $elem = 0; $dirname = "sigs"; $dh = opendir($dirname); while ($file = readdir($dh)) { if (!is_dir("$dirname/$file")) $array[$elem] = $file; $elem = $elem + 1; } srand((double)microtime() * 10000000); $rand_keys = array_rand($array); $temp = $array[$rand_keys]; header("Location: $dirname/$temp"); ?> Goto file: save as : and save the document as rotate.php Next make a folder in your current folder called sigs (you must use this name) and place all of your images(signatures) in this folder. And thats it, just upload it to your host and you're done
__________________
![]() Quote:
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|