SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Zealot techie2003's Avatar
    Join Date
    May 2001
    Location
    Boston, Massachusetts
    Posts
    103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help! Javascript & DHTML

    Help!

    look at this page:
    http://biography.morrisdees.cjb.net

    THere's a DHTML Menu in the header which is Thomas Brattli's Cool Menus 3

    and there's some javascript for folders under the navigation section. But it doesn't work in Netscape! Not even Netscape 4.7 They both work individually in Netscape but not together. Is there a way that I can do an IF statement in Javascript so that I only the DHTML Menu is visible in Netscape?

    THis is what I had before but it doesn't work. but then again, I'm not a javascript genius.

    Code:
    <SCRIPT language=javascript>
    var browser=navigator.appName
    
    if (browser == "Microsoft Internet Explorer")
    {
    document.write("
    <script src='../files/foldersjs.js'></script><script src='../files/biography.js'></script><script>initializeDocument()</script>");
    }
    Can someone please help me?
    Thank you!

  2. #2
    SitePoint Wizard silver trophy Jeremy W.'s Avatar
    Join Date
    Jun 2001
    Location
    Toronto, Canada
    Posts
    9,121
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    You may want to check his site for an update, he's normally pretty good with staying up to date (though this concept may not work in NS!).

    www.bratta.com
    SVP Marketing, SoCast SRM
    Personal blog: Strategerize
    Twitter: @jeremywright


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
  •