Closed Thread Icon

Topic awaiting preservation: CSS-only colorswitch, possible? (Page 1 of 1) Pages that link to <a href="http://ozoneasylum.com/backlink?for=8558" title="Pages that link to Topic awaiting preservation: CSS-only colorswitch, possible? (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: CSS-only colorswitch, possible? <span class="small">(Page 1 of 1)</span>\

 
Rinswind 2th
Maniac (V) Inmate

From: Den Haag: The Royal Residence
Insane since: Jul 2000

posted posted 03-04-2003 00:43

I did see some of those color swithces on the web, who switched between stylesheets and thus making the page/site look different. But they all seem to have javascript involved, now i like to do one without any javascript so it still works when people have (java)scripts disabled. I already searched the faqs...no usefull answers.
Can this be done? and in what direction should i look? and should this be desirable to do?

"Freedom of speech is by no means freedom to insult others" from the Razorart goodbye letter.

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 03-04-2003 00:54

By having multiple link tags to different style sheets, the browser should provide the user with an option to switch between them.

IE is the only popular browser that doesn't provide this functionality. Mozilla and Opera both have it.

This ALA article describes the proper link tag syntax for this functionality.

AFAIK, there's no way to make it work in IE without JavaScript.

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

posted posted 03-04-2003 02:11

http://www.alistapart.com/stories/phpswitch/index.html

Rinswind 2th
Maniac (V) Inmate

From: Den Haag: The Royal Residence
Insane since: Jul 2000

posted posted 03-04-2003 11:41

thanks these are both good reads..

"Freedom of speech is by no means freedom to insult others" from the Razorart goodbye letter.

Rinswind 2th
Maniac (V) Inmate

From: Den Haag: The Royal Residence
Insane since: Jul 2000

posted posted 03-05-2003 04:28

my solution for now though very rude:
if i can do a browser check without JS i will swap whole html page instead of the stylesheet. I do know it is not meant to work that way, but it's the only thing i could think off this fast. Since this is going to be needed in a low cost thing i don't want to loose to many time with it. The worst thing is it has be be on a cd. So the php might not do the trick but i will look into that tommorow...

<edit>i think i got a solution: in this thread on expert-exchanges they talk about microweb
<edit-off>

"Freedom of speech is by no means freedom to insult others" from the Razorart goodbye letter.



[This message has been edited by Rinswind 2th (edited 03-05-2003).]

« BackwardsOnwards »

Show Forum Drop Down Menu