Welcome to Gaia! ::

Bump and thanks for the information!
Ah, sweet insanity...
crying trying something
Bumcake
Peng
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/mapbumcake.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]);
?>


and the code for my sig

User Imagehttp://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.

ok i have an image map...how exactly do i use the script to randomize it with a bunch of pictures?
-ish rika lotus-

still not working...aynone wanna help meh..? sweatdrop
thanks for the info!
Bumcake, use this script:

<?php

$images = array(
"http://img.photobucket.com/albums/v451/leatrix/ImageMaps/mapbumcake.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"
)

header("Location: ".$images[array_rand($images)])

?>


It's simpler, and, I think a tiny bit quicker. Also, you left the comma out at the end of the line that had the third image and broke the script, and the script was messed up anyway. This one will work fine. Remember, when adding a new image, put a comma on the end of the line before.

Using it with an image map won't really work right, since the map would be active for every image in the script, not just the image you intended it to be used for....
Bumpeth!
Thanks so much!
When ever I asked people how, they just said "Enh, look it up on google" or something equally vague.
Thanks for the info. I'm all set with the script and image host and all... I just need a place to host the script.
EDIT: Not working on Geocities. I'mna try again with another host.
EDIT2:
User Image - Blocked by "Display Image" Settings. Click to show.
Khito
Thanks for the info. I'm all set with the script and image host and all... I just need a place to host the script.
EDIT: Not working on Geocities. I'mna try again with another host.
EDIT2:
User Image - Blocked by "Display Image" Settings. Click to show.

I cant remember the correct URL for the site, but I know of one that a lot of my friends use...
Something like www.1aphost.com or around that.. I suggest googling it first..
R A M Z A
Khito
Thanks for the info. I'm all set with the script and image host and all... I just need a place to host the script.
EDIT: Not working on Geocities. I'mna try again with another host.
EDIT2:
User Image - Blocked by "Display Image" Settings. Click to show.

I cant remember the correct URL for the site, but I know of one that a lot of my friends use...
Something like www.1aphost.com or around that.. I suggest googling it first..


http://www.1asphost.com/. But they have ASP, not PHP. Try Hosting Anime, Khito.

Thanks for adding that script, Ramza. I suppose you should also add that Myspoonistoobig did partly make it or something.
I'd love to put her method up, but when I do, it stretches the screen badly..
The front page is already too big...
I can post a link to it though sweatdrop
Peng
Using it with an image map won't really work right, since the map would be active for every image in the script, not just the image you intended it to be used for....
I have a random image for my sig. Mine has the image map in the same place in both images though.

Quick Reply

Submit
Manage Your Items
Other Stuff
Get Items
Get Gaia Cash
Where Everyone Hangs Out
Other Community Areas
Virtual Spaces
Fun Stuff