PDA

View Full Version : Resolved How to make style sheet random switcher selection apply to entire site?



printman55
05-24-2010, 08:35 PM
1) Script Title: Style Sheet Switcher (v1.1)

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

3) Describe problem: How do I make the random style sheet selection on the homepage then apply to each internal page? That way each internal page will use the same randomly selected style sheet that was selected for the home page.

jscheuer1
05-25-2010, 07:46 AM
I may be missing something, but it looks to me as though it does. You must associate the script and sheets with each page by installing them on each page though. Just make sure that the path to the script and to each sheet is correct on each page.

If you want more help:

Please post a link to a page on your site that contains the problematic code so we can check it out.

ddadmin
05-25-2010, 07:50 AM
Hmm the cookie used by the script is already site wide, so it should work the way you requested already. However, it will treat "www.mysite.com" and "mysite.com" as separately, as they are considered different domains in JavaScript.

Please post a link to the page on your site that contains the problematic script so we can check it out.

printman55
05-25-2010, 10:49 AM
I have not constructed the site as yet. I am still in the planning process. I wanted to make sure that what I wanted to do would work. So I will go ahead and if I run into issues I will create a new post. Thanks again.