Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:22

Forced Milonic link appears and disappears. Why?


Poster: vikenk
Dated: Saturday December 10 2005 - 16:01:59 GMT

Hello all,

Well...I've uploaded the latest redesign of a website I'm working on. When the site fist loads, the link to the home page initially shows HOME, then flashes to MILONIC, then back to HOME. I've got the required link on the homepage, and I've added the <div> provided by Milonic as well. But every time the page loads, I get the forced Milonic link quickly, then it disappears. You can see it here:

http://www.sayatnova.com

However, I've got the menu installed in another site I'm working on and that doesn't happen, even though it's configured the same - Milonic <div> and added link to Milonic. You can see the working example here:

http://www.ssaes.org/test_site

I'd like to keep the Milonic link from flashing like that when the sayatnova.com site loads. Any ideas?

Viken K.


Poster: Ruth
Dated: Sunday December 11 2005 - 1:58:35 GMT

Hi,

It seems to be some kind of timing issue, and it may be related to the frames. I now you have the menu completely in one frame, but it may be the frameset having to load completely, then again, I might not know what I'm talking about :lol:

I know you always put the required links on your pages. Try adding a hidden div up at the top of that frame to test and see if that does it. If it doesn't I think it would have to be something to do with timing and the frameset, because if you notice the link changes correctly once all the stuff in that frame is completely loaded.

Ruth


Poster: vikenk
Dated: Sunday December 11 2005 - 6:29:05 GMT

Ruth,

I seem to have solved it. To test whether or not it had to do with frames, I opened just the home page, taking the frame issue out. It still happened with the stand-alone home page. It does seem to be a timing issue, however. I thought it may have to do with the images causing the page to load slowly so I added a javascript to load blank dummy images then swap to the real image, making the initial page load faster. The problem was still there.

Then I thought it may have to do with the added line in the Milonic header that detected Netcape 4. I took that out, then uploaded the page. It still happened.

I also noticed that the menu was the first thing that appeared before anything else on the page, so I got an idea. I moved the Milonic scripts from bring the first item in the <head> to the *last* item in the head, just before the closing tag. It worked. Now the link does not appear and disappear. Check it out if you wish. http://www.sayatnova.com

It seems as if positioning makes a difference? I'm not sure if it does, or if it should, but it seems to work for me. I've always wondered what order browsers load the page. Does it just do it top-to-bottom or do they give more weight to certain things? I'll have to Google that.

As an aside, the menu is *not* in a separate frame :>) The old style site's menu was in a separate frame. I'm trying to redesign the site to go totally frameless and validate to the HTML Strict standard. The fist step was finding a new menu. I found the Milonic menu.

The next step is to remove the left-side frame, but still retain the site's look. It's not as easy as it seems. The old menu system is actually really great and highly configurable and does many of the same things as the Milonic menu, but it had a major weakness: it *had* to be the last item to load in the page, even after the images. If you had a site with lots of images (like sayatnova.com), it could take a long time before the menu would appear. That meant I was almost required to use the menu in frame. That's what was so great about finding the Milonic menu!

Thanks for taking a look!

Viken K.
http://home.comcast.net/~vikenk
http://www.sayatnova.com


Poster: Ruth
Dated: Sunday December 11 2005 - 16:09:52 GMT

:oops: I never even noticed the placement of the call for the menu files. I would have told you to put them the 1st item after the body tag. Take a look at the download version, it tells you how to place it in the index page html coding.

I'm glad you found the problem, and thanks for detailing the steps. That's a nice guide for beginners learning to test when there is a problem :)

Ruth