Sent by Julian Merrow-Smith on 30 March 2005 08:08
Sara Atkinson wrote:
> I want users to be able to choose between dark text/light background
> and light text/dark background in a menu. Is there an easy way to
> switch between styles for a menu?
> Sarah
This is a simple style switcher I got from A list apart:
<script type="text/javascript" language="Javascript"
charset="iso-8859-1"
src="http://merrow-smith.org/scripts/styleswitcher.js"></script>
<style type="text/css" media="all" title="default">@import
"http://merrow-smith.org/css/clouds.css";</style>
<link rel="alternate stylesheet" type="text/css" media="all"
href="http://merrow-smith.org/css/gen.css" title="poppies" />
<a href="#" onclick="setActiveStyleSheet('poppies'); return
false;">Poppies</a>
<a href="#" onclick="setActiveStyleSheet('default'); return
false;">clouds</a>
Julian Merrow-Smith
L'Atelier de Crillon-le-Brave
84410 Crillon-le-Brave
FRANCE
T::+33(0)490659521/+33(0)490127940
M::+33(0)670091977
[EMAIL-REMOVED]
W::http://stillives.com
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/