Results 1 to 6 of 6

Thread: Styleswitch not working in IE7 (but works in FF, Opera)

  1. #1
    Join Date
    Mar 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Styleswitch not working in IE7 (but works in FF, Opera)

    1) Script Title: Style Sheet Switcher v1.1

    2) Script URL (on DD): http://dynamicdrive.com/dynamicindex...etswitcher.htm

    3) Describe problem:

    On my site www.icdmeister.com/site/, the script works properly in FF and Opera but doesn't work in IE7 (haven't tried IE6 yet).

    In IE7, when I click the button to change the stylesheet the page refreshes but doesn't seem to apply the new stylesheet. I've reviewed the forum and found this similar thread from a year and a half ago. I tried to change the styleswitch.js file as described in that thread but it didn't fix the problem in IE7 and also made the script not work in FF and Opera.

    I see that version 1.1 of the script (the version I'm using) was released after this discussion but (at least in my case) it doesn't seem to have resolved this issue.

    Any help would be very welcome!

    Thanks,

    Andrew

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Actually in FF2, clicking on the 3 "As" doesn't seem to make a difference visually for me either. By working in FF and Opera, what do you mean?

  3. #3
    Join Date
    Mar 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Sorry I should have specified that the home page at icdmeister.com/site/ is not set to change font size but every other page is.

    Click on any link in the content area or on the left nav bar then click one of the A's to change the font size and you (hopefully) will see what I'm seeing - that it works properly in FF but not in IE.

    Thanks,

    Andrew

  4. #4
    Join Date
    Mar 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    A little more information . . .
    Not sure what was going on but this problem seems to have resolved itself.

    Sorry for wasting your time. Great tool!

    Andrew

  5. #5
    Join Date
    Mar 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question More IE problems with Style Sheet Switcher

    I've setup Style Sheet Switcher on my site:
    www.icdmeister.com/demo/
    (note: style sheet changes are not incorporated on the home page but are active on all other pages - click any link from the start page to explore).

    In IE7, the change of styles works without a hitch but it doesn't seem to retain the style when one moves on to other pages in the site. This isn't happening in FF.

    Any ideas?

    Andrew
    Last edited by aschecht; 04-30-2008 at 12:25 AM. Reason: prefer demo subdomain to demonstrate this

  6. #6
    Join Date
    Mar 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I'm a bit baffled. After hours of trying different variations, now it all seems to be working properly again in both IE and FF. The only thing I can think of that might have made the difference is changing the style sheet changing event from onMouseDown to onClick. Not sure why that would matter but . . . all's well now.

    A.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •