Random Graphic-Sigs-Midi Script

this script can be used at all webhosts
that allow php scripts





The easiest way to use this script is to make a new directory and place within that directory all of the graphics you would like to randomized with this script.
Then within that directory make a new file called random.php and cc&p the above script and place it within the random.php file.

then place the random.php file within your sigbox with this tag

<<>html>
<<>body bgcolor="?"text="?">
<<>center>
<<>embed src="http://yourdomain.com/directory/random.php">
<<>/center>
<<>/body>
<<>/html>


You can also use this script for random midis or for random sigs by just changing this line within the script-


$exts = 'jpg jpeg png gif';


to either this for your music


$exts = 'mid mod wav';

or this for your html sigs


$exts = 'html shtml';



If you you use the above script for random sigs or random midis then take the <<>center><<>/center> tags out of the above sigbox code.

===============================


Here is Angel_2`s explanation on how to use the above script at WWH

At WWH create a Directory in your root directory, scroll down to
'Creat Directory' put a name in for your directory, I just made one for sounds named 'sounds',then press 'Go' and scroll up to the folder icon of the new directory and click onto it to get into the new directory.

Within your new directory press
'Main Menu' and click on 'D file beamer' to beam your images/music into the directory. Put the images or sounds you want to use with your random script in the directory you just made.Actually it`s easier if you make a seperate directory for your sounds,graphics and sig pages and then put a random script in each of those directories.

CC&P the above script that is in the text box and go back to
WWH to the new directory that you just created.Within the new directory scroll down to 'create file' click onto the radial button next to the 'blank page' scroll back to the line above, that has "index.html" erase that, and write in "random.php" press 'Go' then paste the above script onto that blank page, click 'save' below that and then 'exit'.

Here`s my black tags directory addy

http://angel2shine.lbbhost.com/BlkTags/random.php

If you plan on using the above script for random scripts then you need to make seperate directories for each background you plan on using.Basically this script works best if you use only "black" or "white" backgrounds.The reason for seperate directories for each background color is because within your sigbox you`re using this code

<<>html>
<<>body bgcolor="?"text="?">
<<>embed src="http://yourdomain.com/directory/random.php">
<<>/body>
<<>/html>

and your body bgcolor must match the color of your webpage.If you have all black background sigs except for one that`s white within the same directory then you would use "black" as your bgcolor in your sigbox but when the white background sig randomly shows up it would be partially white and black--not a good look! so that`s why there`s a need for seperate directories and seperate random scripts for each background color..

You would also want to seperate graphics with white backgrounds from ones with black backgrounds if you plan on using this script for random graphics within a sig or webpage for the same reason as above.