SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Dinah-Moe Humm mudshark's Avatar
    Join Date
    Dec 2003
    Posts
    1,072
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    jQuery: pngFix messes with Suckerfish menu

    Hi there,

    I am trying to implement a IE6 png transparency fix (based based on this script) as well as a Suckerfish dropdown menu that accomodates to IE6 (based on this script); both using jQuery code. It looks like this:
    Code:
    <script type="text/javascript"> 
        $(document).ready(function(){
        $('body').pngFix();	
        $("ul#sf-nav li").hover(
            function(){ $("ul", this).fadeIn("fast"); }, 
            function() { } 
        );
        if (document.all) {
            $("#sf-nav li").hoverClass("sfhover");
        }
    });
     
    $.fn.hoverClass = function(c) {
        return this.each(function(){
            $(this).hover( 
                function() { $(this).addClass(c);  },
                function() { $(this).removeClass(c); }
            );
        });
    };
    </script>
    The problem (which only occurs in bloody IE6 obviously): although the png fix always works, the suckerfish dropdown code will only work when I comment out the $('body').pngFix(); oneliner.

    This has been driving me nuts for the past couple of hours, so any help appreciated... Full code, if needed: see this page.

  2. #2
    Dinah-Moe Humm mudshark's Avatar
    Join Date
    Dec 2003
    Posts
    1,072
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Problem solved, over at this CSS forum thread - in case anyone runs into the same problem...


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
  •