Why, its just 2 Different colours of the word 'Habbo' ??? :S

lol thanks :]http://automaticlabs.com/products/rotator will do it, and it had some neat instructions
Both scripts will.. you could even do it in javascript if you wanted, although theres no garentee of change with these as the two provied were randomisers not rotators, easy to change though.I basicly want to display this image :then on refresh it changes to
Just like on http://www.habbotools.de/ under the nav the image changesafter refresh :]
will both thoose script to that? :p
Place this at the top of your page:
then use this where you want the images to be shown:PHP Code:<?php
session_start();
header("Cache-Control: no-cache, must-revalidate"); // Stop cache
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Expire in the past
?>
so each time the person refreshes the page the other image will show up. Since Carl and Tim's scripts are completely random where are this will show image 1 then 2 then 1. Im not sure about the cacheing stuff but I think it works.PHP Code:<?php
$img1 = "imagetwo.gif";
$img2 = "imageone.gif";
if(!$_SESSION['image']) {
echo "<img src=\"$img1\" />";
$_SESSION['image'] = "1";
}
else {
if($_SESSION['image']=="1") {
echo "<img src=\"$img2\" />";
$_SESSION['image'] = "2";
}
elseif($_SESSION['image']=="2") {
echo "<img src=\"$img1\" />";
$_SESSION['image'] = "1";
}
}
?>
Last edited by Splinter; 03-03-2007 at 07:54 PM.
Want to hide these adverts? Register an account for free!