Quote:
<?php
// stuff to poke
$stuff[ 0 ] = '<a href="http://www.habbo.co.uk/home/NAME">NAME </a>';
$stuff[ 1 ] = '<a href="http://www.habbo.co.uk/home/NAME">NAME 1</a>';
$stuff[ 2 ] = '<a href="http://www.habbo.co.uk/home/NAME">NAME 2</a>';
$stuff[ 3 ] = '<a href="http://www.habbo.co.uk/home/NAME">NAME 3</a>';
$stuff[ 4 ] = '<a href="http://www.habbo.co.uk/home/NAME">NAME 4</a>';
$stuff[ 5 ] = '<a href="http://www.habbo.co.uk/home/NAME">NAME 5</a>';
$stuff[ 6 ] = '<a href="http://www.habbo.co.uk/home/NAME">NAME 6</a>';
$stuff[ 7 ] = '<img src="http://www.habbo.co.uk/habbo-imaging/avatarimage?user=NAME&action=wve&frame=3&direction =4&head_direction=4&gesture=sml&img_format=gif">' ;
$stuff[ 8 ] = '<img src="http://www.habbo.co.uk/habbo-imaging/avatarimage?user=NAME&action=wve&frame=3&direction =4&head_direction=4&gesture=sml&img_format=gif"> 2';
//Dont poke this, it'll work, just change values above and add/remove from em
$display=rand(0, sizeof($stuff)-1);
echo $stuff[$display];
?>
?>
Oringinal Plot of Reason for Invent's Code:
Quote:
<?php
//SET BANNER URLS.
$banner1 = "banner1_url_here.gif";
$banner2 = "banner2_url_here.gif";
$banner3 = "banner3_url_here.gif";
$banner4 = "banner4_url_here.gif";
//FINISH SETTING BANNER URLS.
$rand_func = rand(1,4); //This code will make the random banner easier.
if($rand_func == '1') {
echo("<img src=\"$banner1\">"); //Prints the banner image to the page if the banner number to show is 1.
}
if($rand_func == '2') {
echo("<img src=\"$banner2\">"); //Prints the banner image to the page if the banner number to show is 2.
}
if($rand_func == '3') {
echo("<img src=\"$banner3\">"); //Prints the banner image to the page if the banner number to show is 3.
}
if($rand_func == '4') {
echo("<img src=\"$banner4\">"); //Prints the banner image to the page if the banner number to show is 4.
}
?>
so actually if its ad banners it will be quite easier as a image