PDA

View Full Version : JavaScript Random Functions



Kitiara
April 15th, 2003, 10:56 AM
I'm having a slight problem with this one, so any suggestions would be appreciated.

I have three picture gallery pages and an index page. When you click on an image on the index, a random page of the three galleries should load.

I've written the script OK (I think) - there's an array of the three pages, and a quick function to determine the random one. I've assigned an onClick() to the image in question, and used a call Javascript action to call my random function. But whenever I click the image, it doesn't load up a gallery page.

I've attached the .htm file for people to look at. If you can see what's up with it... The random functions are in the <head> and the call is near the bottom of the page. :block:

lostinbeta
April 15th, 2003, 12:31 PM
Perhaps I am crazy, but I can't seem to find your function.

The only array I see is the one that houses your scrolling images :-\

Are these the right files?

Kitiara
April 16th, 2003, 05:38 AM
I would repost the files to make sure, but the drive is disabled for a couple of hours (darn intranet update). I'll check it when it's back up...