View Full Version : Style Sheet Switcher Problem

Pebble Design
11-09-2007, 06:01 AM
1) Script Title: Style Sheet Switcher (1.1)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex9/stylesheetswitcher.htm

3) Describe problem:

Have started to use this script for a client, but have run into a problem when using 'random', 'sessiononly'.

When a new session is started, it sometimes loads the DEFAULT stylesheet, but when the page is refreshed, it changes to an alternate stylesheet - then remains on that style (like it's supposed to).

When the script loads an alternate style to begin with it works perfectly.

We are wondering how we can fix this so that once the default style loads it stays loaded. Or if there's another way around this.

Your help is much appreciated.


11-09-2007, 07:14 AM
It could be the way you've defined your default and alternate style sheets. Please post a link to the page on your site that contains the problematic script so we can check it out.