Hi Jaime

  As it says on http://www.alistapart.com/articles/alternate/ you have to
 create a cookie, or maybe a session. The function to create the cookie and
 to the store the chosen stylesheet is showed on the site mention above

  Regards

  Anders Ebdrup
  www.smartpage.dk

----- Original Message ----- 
From: "Jaime Wong" <[EMAIL PROTECTED]>
To: "WSG - CSS List" <[EMAIL PROTECTED]>
Sent: Monday, March 08, 2004 4:07 PM
Subject: [WSG] Style Switcher and IE


>
> Hi I am not sure if it is appropriate to seek help for some javascript
> issues with styleswitcher here but I hope someone will be able to help
> because I have no idea what went wrong all of a sudden.
>
> I am using the style switcher at http://www.alistapart
> com/articles/alternate/ on my site and all of a sudden IE seems to have a
> problem with it (used to work and no changes has been done with it). It
will
> not remember the selected style and upon every reload, it will switch back
> to the default style.
>
> But when working with dreamweaver, and by using the preview option, the
> style registers in IE. It only doesn't work when the site goes live.
>
> All other browsers are working fine.
>
> This is what I have in <head>
>
> <link rel="stylesheet" type="text/css" media="screen" href=".
> /scripts/css/style_glass/glassStyle.css" />
> <link rel="alternate stylesheet" type="text/css" media="screen" title=
> simple" href="../scripts/css/style_simple/simpleStyle.css" />
>
> and in the body..
>
> <li><a href="#" title="Switch to Glass Style"
onclick="setActiveStyleSheet('
> , 1);return false;" onmouseover="MM_swapImage('styles','','.
> /images/global/styles/tt_select.gif',1)" onmouseout="MM_swapImgRestore()
> ><img src="../images/global/styles/style01_glass.gif" alt="Switch to Glass
> Style" width="22" height="21" /></a></li>
>
> The script for switcher from above:
> onclick="setActiveStyleSheet('', 1);return false;"
>
> <li><a href="#" title="Switch to Simple Style"
onclick="setActiveStyleSheet(
> simple', 1);return false;" onmouseover="MM_swapImage('styles','','.
> /images/global/styles/tt_select.gif',1)" onmouseout="MM_swapImgRestore()
> ><img src="../images/global/styles/style02_simple.gif" alt="Switch to
Simple
> Style" width="20" height="21" /></a></li>
>
> The script for switcher from above:
> onclick="setActiveStyleSheet('simple', 1);return false;"
>
>
> The javascript is what I downloaded from http://www.alistapart
> com/articles/alternate/
>
>
>
>
> With Regards
> Jaime Wong
> ~~~~~~~~~~~~~~~~~~~~~~~~~~
> SODesires Design Team
> http://www.sodesires.com
> ~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
> *****************************************************
> The discussion list for http://webstandardsgroup.org/
> *****************************************************
>
>


*****************************************************
The discussion list for http://webstandardsgroup.org/
***************************************************** 

Reply via email to