Okay I will show you how to display both text and images using php.
Step 1:
We have to open a php tag and then list what we want to be displayed.
Quote:
<?
$rando[] = "This is one leet random display script";
$rando[] = "<img src='image.gif'>";
$rando[] = "<img src='image2.gif'>";
$rando[] = "This is the last message, but not using this script.";
Step 2:
We have our content in the script now it's time to display it randomly.
Quote:
echo $rando[array_rand($rando)];
?>
Usage:
All you have to do now is insert that code wherever you want the information displayed.
If you want to have all of your files in another file so its not as long in your document.
Replace
Quote:
$rando = "...";with
Quote:
include 'filename.php';
and add your arrays to filename.php