+ Reply to Thread
Results 1 to 5 of 5

Thread: Flicker issue in IE6

  1. #1

    Flicker issue in IE6

    I had this working in IE6 and must have lost some work because now I have the flicker issue again.

    I'm confident that I'm just missing a needle in a haystack so I'm asking for an extra set of eyes. I'm pullin my hair out staring at this thing!

    Here is my test site:
    http://www.thepangaeaproject.org/test.shtml

    Here is the relevant HTML:
    Code:
    <div id="menu">
            
    <ul class="menu">
        <li class="top"><a href="#" class="top_link"><span>Home</span></a></li>
        <li class="top"><a href="#" class="top_link"><span class="down">Program</span><!--[if gte IE 7]><!--></a><!--<![endif]-->
            <!--[if lte IE 6]><table><tr><td><![endif]-->
            <ul class="sub">
                <li><a href="#">Overview</a></li>
                <li><a href="#">Program Components</a></li>
            </ul>
            <!--[if lte IE 6]></td></tr></table></a><![endif]-->
        </li>
        <li class="top"><a href="#" class="top_link"><span class="down">Destinations</span><!--[if gte IE 7]><!--></a><!--<![endif]-->
            <!--[if lte IE 6]><table><tr><td><![endif]-->
            <ul class="sub">
                <li><a href="#">Ecuador</a></li>
                <li><a href="#">Thailand</a></li>
            </ul>
            <!--[if lte IE 6]></td></tr></table></a><![endif]-->
        </li>
        <li class="top"><a href="#" class="top_link"><span class="down">Participants</span><!--[if gte IE 7]><!--></a><!--<![endif]-->
            <!--[if lte IE 6]><table><tr><td><![endif]-->
            <ul class="sub">
                <li><a href="#">Participants</a></li>
                <li><a href="#">Current Participants</a></li>
                <li><a href="#">Graduates</a></li>
                <li><a href="#">Becoming a Participant</a></li>
                <li><a href="#">Student Pages</a></li>
                <li><a href="#">Family Pages</a></li>
            </ul>
            <!--[if lte IE 6]></td></tr></table></a><![endif]-->
        </li>
        <li class="top"><a href="#" class="top_link"><span class="down">About Us</span><!--[if gte IE 7]><!--></a><!--<![endif]-->
            <!--[if lte IE 6]><table><tr><td><![endif]-->
            <ul class="sub">
                <li><a href="#">History</a></li>
                <li><a href="#">Staff</a></li>
                <li><a href="#">Board of Directors</a></li>
                <li><a href="#">Advisory Council</a></li>
                <li><a href="#">Events &amp; Press</a></li>
                <li><a href="#">Newsletters</a></li>
            </ul>
            <!--[if lte IE 6]></td></tr></table></a><![endif]-->
        </li>
        
        <li class="top"><a href="#" class="top_link"><span class="down">Supporters</span><!--[if gte IE 7]><!--></a><!--<![endif]-->
            <!--[if lte IE 6]><table><tr><td><![endif]-->
            <ul class="sub">
                <li><a href="#">Foundations</a></li>
                <li><a href="#">Individual Donors</a></li>
                <li><a href="#">Organization Partners</a></li>
            </ul>
            <!--[if lte IE 6]></td></tr></table></a><![endif]-->
        </li>
        
        <li class="top"><a href="#" class="top_link"><span>Gallery</span></a></li>
        <li class="top"><a href="#" class="top_link"><span>Blog</span></a></li>
        <li class="top"><a href="#" class="top_link"><span class="down">Contact Us</span><!--[if gte IE 7]><!--></a><!--<![endif]-->
            <!--[if lte IE 6]><table><tr><td><![endif]-->
            <ul class="sub">
                <li><a href="#">Volunteer</a></li>
                <li><a href="#">Spread the Word</a></li>
                <li><a href="#">Employment</a></li>
            </ul>
            <!--[if lte IE 6]></td></tr></table></a><![endif]-->
        </li>
        
    </ul>
      </div>
    Here is the CSS:
    Code:
    .preload1 {
        background-image: url(/images/menu/blank_over.gif);
    }
    .preload2 {
        background-image: url(/images/menu/link_bg.gif);
    }
    
    
    #menu {
        margin-left: 2px;
        padding: 0px;
        margin-top: 1px;
        margin-right: 0px;
        margin-bottom: 0px;
    }
    
    .menu {
        margin:0px;
        list-style:none;
        height:25px;
        background:#FFFFFF;
        position:relative;
        z-index:500;
        font-family:arial, verdana, sans-serif;
        padding-top: 0;
        padding-right: 0;
        padding-bottom: 0;
        padding-left: 0;
    }
    .menu li.top {
        display:block;
        float:left;
        margin: 0px;
        padding: 0px;
    }
    .menu li a.top_link {
        display:block;
        float:left;
        height:25px;
        width:100px;
        line-height:24px;
        color:#000000;
        text-decoration:none;
        font-size:9pt;
        font-weight:bold;
        cursor:pointer;
        background: url(/images/menu/blank.gif);
        text-align: center;
    }
    
    /*The width in this class takes out the drop down in IE6*/
    .menu li a.top_link span {
        float:left;
        display:block;
        height:25px;
        width:100px;
        background:url(/images/menu/blank.gif) right top;
        text-align: center;
    }
    
    .menu li a.top_link:hover {color:#fff; background: url(/images/menu/blank_over.gif) no-repeat;}
    .menu li a.top_link:hover span {background:url(/images/menu/blank_over.gif) no-repeat right top;}
    
    .menu li:hover > a.top_link {color:#fff; background: url(/images/menu/blank_over.gif) no-repeat;}
    .menu li:hover > a.top_link span {background:url(/images/menu/blank_over.gif) no-repeat right top;}
    
    
    .menu table {border-collapse:collapse; width:0; height:0; position:absolute; top:0; left:0;}
    
    /* Default link styling */
    
    /* Style the list OR link hover. Depends on which browser is used */
    
    .menu a:hover {visibility:visible; position:relative; z-index:200;}
    .menu li:hover {position:relative; z-index:200;}
    
    /* keep the 'next' level invisible by placing it off screen. */
    .menu ul, 
    .menu :hover ul ul, 
    .menu :hover ul :hover ul ul,
    .menu :hover ul :hover ul :hover ul ul,
    .menu :hover ul :hover ul :hover ul :hover ul ul {
        position:absolute;
        left:-9999px;
        top:-9999px;
        width:0;
        height:0;
        margin:0;
        padding:0;
        list-style:none;
    }
    
    .menu :hover ul.sub {
        left:0px;
        top:25px;
        border:1px solid #000000;
        white-space:nowrap;
        width:auto;
        height:auto;
        z-index:300;
        background-color: #9E3D0D;
        padding: 5px;
    }
    .menu :hover ul.sub li {
        display:block;
        height:17px;
        position:relative;
        float:left;
        width:100%;
        font-weight:normal;
    }
    .menu :hover ul.sub li a {
        display:block;
        font-size:9pt;
        height:17px;
        width:100%;
        line-height:17px;
        text-indent:20px;
        color:#000000;
        text-decoration:none;
    }
    .menu :hover ul.sub li a:hover {
        color:#FFFFFF;
        background-image: url(/images/menu/link_bg.gif);
        background-repeat: no-repeat;
        background-position: left top;
    }


  2. #2
    Perhaps it's cheating, but with over 95% of users with Javascript turned on, and only 15% of users with IE6 I used this technique which worked:

    Code:
    <!--[if lt IE 7]>
    <script type="text/javascript">
    try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}
    </script>
    <![endif]-->
    so sue me. :)

  3. #3
    So...problem solved? Cause your example link is now a 404 :)

  4. #4
    Presuming you don't have a different image on hover just change the background position. If it's the same image on hover and normal you can have a{background:…top left;} a{background:…top right;}

    If it is a different image, use a sprite.

    Oh and that dropdown hack is vile, there are loads of IE6 compatible ones such as this: http://www.xs4all.nl/~peterned/csshover.html

    Harry

  5. #5
    the link is broken....but what your saying is the hover state image jumps a pixel in IE6 only? Can you post a new url?
    John Darling - Graphic & Web Designer
    SmarterTools Inc. | (877) 357-6278 | www.smartertools.com

+ Reply to Thread

Similar Threads

  1. IE Issue
    By farmhouse in forum CSS Forum
    Replies: 5
    Last Post: 14-01-2009, 04:46 PM
  2. IE6 Menu Issue
    By ranchero80 in forum Graphic Design and Web Design Help
    Replies: 5
    Last Post: 21-12-2008, 10:28 PM
  3. IE6 Display issue
    By voxio in forum Web Browsers Forum
    Replies: 5
    Last Post: 26-11-2008, 03:34 PM
  4. Font issue with OS X
    By Marc in forum Typography Forum
    Replies: 5
    Last Post: 25-06-2008, 10:31 AM
  5. Display Issue and Nav Loading Issue
    By tschneider in forum Graphic Design and Web Design Help
    Replies: 12
    Last Post: 23-01-2007, 10:34 PM

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


The Graphics Forum Web Design Stuff Free Decent Downloads Free Quality Wallpapers Graphics Forum Free Vista Themes
The Top The Best Images Tech Talk 247 Logo Design - $149 Affordable Stock Vector Illustrations Creativecurio - Design Blog Graphic Design Advertising

Check the forum often for the latest design announcements. Everything from graphic design and web design, to films and music. Estetica is a great place for people to get together and help each other out.



Web Hosting - UK Web Hosting services for business or personal website hosting needs.

Dedicated Servers - A full range of Managed Dedicated Server solutions suitable for all your requirements.

Graphic Design Blog | Web Design Forum | Graphic Design and Print Forum | Graphic Design Links | Advertise On This Site

Web Design UK | Vision.To Design | Leaflet Printing | Estetica Design Forum's Privacy Policy

Flyer Printing | Photography Blog | Design Forum Links | Logo Design | Graphic Design Social Network | Logo Design

Graphic Design Tutorials | Logo Designer | UK Logo Design Studio | Land for sale | Vector Art Blog

Free Web Hosting | Custom Logo Design - $149 Only | Affordable Print Design Templates | Small Business Logo Design | Company Logo Design

Logo Design Service | Logo Design Firm | Logo Design Reseller | Custom Logo Design | Letterhead Printing | Flyer Printing | Business Card Printing

Printing | Leaflet Printing | Online Backup | T-Shirt Printing | Personalised Mugs | Canvas Printing

Search Engine Optimization by vBSEO 3.5.0 RC1 PL1