!!blue Posted October 22, 2003 Posted October 22, 2003 Hi all, So, I've added a simple style sheet switcher to my blog that I got from A List Apart and it seems to work fine... half of the time. http://www.zoblue.com/mt/ I added the following lines of code to the head part of ALL the templates as follows: ><link rel="stylesheet" href="<$MTBlogURL$>styles-site.css" type="text/css" title="standard" /> <link rel="alternate stylesheet" href="<$MTBlogURL$>style2.css" type="text/css" title="lighter" /> <script language="JavaScript" type="text/javascript" src="<$MTBlogURL$>styleSW.js"></script> So, the javascript file does the style sheet switching and has a cookie that saves your setting and carries it through to consequent pages. The standard "dark" setting works fine, it's the alternate "light" setting that sometimes carries through and sometimes it doesn''t Sometimes I have to refresh the page, THEN it carries the style through. And it should carry it through to the "Comments" pop-up and the "contact me" pop-up too. Do you think the cookie settings in the MT blog somehow interfere the js file's cookie? any ideas? is it a browser issue? I've tried it PC: Mozilla Firebird 0.7/ Netscape 7.1 / IE6 and Mac Mozilla 5 / IE 5. thanks, !!blue ps: already posted this question on the Movable Type forum and haven't gotten a response yet. Quote
dreamcloudwolf Posted October 23, 2003 Posted October 23, 2003 It works fine on my computer on both Netscape 7.1 and IE 6. I think maybe it has to do with your browser settings. Something to do with your browser's cache. Quote
!!blue Posted October 23, 2003 Author Posted October 23, 2003 Good! Glad to hear it's working ok, so I guess I won't worry about it. I'll try it on other computers & such. Can anyone else verify it works? Thanks! !!blue Quote
vendlus Posted October 23, 2003 Posted October 23, 2003 When I first started it up it didn't want to work, but after a minute of clicking on stuff, it suddenly works fine now. Even after closing the browser and changing back to dark, then back to light. No clue why it suddenly started working. *edit* I'm using IE6 *edit again* It works fine for me in Opera 7.21 Build 3218. And yes, it carries through to the contact, calendar, and comment pages. Quote
!!blue Posted October 23, 2003 Author Posted October 23, 2003 Yeah, I think the cookie takes too long to save the settings, cuz MovableType has its own cookies too and maybe they both trying to save themselves or something like that and it's taking long. It happens to me too and since I don't know THAT much about cookies, I'll leave it alone. Thanks to all! !!blue Quote
criosa Posted October 23, 2003 Posted October 23, 2003 well, I can see the site, but everytime I put my mouse cursor on a link, it comes up with an "illegal operation" and has to close the window. I'm at school using a Win98 computer with IE5. (I have no idea how well IT updates things over here.) just a heads up incase any of your other visitors are encountering it. ~Christy Quote
!!blue Posted October 24, 2003 Author Posted October 24, 2003 hmm.. i think i know what that is, but i'll have to do more testing. Now, if I only had access to a Win 98 pc, or even a Win 95 while I'm at it. thanks, !!blue Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.