Javascript Menu doesn't work in IE7, but it does in IE6 and Firefo

Discussion in 'Internet Explorer' started by michielskoen, Jan 6, 2007.

  1. michielskoen

    michielskoen Guest

    Hi,

    I have a few websites that work with a expanding menu in Javascript. These
    menus don't seem to work anymore with IE7. What is the reason? Is it the
    security of IE7? Or is because of the code?

    Websites: (Visit them with IE7 en IE6 or Firefox to see the difference)
    http://www.chiro-donbosco.be
    http://www.sagevo.be

    Can someone plz help me!!!

    Thanks!
     
    michielskoen, Jan 6, 2007
    #1
    1. Advertisements

  2. michielskoen

    FireWall2 Guest

    Question, what version of Java are you using? Is it the most current update
    10?

    Also, verify that you only have "one" version of Java installed. Sometimes
    when Java performs an auto update oddly they install an additional version of
    Java. Unknowingly to you, you might have two or three versions of Java
    installed, a self-testimony for Sun's applications.

    Java update 10 will function okay with Vista, at least it's the best that
    Sun can produce.... and easily could be improved.
     
    FireWall2, Jan 6, 2007
    #2
    1. Advertisements

  3. michielskoen

    michielskoen Guest

    Hi,

    Already thanks for trying to help me, but the problem isn't solved.

    When I went to configurationpanel > software, I saw 2 updates:
    Java Runtime Environment 5.0 update 9
    Java Runtime Environment 5.0 update 10

    I have deleted the first one, reboted, en tried again. The problem is still
    there: My menus in the website (http://www.chiro-donbosco.be) don't appear
    when I move my mouse over it. I'm running Windows Media Center Edition -
    Service Pack 2.

    Thanks already

    Koen

    ----
     
    michielskoen, Jan 6, 2007
    #3
  4. michielskoen

    Don Varnau Guest

    Hi,
    Your site isn't recognizing IE7.
    - - -
    /***************************************************************************
    **
    Default browsercheck
    ****************************************************************************
    **/
    function lib_bwcheck(){ //Browsercheck (needed)
    this.ver=navigator.appVersion; this.agent=navigator.userAgent
    this.dom=document.getElementById?1:0
    this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
    this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
    this.ie4=(document.all && !this.dom)?1:0;
    this.ie=this.ie4||this.ie5||this.ie6
    this.mac=this.agent.indexOf("Mac")>-1
    this.opera5=this.agent.indexOf("Opera 5")>-1
    this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0;
    this.ns4=(document.layers && !this.dom)?1:0;
    this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 ||
    this.opera5 || this.dom)
    return this
    }
    - - -
    If I run the User Agent tool to make IE7 look like IE6
    http://support.microsoft.com/kb/923196/en-us the menus work OK.

    Additional info:
    http://search.microsoft.com/results.aspx?mkt=en-US&mkt=en-US&q=ie7+user+agent

    Hope this helps,
    Don
    [MS MVP- IE]
     
    Don Varnau, Jan 6, 2007
    #4
  5. michielskoen

    michielskoen Guest

    @Don Varnau: THANK YOU VERY MUCH!

    I looked over it. I've changed the browsercheckscript and now it works!




     
    michielskoen, Jan 6, 2007
    #5

  6. Java has nothing to do with JavaScript. They are totally unrelated.
     
    Frank Saunders, MS-MVP OE/WM, Jan 7, 2007
    #6
  7. michielskoen

    Don Varnau Guest

    You're welcome. Thanks for the update.

    Don

     
    Don Varnau, Jan 7, 2007
    #7
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.