js not working since ie7

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JohanK
    New Member
    • Jan 2007
    • 13

    js not working since ie7

    hi there,
    i'm having a problem with a javascript used to show and hide certain div layers.
    It used to work great but since installing ie7 it's not "showing" correctly.

    on a mouseover event it calls popupmenu and on a mouseout event it calls hidemenu

    here's the javascript:

    Code:
    function popupmenu(menuid) {
    	div = document.getElementById( 'div_' + menuid );
    	if (div.style.visibility != 'visible' ) {
    		div.style.visibility = 'visible';
    	}
    }
    
    
    
    function hidemenu(menuid) {
    	div = document.getElementById( 'div_' + menuid );
    	if (div.style.visibility != 'hidden' ) {
    		div.style.visibility = 'hidden';
    	}
    }
    
    
    
    function highlight(linkid) {
    	// Highlight the linkset link for this page
    	li = document.getElementById( 'link_' + linkid );
    
    	// Check that li exists
    	if (li) {
    		li.className = 'current';
    	}
    }
    hopefully there's a quick work around for this but no luck so far
    so please help

    thanks in advance

    Johan Kestlmeier
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by JohanK
    hi there,
    i'm having a problem with a javascript used to show and hide certain div layers.
    It used to work great but since installing ie7 it's not "showing" correctly.

    on a mouseover event it calls popupmenu and on a mouseout event it calls hidemenu

    here's the javascript:

    Code:
    function popupmenu(menuid) {
    	div = document.getElementById( 'div_' + menuid );
    	if (div.style.visibility != 'visible' ) {
    		div.style.visibility = 'visible';
    	}
    }
     
     
     
    function hidemenu(menuid) {
    	div = document.getElementById( 'div_' + menuid );
    	if (div.style.visibility != 'hidden' ) {
    		div.style.visibility = 'hidden';
    	}
    }
     
     
     
    function highlight(linkid) {
    	// Highlight the linkset link for this page
    	li = document.getElementById( 'link_' + linkid );
     
    	// Check that li exists
    	if (li) {
    		li.className = 'current';
    	}
    }
    hopefully there's a quick work around for this but no luck so far
    so please help

    thanks in advance

    Johan Kestlmeier
    Java != Javascript

    Moved to Javascript forum.

    Comment

    Working...