Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > CSS > CSS Cascading Style Sheets
|
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 8th, 2008, 08:49 AM
Registered User
 
Join Date: Mar 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default IE6 Image Flicker - despite fix


When I view this page in IE6, the background image in the Global Navigation flickers, despite using a known IE6 flicker fix. Can anyone advise me where I'm going wrong?

http://www.testmole.co.uk

The CSS used for the Navigation:

Code:
/* Global Nav  */

#globalnav { width:960px; margin:5px 0 0 0; padding:0; list-style:none; 
             background-color:#000;
             background-image:url('nav-bk.jpg');
             background-position:top left;
             background-repeat:repeat-x;

             }

#globalnav li { float:left;
                font-weight:bold;
                background-image:url('nav-bk.jpg');
             background-position:top left;
             background-repeat:repeat-x;
                 }

#globalnav li a { color:#fff; text-decoration:none; padding:0 6px 0 4px;
                  background:url('nav-border.jpg') no-repeat top right;
                  display:block; line-height:3.0em;
                  background-color:transparent;
                    }

#globalnav li a:hover {  color:#F9750A;  }
And the HTML used for the navigation:

Code:
<ul id="globalnav" class="fixclear">
<li><a href="#" title="Amazon Irrigation Home Page">Home</a></li>
<li><a href="#" title="Amazon Irrigation Drip Irrigation">Drip Irrigation</a></li>
<li><a href="#" title="Amazon Irrigation Underground Irrigation">Underground Irrigation</a></li>
<li><a href="#" title="Amazon Irrigation Micro Irrigation">Micro Irrigation</a></li>
<li><a href="#" title="Amazon Irrigation Hoses, Reels, Handguns &amp; Trolleys">Hoses, Reels, Handguns &amp; Trolleys</a></li>
<li><a href="#" title="Amazon Irrigation Sprinklers &amp; Sprayers">Sprinklers &amp; Sprayers</a></li>
<li><a href="#" title="Amazon Irrigation Rainwater Harvesting">Rainwater Harvesting</a></li>
<li><a href="#" title="Amazon Irrigation Garden Centre">Garden Centre</a></li>
</ul>
I tried using the following fix code in the header, but it's not working:

Code:
<script type="text/javascript">

try {
  document.execCommand("BackgroundImageCache", false, true);
} catch(err) {}


</script>





Similar Threads
Thread Thread Starter Forum Replies Last Post
IE6 image background problem nasirmunir CSS Cascading Style Sheets 3 September 2nd, 2008 03:50 AM
Unable to View Image in IE6 AlexSepahpour HTML Code Clinic 2 July 15th, 2008 02:15 AM
Flicker Problem goyduyudu General .NET 0 March 8th, 2007 10:44 AM
onmousemove flicker interrupt Javascript How-To 1 December 18th, 2006 01:24 AM
Screen Flicker SerranoG Access 1 May 16th, 2004 03:15 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.