This is a discussion on "Getting rid of flicker on Navigation bar" within the Web Page Design section. This forum, and the thread "Getting rid of flicker on Navigation bar are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Getting rid of flicker on Navigation bar
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
I am in the middle of making this new site that has a graphical navigation bar that is sliced to allow for a rollover state. The client does not like the flicker you get when the page reloads (when the page changes). Is there a way of minimizing the flicker. The only thing I can think of is to use frames (which I hate and which means starting again) or an image map which means no rollover state (I dont want to swap the whole image on each rollover). Or not having a graphical navigation bar which the client wants. The site is here at the moment (note only have images in recent work):http://www.glanceimage.co.uk/jason-i...work/index.htm Any help, yes please!
|
|
|
|
#2
|
||||
|
||||
|
Re: Getting rid of flicker on Navigation bar
|
|
#3
|
|||
|
|||
|
Re: Getting rid of flicker on Navigation bar
One thing to note that is not included in the example that Ryan posted is that you could also pre load the images with css.
In your CSS something like: #fooPreLoad { height:0; overflow:hidden; background: url("foo.jpg") top left no-repeat; display:none !important; } then the images will be loaded before the page loads fully thus cached thus out of the way. in your HTML put: <div id="fooPreLoad"> </div>
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Last edited by moojoo; Apr 19th, 2007 at 15:48. |
|
#4
|
|||
|
|||
|
Re: Getting rid of flicker on Navigation bar
|
|
#5
|
|||
|
|||
|
Re: Getting rid of flicker on Navigation bar
The example ryan posted is one image, my comment added pre loading of it. It can be recycled for each nav element.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#6
|
|||
|
|||
|
Re: Getting rid of flicker on Navigation bar
I know ... just adding my opinion and my link
|
|
#7
|
|||
|
|||
|
Re: Getting rid of flicker on Navigation bar
Thanks for all the advice. I will try the tutorial later. Is this the best way of making graphical css buttons by using ul? Is there another way of linking a div that does not have any content?
In the mean time I have added a background image of the whole of the nav bar in the nav bar container. This seems to help with the flicker in IE6 and FF but apparently not IE7 which I dont have! Is this the case and does it flicker in safari? The flicker happens when you click on the next image button by view. Ta again for all your thoughts! http://www.glanceimage.co.uk/jason-i...1/image-01.htm |
|
#8
|
|||
|
|||
|
Re: Getting rid of flicker on Navigation bar
If the items are a menu than they should be in a list. Then the best way is to put the image as a background to the list and go from there.
|
|
#9
|
||||
|
||||
|
Re: Getting rid of flicker on Navigation bar
Do background images load if they have display: none; set in most browsers? In Safari, if you have display set to none with a background image, it won't load the image until the div is set to block (I've noticed this using JavaScript to change the values).
|
|
#10
|
|||
|
|||
|
Re: Getting rid of flicker on Navigation bar
Nah you make a ID or class just for preloading. It is often not necessary but at tiumes could be useful for any image. Nice thing is it only really kicks in fisrty visit, once the images are pre loaded they are cached from then on. Just kinda ensures that your site looks a bit better at render vs missing elements.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Last edited by moojoo; Apr 19th, 2007 at 23:05. |
![]() |
| Tags |
| flicker, navigaion bar |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CSS Navigation Help | penguin | Starting Out | 3 | Mar 15th, 2008 13:43 |
| Navigation help | elephantinc | Flash & Multimedia Forum | 9 | Feb 13th, 2008 22:46 |
| CSS Navigation Help! | crackafaza | Web Page Design | 3 | Jan 21st, 2008 15:56 |
| CSS navigation | AdRock | Web Page Design | 1 | Jul 15th, 2006 10:56 |
| why do you flicker damn you! | benbramz | Web Page Design | 8 | Sep 9th, 2005 05:54 |