Forum Moderators: open

Message Too Old, No Replies

Stylesheet Switching

Opera Cookie Bug?

         

bakedjake

3:49 am on Mar 24, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Using the standard ALA stylesheet switcher from [alistapart.com...]

It works fine for me in IE and Firefox.

In Opera 7.5 TP3, the stylesheet will switch when clicked. But it doesn't appear to be dropping the cookie. If I hit reload, it loads the preferred sheet (instead of the one I had selected). Any ideas?

(I know this is a Javascript question, but figured the CSS people might have a better insight on it.)

isitreal

11:08 pm on Mar 24, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Opera has a setting to accept cookies, but throw them out when you close, you might want to make sure that's not the problem.

That's in preferences, privacy, check 'throw away cookies on exit', if that is checked, that's the problem.

bakedjake

12:28 am on Mar 25, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



No. It's not even taking the cookie (but cookies are enabled).

Rambo Tribble

1:10 am on Mar 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What are you assigning to the days variable as its value?

bakedjake

1:13 am on Mar 25, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Default that's there: 365.

mipapage

1:19 am on Mar 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm sure you have your reasons for using JS, but they do have a PHP version as well... [alistapart.com...]

bakedjake

7:05 pm on Mar 25, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



I'm sure you have your reasons for using JS

Not really. :) It was more of "That's how wired.com did it, and I got the idea from them, so I'll do it that way."

Thanks for the php link. I'll probably do that instead. :)