Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

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 switcher and IE

Featured Replies

Hi

 

I’ve designed a website, http://www.eo-quality.co.uk/ as a freelance project.

 

On the accessibility.html page I have a series of links that work with javascript to change the stylesheet the page uses. It creates a cookie so that the user doesn’t have to set style choice each time they move to a new page. It works fine on my hosting, in both IE and Firefox. But the moment I uploaded it to the clients hosting we found it stopped working in IE. Still works in Firefox, but IE loses the style settings between pages. So you can change the CSS on the accessibility.html page, but leaving it restores you to default.

 

If you look at it here, in a test folder on my hosting, it works fine in IE – www.bgiok.org.uk/test/

 

But not on her hosting with NTL (now Virgin). I noticed that if you do a view>source on the pages on her hosting you get a page that isn’t my code, but a link to the ‘real’ address, so the domain is a front, that bounces you to the freebie hosting she has (I don’t know the correct terms for this), but again, surely it wouldn’t work in any browser if it was a relative/absolute link issue?

 

Does anything leap out at you as to why it’s not working? I thought I’d blame her hosting, but since the javascript etc works in Firefox when live, I can’t! :-/

 

I plan to delivery this (second attempt!) on Tuesday, but it threatens to linger on forever if I can’t get this style switcher working.

 

Many, many thanks for any ideas.

Create an account or sign in to comment

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.