SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Posts rarely lloydi's Avatar
    Join Date
    Jan 2002
    Swindon UK
    0 Post(s)
    0 Thread(s)

    Need help to get toggle script working in Mozilla/N6/7 etc

    I have been trying to come up with a standards compliant template for some intranet pages for my company. I got so far with it - using nested lists for nav items - and have it working fine in IE.

    Now, as it is an Intranet and as we only use IE5, I could stop there. However, being a standards advocate (or pain in the ****, my colleagues might argue), I'm not satisfied with that. I want this to work in Mozilla/Netscape 6/7.

    Here's the page:

    I've tinkered with it time and again, and I must be blind to what's wrong. There's probably not much wrong with it, but I need a fresh pair of eyes.

    Note: all the scripting and CSS is self-contained - view source will reveal all.

    Hope someone can help ...

    Build Your Own Web Site the Right Way!
    A beginners' HTML/CSS book with web standards at its heart
    The Ultimate HTML Reference
    A complete reference, in glorious hardback

  2. #2
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Dallas, TX
    0 Post(s)
    0 Thread(s)
    replace children with childNodes and add this after retrieveing currentEl

    if ( !document.all && document.normalize ) currentEl.normalize();

    Just in case.

    Side note: you may want to consider a script like this one I wrote. I'll be making some changes and updates soon.
    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev


Posting Permissions

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