Jump to content

Recommended Posts

Posted

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?

Posted
  Monsta said:
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?

Posted
  Mr Darn said:
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! :D

Posted

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.

Posted
  Fourgee said:
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!

Guest
This topic is now closed to further replies.


×
×
  • Create New...