Monsta® Posted June 3, 2007 Report Posted June 3, 2007 as i'm a bit stumped i've tried all the examples on the net but they never seem to work! anyone got any ideas?
Mr Darn Posted June 3, 2007 Report Posted June 3, 2007 as i'm a bit stumped i've tried all the examples on the net but they never seem to work! anyone got any ideas?css style? in relation to what exactly?what is it you want to do?
Monsta® Posted June 3, 2007 Author Report Posted June 3, 2007 css style? in relation to what exactly?what is it you want to do?inrelation to switching between defined css styles on a web page. and yeah it is!
Andy Millne Posted June 3, 2007 Report Posted June 3, 2007 2 Options really....1) Javascript.2) Server-side solution.I would personally use the latter due to the fact you don't need to rely on the user having javascript. You do however need to utilise a server-side technology on all pages you wish to use the style switching.Basically use a dropdown menu and submit the value of the form to an intermediary script which sets a session variable. Then on the pages that display the styles use a conditional statement to check the value of the session variable and output the html for the style you wish to use.If you want to save state between sessions you will need to set a cookie which can be retrieved on subsequent visits.
Monsta® Posted June 3, 2007 Author Report Posted June 3, 2007 2 Options really....1) Javascript.2) Server-side solution.I would personally use the latter due to the fact you don't need to rely on the user having javascript. You do however need to utilise a server-side technology on all pages you wish to use the style switching.Basically use a dropdown menu and submit the value of the form to an intermediary script which sets a session variable. Then on the pages that display the styles use a conditional statement to check the value of the session variable and output the html for the style you wish to use.If you want to save state between sessions you will need to set a cookie which can be retrieved on subsequent visits.cheers will try that!
Blank Posted June 3, 2007 Report Posted June 3, 2007 cheers will try that!Or better still, try this forum instead:http://www.webdeveloper.com/
Andy Millne Posted June 3, 2007 Report Posted June 3, 2007 also...http://www.sitepoint.com/and...http://www.alistapart.com/a list apart is a particularly good resource for CSS, accessibility and typography.
Recommended Posts