PDA

View Full Version : Resolved Style sheet Switcher Conflicts



FrickenTrevor
09-10-2011, 08:06 PM
So how do you get the style sheet switcher (from DD, found here (http://www.dynamicdrive.com/dynamicindex9/stylesheetswitcher.htm)) to be able to do a toggle like this (http://www.kelvinluck.com/assets/jquery/styleswitch/toggle.html) But not interfere with the other stylesheets?

For instance, the DD stylesheet switcher will ony change style3.css, style 4.css, and style 5.css while the other one will only TOGGLE style1.css and style2.css

jscheuer1
09-11-2011, 05:47 AM
Your question is unclear to me. Is there a conflict between the two scripts or a conflict between two of your stylesheets?

Or do you mean to ask how the DD script can be made to behave like the jQuery one?

If the latter, why not just use the jQuery script?

If you're looking for a particular set of features, it might be easier to get the jQuery one to include features from the DD script.

In any case, be advised that starting with Safari 5 or perhaps Safari 5.1, neither script works properly in that browser.

FrickenTrevor
09-11-2011, 06:14 PM
I'm looking for someway to change the style sheets via an external link.

For example, if you go to a page and a link says "Click here to change the style" a new window will open. On that window should be an image link that toggles the two different style sheets. The image link will also change to a different picture when clicking on it (sort of like an image link toggle type of thing)

The images (off and on icon) that I was talking about are bellow if you need them, thanks

jscheuer1
09-12-2011, 01:02 PM
You don't need either of those two scripts for that, and this is starting to sound like it belongs in Looking for such a script or service (http://www.dynamicdrive.com/forums/forumdisplay.php?f=23).

So, just to be clear, before I go and do anything more on this - you don't really care about those scripts as long as you can get the effect described in your most recent post. And you only want two stylesheets. Right?

If not, I'm still unclear what you're after, please explain.

If so, please consider that opening a new window is unreliable because it can be blocked and would look tacky. You could instead have your icons right on the page, which I think would be best for this, or you could open a modal dialogue, a pop up division that has the toggle on it. Which would you prefer and why? Or is a new window essential, and why?

FrickenTrevor
09-12-2011, 09:57 PM
Well I was thinking that it would look cool if the buttons popped up in a new window, sort of like a control panel. But it doesn't really mater, and it is true that some browsers might block it.

I will try and post a simplified version of my question in the "Looking for such a script or service." part of this forum, thanks.