I am having a very odd problem with a website I run. The menus have recently been changed to use javascript and some people are reporting that when they first use the site, Instead of a nicely aligned list of items each in its own light-blue box. They are seeing a straightforward <li> list with no styles.
The biggest problem is that I think it is only seen the first time someone goes to the site and so I can't see it!!!
So if anyone could just look at the site Lenzie.org.uk and report what they see (and the browser they are using) I would very very much appreciate it!!!
Question
Unless I've fixed it, the question is then: "How is it possible for a browser to load the UL list as if it hasn't seen the style sheet when as far as I can tell the style sheet is clearly visible and downloaded by any browser that can view the site?
Technical stuff
The menu is a <ul><li>.. list. The style is controlled by a css "/styles/menu.css", and then some java loads "js/menu.js" and hides all the sub-menus leaving just the main items until the mouse hovers over it. (Except on pages with frames where I have to use a very different menu layout)
Unfortunately, loading the UL list is very clunky, as the huge list appears, and only when the whole page has loaded, does the javascript kick in to tidy it up. So I now use a cookie to "decide"** if someone has javascript and If the cookie is set, the PHP code sets the div for the "visibility property of theUL list " to "hidden", which stops the enornous UL list being loaded and messing up the whole screen.
Thanks in advance!
**The logic is: If you have a cookie set, I assume you have javascript and so don't want the menu to be innitially visible - but I leave a <noscript>lin k where the cookie is set to "visible"
The biggest problem is that I think it is only seen the first time someone goes to the site and so I can't see it!!!
So if anyone could just look at the site Lenzie.org.uk and report what they see (and the browser they are using) I would very very much appreciate it!!!
Question
Unless I've fixed it, the question is then: "How is it possible for a browser to load the UL list as if it hasn't seen the style sheet when as far as I can tell the style sheet is clearly visible and downloaded by any browser that can view the site?
Technical stuff
The menu is a <ul><li>.. list. The style is controlled by a css "/styles/menu.css", and then some java loads "js/menu.js" and hides all the sub-menus leaving just the main items until the mouse hovers over it. (Except on pages with frames where I have to use a very different menu layout)
Unfortunately, loading the UL list is very clunky, as the huge list appears, and only when the whole page has loaded, does the javascript kick in to tidy it up. So I now use a cookie to "decide"** if someone has javascript and If the cookie is set, the PHP code sets the div for the "visibility property of theUL list " to "hidden", which stops the enornous UL list being loaded and messing up the whole screen.
Thanks in advance!
**The logic is: If you have a cookie set, I assume you have javascript and so don't want the menu to be innitially visible - but I leave a <noscript>lin k where the cookie is set to "visible"
Comment