Results 1 to 2 of 2

Thread: PNG and IE7 problem...

  1. #1
    Join Date
    Nov 2009
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default PNG and IE7 problem...

    I'm having a problem with IE7 and a drop down 'menu'... the background of the menu is an image which is a .png that has a drop shadow (which is part of the image...not a CSS drop shadow.).

    The Problem:
    In IE7 the drop shadow shows up as just plain solid black and even if I take the drop shadow off, black still shows up around the edges... This happens only in IE7 and I haven't been able to figure out why this is happening... I wasn't sure if this should go in the CSS forum or Other forum since it uses both CSS and jQuery.

    Example Page: http://www.cnsg-host.com/test/topMenu.php
    CSS: http://www.cnsg-host.com/test/style.css

    Thank you for any assistance!

  2. #2
    Join Date
    Nov 2009
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ok, i've narrowed down the problem and it's with the jQuery and not the CSS. If a forum mod wants to move this topic feel free to do so.

    Here's the jQuery that controls the menu:
    Code:
    $(document).ready(function() {
    	
    	function megaHoverOver(){
    		
    		$(this).find(".sub").stop().fadeTo('fast', 1).show();
    
    			$(this).calcSubWidth();
    			//Set Width
    			$(this).find(".sub").css({'width' : rowWidth});	
    	}
    	
    	function megaHoverOut(){ 
    	  $(this).find(".sub").stop().fadeTo('fast', 0, function() {
    		  $(this).hide(); 
    	  });
    	}
    
    
    
    	var config = {    
    		 sensitivity: 2, // number = sensitivity threshold (must be 1 or higher)    
    		 interval: 100, // number = milliseconds for onMouseOver polling interval    
    		 over: megaHoverOver, // function = onMouseOver callback (REQUIRED)    
    		 timeout: 200, // number = milliseconds delay before onMouseOut    
    		 out: megaHoverOut // function = onMouseOut callback (REQUIRED)    
    	};
    
    	$("ul#topnav li .sub").css({'opacity':'0'});
    	$("ul#topnav li").hoverIntent(config);
    });
    I can add:
    Code:
    .css('filter', 'none')
    to here:
    Code:
    $(this).find(".sub").stop().css('filter', 'none').fadeTo('fast', 1).show();
    But it cancels out the fadeTo in IE... How would I add it so it wont cancel the fading? Thanks.

    I've updated the link above.

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
  •