Preserved Topic: Arrays |
|
---|---|
Author | Thread |
Maniac (V) Mad Scientist From: Azylum's Secret Lab |
posted 08-27-2001 00:55
Hi, i have this code to make that some random image change everytime that the pag is reloaded (Thanks Bitdamage, DL and mr.Max!) but now, i want a different URL and a different "alt" text foreach one, i know that i have to do a matrix (or an Array?) but i'm still lost in the topic... |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 08-27-2001 01:16
Although you can use objects to simplify things, it's easier like this: |
Maniac (V) Mad Scientist From: Azylum's Secret Lab |
posted 08-27-2001 01:45
Hey! i've never seen an array with my name! |
Maniac (V) Mad Scientist From: Azylum's Secret Lab |
posted 08-27-2001 02:10
Just E-X-E-L-E-N-T!!! |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 08-27-2001 03:05
An important note: |
Maniac (V) Mad Scientist From: Azylum's Secret Lab |
posted 08-27-2001 03:13
Welcome to the real world.... |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 08-27-2001 08:17
Wakkos, you didn't add the closing </A> tag to the array elements. And you don't need that "var upper_limit = 1" definition anymore... |
Maniac (V) Mad Scientist From: Azylum's Secret Lab |
posted 08-27-2001 15:15
Thank you mr.Max! |
Paranoid (IV) Inmate From: Lebanon |
posted 08-29-2001 11:45
mr.Max I checked your rotate script.pl. code: <?
|
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 08-29-2001 18:11
Since script has to be called directly from <IMG> tag, it is best not to do any redirections. Some web browsers (i.e. NN4) won't understand it correctly and either won't display anything or will always display the same image (when you click on reload). So, at the end it's best to trick the browser to think that it is actually image and not the script. |