Rika Lotus
Rika Lotus
ok this is my script now...i dunno how many of the header things are supposed to be in there...so i have 4..one for each image... sweatdrop
what im trying to do is get my image map to show up and act..well...like an image map...the pets seem to show up fine...they are just regular pictures...
Quote:
<?php
$links = array(
"http://img.photobucket.com/albums/v451/leatrix/ImageMaps/mapstary.jpg",
"http://img.photobucket.com/albums/v451/leatrix/pets/ryukogrown1.jpg",
"http://img.photobucket.com/albums/v679/Gauze-Mizin/Tagged/kyrik.jpg"
"http://img.photobucket.com/albums/v679/Gauze-Mizin/Tagged/mitrik.jpg"
wink ;
$howMany = count($links); //4
srand ((double) microtime() * 948625); //seed the randomizer
$randNumber = rand(1,$howMany); //make the random Number
//select the image
header("Location: ".$links[$randNumber]);
header("Location: ".$links[$randNumber]);
header("Location: ".$links[$randNumber]);
header("Location: ".$links[$randNumber]);
?>
and the code for my sig
http://frozen.t35.com/random.php?10,18 [/img]
You only need the header line once -- you're only redirecting to one image, right?
You could set up an image map as is explained in other threads and use the random image script for the image, but note that each image in the script could be used as the image map, not just the one mad to be the image map.