Menu flashes

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Large
Advanced
Advanced
Posts: 15
Joined: Mon May 24, 2004 7:24 pm

Post by Large »

Hi Kevin,

This is basically a company intranet and everyone uses IE6, which is easy for me to code for, using blendtrans I get a nice fade between pages.

If I remove the blendtrans its cuts my problem in half, it no longer flashes white but the main menu text still flashes, I tried out some other menu's and the menu doesn't seem to redraw, ie the the main menu text dont flash.

But I don't wanna use other menu's not when Milonic is soooooo easy to use.

I hope we can come to solution between us.

Kind Regards
Large
Advanced
Advanced
Posts: 15
Joined: Mon May 24, 2004 7:24 pm

Post by Large »

Hi Again Guys,

Is it possible to position Milonic Menu relative, ie : place it inside a table because I notice this problem doe's not occur if things are placed within a table.

Kind Regards
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hi Large,

Yeah... you can place it in a table. But I think what's causing the "test flashing" that you refer to is filters in the style that you use for your main menu. In your menuStyle code, you have:

Code: Select all

overfilter="Fade(duration=0.3);";
outfilter="Fade(duration=0.3);";
I would get rid of both lines. In particular, the overfilter will cause the menu to fade in over a period of .3 seconds. Since the menu'sbackground color is the same as the background it's on, the net result will be that only the text appears to fade in.

Hope that helps,

Kevin

EDIT:

An alternative would be to implement an overfilter that lasts a bit longer, and has maybe a more eye-catching effect, so that the menu will do something cool each time a page is loaded (e.g. slide in from the left, pixelate into being, etc.)
Large
Advanced
Advanced
Posts: 15
Joined: Mon May 24, 2004 7:24 pm

Post by Large »

Hi Kevin,

I'm not having much luck ! :(

I have removed those two lines but the word Test on the main menu still flashes.

I know longer get the white background flash since removing the Blend Trans but I still get the main menu text flashing when you select a sub menu option.

Oh well !

Thanks for you time and help.

Kind Regards
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hi Large,

That flash you still see would be the time it takes your browser to load the menu's .js files (from the browser cache after the first load) and render the menu. Any dhtml/js based menu system would do that, since you're loading a new page, or reloading the same page each time. Less sophisticated menu systems may have smaller source files and load more quickly, but tests show that the Milonic code does load pretty fast. One thing you could do to decrease the apparent load time would be to load the menu scripts first; load the .css and your google.js script after (assuming that you aren't using any of the css in your menu, which you don't appear to be at the moment).

Another thing that would decrease the load time would be to eliminate the ns4 conditional, if you don't use ns4 on your intranet. I.e. change:

Code: Select all

<SCRIPT language=JavaScript src="menu/milonic/milonic_src.js" type=text/javascript></SCRIPT>
<script language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=menu/milonic/mmenuns4.js><\/scr"+"ipt>");
  else _d.write("<scr"+"ipt language=JavaScript src=menu/milonic/mmenudom.js><\/scr"+"ipt>");
</script>
<SCRIPT language=JavaScript src="menu/milonic/menu_data.js" type=text/javascript></SCRIPT>
to

Code: Select all

<script language=JavaScript src="menu/milonic/milonic_src.js" type=text/javascript></script>
<script language=JavaScript src="menu/milonic/mmenudom.js" type=text/javascript></script>
<script language=JavaScript src="menu/milonic/menu_data.js" type=text/javascript></script>
Even so, the menu code still has to load, so you ight still see a bref flash. I have to wonder, however, if in the real implementaiton of your intranet, as the new content loads, will the user even notice that brief re-rendring of the menu since the whole page will be changing?

You could, as you mentioned, put the menu in a table following the instructions on this sample page. However, no matter how you slice it, the menu code would still have to load each time you load a new page. So I don't know if that approach would get you anywhere.

Have you considered my other suggestion... applying an overfilter that would make the rendering of the main menu visually interesting? Like:

Code: Select all

overfilter="GradientWipe(WipeStyle=0, size=1.00, motion='Forward', duration=0.6)";
There are lots of other possibilities for filters. So, it's not a "flash" anymore... it's a cool effect that makes the user wonder how you did that and respect the wizardry with which you produced such a cool effect.

Cheers,

Kevin
Large
Advanced
Advanced
Posts: 15
Joined: Mon May 24, 2004 7:24 pm

Post by Large »

Hi Kevin,

Yeah that Overfilter gradient is quite cool, I'll use that !

Thanks !

Kind Regards
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

I've just gone through this post again and see that Kevin spotted the problem before me so now I look silly :oops: - Sorry Kevin.

Anyway, I'll just stay out of things from now on then and let you guys do it ;)

Glad you got things sorted in the end.

Cheers
Andy
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Andy wrote:I've just gone through this post again and see that Kevin spotted the problem before me so now I look silly :oops: - Sorry Kevin.
Hey, you don't have to apologize to me. The only time I mind someone looking silly is when it's me (which is all too often) ;) Besides, two minds on a problem are definitely better than one.
Anyway, I'll just stay out of things from now on then and let you guys do it ;)
You are certainly not allowed to stay out of things. If you do, I'll tell John, and he'll come over there and set you straight!

Cheers,

Kevin
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Already set...

AA 1074 PHX-DFW
AA 50 DFW-LGW arrives 0800 Sunday 30 May

You better behave, fella... :evil:
John
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Heh, If you think I'm picking you up from Gatwick think again matey. You better re-route to BHX, it's only a couple of miles away from here.

Or are you going to be watching the tennis at Wimbledon with Maz?

-- Andy
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Sheesh - makin' me switch to Continental...

AA 1060 PHX-ORD
AA 474 ORD-EWR
CO 26 EWR-BHX 0800 30 May
John
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Eeek, Continental :!:

No John, you must not do it. You must pick another Airline for reasons that I'm not allowed to say :D

Hmmm, think I'd better shut up before I get myself into trouble ;)

Cheers
Andy.
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Oh, *^%$#( ! Sorry, forgot all about that. Will check further.
John
Large
Advanced
Advanced
Posts: 15
Joined: Mon May 24, 2004 7:24 pm

Post by Large »

You guys are all mad, LOL !

Thanks for your help !

Kind Regards

Andy ( Large )
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Large wrote:You guys are all mad...
All of the rest of them are. I'm quite sane. Honest.
Large wrote:Thanks for your help !
You're welcome.

Kevin
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hey John,

United uses v5 of the Milonic menu... so why not fly the friendly skies? But don't go with American Airlines. If they'll use HM on their site, God knows what they'll put in their planes!

Kevin
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

Looks like I'll sit here watching British weather, eating moldy strawberries, but they say we have Happy Cows.

maz :roll:
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

kevin3442 wrote:All of the rest of them are. I'm quite sane. Honest.
Oh, brother. A long chat is in order... :P
kevin3442 wrote:United uses v5 of the Milonic menu... so why not fly the friendly skies? But don't go with American Airlines. If they'll use HM on their site, God knows what they'll put in their planes!
Yeah, I know, but all my free miles are on AA (still left over from my Apple days). Free vs. $1,400...$5,200 = no contest!

Of course, the next problem is what to do with the wolf. He'll want to go, too.

And what to do with Andy when I run off with Marty.

And... :P
John
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

AA use the menu so no worries - They use it internally and I'm sure that if we re-coded our menu for their www site, they'd probably use ours instead.
And what to do with Andy when I run off with Marty.
Oi Oi Oi - That's fighting talk is that :P
eating moldy strawberries
There's nowt wrong with moldy strawberries Maz, there is even a cure - Look :!:
1. Mix one part mature compost that includes some rotted manure (horse, cow or chicken) with five parts water. (Make sure that the material is fully composted, so potential pathogens associated with manures will be killed.)

2. Allow the mixture to sit and ferment in the shade for 10 to 14 days.

3. Filter the mixture through cheesecloth to remove chunks. The stuff can smell pretty bad, so don't do this in your kitchen!

4. If you must dilute it to stretch the batch, don't dilute by more than half.

5. Spray or coat upper and lower plant surfaces. Repeat every 2-3 weeks.
Heh, I wonder how long it will take Google to publish this page? Do a search for "eating moldy strawberries" in a few days and see what happens :)

Cheers
Andy
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

You forgot step 6...
6. Uproot the plants, throw the whole lot in the compost bin, then buy some strawberries at your local grocers. Eat them with the peace of mind brought by knowing that you didn't accidentally end up eating any chunks that might have circumvented step 3.
Kevin
Post Reply