Skip to content
View in the app

A better way to browse. Learn more.

Bedlington.uk

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Css Style Switcher!

Featured Replies

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?

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?

  • Author
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

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.

  • Author
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.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.