Topic awaiting preservation: a real wild one - JS to PHP to JS (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: Northumberland, England |
posted 05-05-2003 02:18
Ok I have this js file as part of my site that selects a random artist from a list, then retrieves a random image from that artist's directory on my site from a maximum of 5 images - code: Math.floor(Math.random()*5)
|
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 05-05-2003 02:36
smonkey: PHP can do random numbers - why not use PHP for the whole thing? |
Paranoid (IV) Inmate From: Northumberland, England |
posted 05-05-2003 14:36
quote:
|
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 05-05-2003 15:12
smonkey: Well OK - I'm not to sure of what is happening. |
Paranoid (IV) Inmate From: A graveyard of dreams |
posted 05-05-2003 15:55
Looks like it is something like opendir() you're looking for. code: <script language="javascript">
|
Paranoid (IV) Inmate From: Northumberland, England |
posted 05-05-2003 16:03
all sounding very complicated - i agree all php would be the way to go if it's gonna be this awkward. Thanks for all your help, I guess I'll leave the php site redesign til next year when I have learnt more about it. |