Jump to content

Recommended Posts

Posted

 

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. :D 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.

 

Posted

 

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

Posted

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.

Posted

 

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. :dance: Thanks to all!

 

!!blue

Posted

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

Posted

 

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. :ph34r:

 

thanks,

!!blue

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...