kandiyohiv
08-10-2003, 03:05 PM
I am using several JavaScript arrays which provide the values for a slide-show type display.
I would first like to detect the visitor's browser, and for those users with old browsers who wouldn't be able to view the slide-show correctly I would like to direct them to a browser-appropriate page which doesn't use the slideshow but would just list all array values.
Is there a way I can transfer my arrays to the new page so that the arrays don't need to be maintained in two places? Or, is there a way to split my page up into two sections and use an "if" or "goto" type statement that would say "If you have a new browser, use the slide-show. If not, go to the section labeled "OldBrowser" and display that code instead."
Or could the arrays be stored in a page all by themselves and then whenever I need to use them, I can just call for them?
Any help or different suggestions would be much appreciated.
I would first like to detect the visitor's browser, and for those users with old browsers who wouldn't be able to view the slide-show correctly I would like to direct them to a browser-appropriate page which doesn't use the slideshow but would just list all array values.
Is there a way I can transfer my arrays to the new page so that the arrays don't need to be maintained in two places? Or, is there a way to split my page up into two sections and use an "if" or "goto" type statement that would say "If you have a new browser, use the slide-show. If not, go to the section labeled "OldBrowser" and display that code instead."
Or could the arrays be stored in a page all by themselves and then whenever I need to use them, I can just call for them?
Any help or different suggestions would be much appreciated.