Changing style sheets in IE6

Discussion in 'JavaScript' started by James McMurray, Nov 12, 2007.

  1. #1
    I've tried several ways to set up a change in style sheets, and IE6 messes up on all of them. The most recent version I'm using is described at http://www.alistapart.com/stories/alternate/.

    The problem I'm having is that when I click the link, the style only changes for the active portion of the screen. For example, the test file I'm using has three pagraphs, each with a different link. The style changes for those paragraphs, but not below them.
     
    James McMurray, Nov 12, 2007 IP
  2. KatieK

    KatieK Active Member

    Messages:
    116
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    58
    #2
    James,

    This could be caused by iframes, or a maybe a syntax error in the code. Can you post a link to the code you're having trouble with? To the actual code you've written? Then we can help you identify it.
     
    KatieK, Nov 14, 2007 IP
  3. James McMurray

    James McMurray Peon

    Messages:
    52
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It's just a very basic test page. Which makes it even more embarassing. :)

    I haven't been around long enough to have ten posts or green rep, and would rather not spam the place just to post a link, so let's see if this works. :)

    www dot colugo dot org/jmcmurra/generators_test/styleSwap dot html
     
    James McMurray, Nov 14, 2007 IP
  4. KatieK

    KatieK Active Member

    Messages:
    116
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    58
    #4
    Thanks, I was able to get that page. Basic test pages are the best - less code to get in the way. :)

    You did have a few HTML validation errors, but I corrected those, and still saw the same issue that you saw. I'm thinking IE6 doesn't quite support stuff the way you need it. I suggest you try this script from A List Apart:
    http://www.alistapart.com/stories/alternate
    Scroll near the bottom, to "Puttin’ it all together" and you download a script.
     
    KatieK, Nov 14, 2007 IP