Anvil
03-25-2007, 05:54 AM
1) Script Title: Style Sheet Switcher
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex9/stylesheetswitcher.htm
3) Describe problem: I have used the style sheet switcher for well more than a year on one of my sites. Now, I am trying to implement it on a new site (a Nucleus CMS blog), and I am encountering the strangest problem: every time I put the style sheet script call in (right where it's supposed to go, and right where it works just fine on my other site), it makes the header class for all three of the style sheets stop being recognized. (I use a .header declaration to create a theme-appropriate background image at the top of the Website.)
As soon as I put that <script ...> in there, though, the header just stops being seen, even though the script works perfectly to switch among three themes. The header class looks like this:
.header {
margin-top: 10px;
width: 100%;
height: 180px;
margin-bottom: 2px;
align:center;
background: #000 url(http://dark-wraith.com/images/dwfblk2.png) no-repeat center center;
}
although I can't for the life of me see why that script would frustrate this header, especially since I use a very similar declaration on the site where this beautiful style sheet switcher script has worked like a clock for so long. Just as soon as I take that script out, the header's right back where it's supposed to be again, no matter which one of the three cs sheets I pull.
(This whole problem is happening in IE6/IE7, and in Firefox 2.0.3, so it's not a browser issue.)
Do you have any idea of what's going on? I must have combed that css several dozen times looking for some kind of error that might account for this, but so far, I've come up bupkis. I've put the script everywhere of which I can think, and I've put the theme selector out in the open as well as in an include (which is where it is now), and I've even left the theme chooser out entirely to see if that was what was causing the header class to be ignored.
I got nothing.
Considering how much time I put into building this site and the three parallel sheets, I am just hating the idea of giving up on the theme choices my regular visitors have come to expect.
The site where this is happening, by the way, is
http://dark-wraith.com/darkwraith2/
and I'm leaving the site with the missing header tonight in case you want to have a look to see if you can tell what's happening.
I am most grateful for any help you can provide.
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex9/stylesheetswitcher.htm
3) Describe problem: I have used the style sheet switcher for well more than a year on one of my sites. Now, I am trying to implement it on a new site (a Nucleus CMS blog), and I am encountering the strangest problem: every time I put the style sheet script call in (right where it's supposed to go, and right where it works just fine on my other site), it makes the header class for all three of the style sheets stop being recognized. (I use a .header declaration to create a theme-appropriate background image at the top of the Website.)
As soon as I put that <script ...> in there, though, the header just stops being seen, even though the script works perfectly to switch among three themes. The header class looks like this:
.header {
margin-top: 10px;
width: 100%;
height: 180px;
margin-bottom: 2px;
align:center;
background: #000 url(http://dark-wraith.com/images/dwfblk2.png) no-repeat center center;
}
although I can't for the life of me see why that script would frustrate this header, especially since I use a very similar declaration on the site where this beautiful style sheet switcher script has worked like a clock for so long. Just as soon as I take that script out, the header's right back where it's supposed to be again, no matter which one of the three cs sheets I pull.
(This whole problem is happening in IE6/IE7, and in Firefox 2.0.3, so it's not a browser issue.)
Do you have any idea of what's going on? I must have combed that css several dozen times looking for some kind of error that might account for this, but so far, I've come up bupkis. I've put the script everywhere of which I can think, and I've put the theme selector out in the open as well as in an include (which is where it is now), and I've even left the theme chooser out entirely to see if that was what was causing the header class to be ignored.
I got nothing.
Considering how much time I put into building this site and the three parallel sheets, I am just hating the idea of giving up on the theme choices my regular visitors have come to expect.
The site where this is happening, by the way, is
http://dark-wraith.com/darkwraith2/
and I'm leaving the site with the missing header tonight in case you want to have a look to see if you can tell what's happening.
I am most grateful for any help you can provide.