The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
e.g.
but it didn't seem to work. My question is is they way I'm trying possible and all it is is that I've got the code wrong??? Or is that way of putting an Image on a page not possible??
Cheers though :o)
Not sure what you are doing. The only way I could think of is if you were using the GIF modules in PHP to randomly pick a picture, fomrat the headers and send "background.php" as a *.gif file. No offence but somehow I doubt it (because it's stupid). Here's how I'd do it:
">
And in background.php:
--------------------------------------
$images[] = "foo.gif";
$images[] = "bar.gif";
$images[] = "sit.gif";
srand ((double) microtime() * 1000000);
$num = rand(0, sizeof($images);
echo($images[$num]);
?>
--------------------------------------
However, a better way to do it would be to embed the above into the file and dump the images name into a variable instead of outputting it and call =$variable?> instead of . Less messy that way.
You'd (probably) be looking at something more like this
$background = do_random_turbonutter_magic($list);
print $background;
?>
>
Comments, Rob?