Hey,
Im looking for 1 of those random image things.
Wether it be PHP or Javascript. I don't mind.
I know Mentor did a thread on this but i can't find it
Thanks :rolleyes:

Hey,
Im looking for 1 of those random image things.
Wether it be PHP or Javascript. I don't mind.
I know Mentor did a thread on this but i can't find it
Thanks :rolleyes:
REMOVED
Edited by jesus (Forum Super Moderator): Please do not have text in your signature which is over size 4.
cuteandpastescripts have a random text program
>:I I said random image.
REMOVED
Edited by jesus (Forum Super Moderator): Please do not have text in your signature which is over size 4.
yeah i think they hav that 2
Hmm. Id rather it didn't have to go to a website to get it because it will just take longer to load the page... That's why i asked for Javascript Or PHP.
REMOVED
Edited by jesus (Forum Super Moderator): Please do not have text in your signature which is over size 4.
Hang on - Anderman has one, I'll nick the code off him now :p!
Rofl Cheers mate![]()
REMOVED
Edited by jesus (Forum Super Moderator): Please do not have text in your signature which is over size 4.
http://habboxforum.com/showthread.php?t=45838
has a dinamcily ranom banner. or just a php one could work simply on the same basis
or if you would prefer javascriptPHP Code:<?php
//image arrays
// just ad decres it to remove images, also chnage image1.gif etc to images you wnat to dimainc image to randomize "/
$stuff = array (
0 => "image1.gif",
1 => "image2.gif",
2 => "image3.gif",
);
$display=rand(0, sizeof($stuff)-1);
//write banner
echo "<img src='".$stuff[$display]."'>";
?>
Code:<SCRIPT LANGUAGE="javascript"> banners = new Array() banners[0]="image.gif" banners[1]="image2.gif" banners[2]="image3.gif" var Number = Math.round(2 * Math.random()); var TheImage = banners[Number] document.write("<img scr='" +TheImage+ "'>") </SCRIPT>
Last edited by Mentor; 12-06-2005 at 02:23 PM.
I got mine of
javascript.internet.com
Originally Posted by Mentor
http://habboxforum.com/showthread.php?t=45838
has a dinamcily ranom banner. or just a php one could work simply on the same basis
or if you would prefer javascriptPHP Code:<?php
//image arrays
// just ad decres it to remove images, also chnage image1.gif etc to images you wnat to dimainc image to randomize "/
$stuff = array (
0 => "image1.gif",
1 => "image2.gif",
2 => "image3.gif",
);
$display=rand(0, sizeof($stuff)-1);
//write banner
echo "<img src='".$stuff[$display]."'>";
?>
Code:<SCRIPT LANGUAGE="javascript"> banners = new Array() banners[0]="image.gif" banners[1]="image2.gif" banners[2]="image3.gif" var Number = Math.round(2 * Math.random()); var TheImage = banners[Number] document.write("<img scr='" +TheImage+ "'>") </SCRIPT>
YaysieThanks Mentor. And Anders ofcourse
Just to let you know it workedYay ;D
Last edited by iRoss; 13-06-2005 at 03:39 PM.
REMOVED
Edited by jesus (Forum Super Moderator): Please do not have text in your signature which is over size 4.
Want to hide these adverts? Register an account for free!