473,587 Members | 2,490 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

List menu not displaying properly

12 New Member
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"
Oct 20 '08 #1
10 2175
David Laakso
397 Recognized Expert Contributor
No issue this end in XP IE/6 or IE/7, nor in Mac OS X 10.4.11 latest versions Opera, Safari, SeaMonkey, Camino, and Firefox.
Oct 20 '08 #2
lenzie
12 New Member
David,

that is about 6x more checking than I ever expected anyone to do and a tremendous relief to know that it seems to be OK (fingers crossed).

Thanks!!
Oct 20 '08 #3
Markus
6,050 Recognized Expert Expert
Yep, works wonderfully on Chrome. I should, however, note that this website is dangerous to epileptics.

Just joking.
Oct 20 '08 #4
labmonkey111
44 New Member
I've had problems in IE7 before with the a page loading completely wrong the first time. Then I hit refresh and it'd be all ok. It only happened about one in ten times (made any debugging attempts a pain). Never did figure out why. I've also seen the opposite, it loads right the first time, but if you hit refresh, it'd be all messed up. I'd say its just a sporadic IE bug and there isn't much you can do about it.
Oct 20 '08 #5
lenzie
12 New Member
Yep, works wonderfully on Chrome. I should, however, note that this website is dangerous to epileptics.

Just joking.
Markus ... Yep I try to keep an ironic concordance between the exciting life of this commuter village and the website. You may note that we've had our first big news in around a year ... a big puddle!

The only thing that keeps me sane is talking to myself on the forum!

BUT SERIOUSLY.

As I've no other experience with PHP, MySQL, javascript, HTML, CSS, RSS, XML, PICT, PHPPW, journalism, photo-journalism, internet-law, website publicity, security, digital photo-editing, except a few odd evenings during the last 18months ... any helpful advice (even negative comments) on styles would be much appreciated.
Oct 21 '08 #6
Markus
6,050 Recognized Expert Expert
Keep the colours neutral and complementing. Bright colours burn my eyes. :<

But, as you're not really a web developer, we shan't grill you.
Oct 21 '08 #7
lenzie
12 New Member
Yep, works wonderfully on Chrome. I should, however, note that this website is dangerous to epileptics.

Just joking.
Markus ... thanks for comment, and of course, the colours were a bit slapdash yes a bright yellow box probably was out of keeping with the "Jam and Tarts" village (not that I know any tarts in the village mind you!)

So I've toned down the bright yellow box to a kind of lemon curd colour, turned the bright blue links into sombre blue-rinse tone and I've created a new style "highlight" ... which is a dull red!

I also tried turning the titles a sort of greyish colour .... but that didn't work so they are now a subtle dark-pottery colour!

Thanks!
Oct 21 '08 #8
lenzie
12 New Member
Keep the colours neutral and complementing. Bright colours burn my eyes. :<

But, as you're not really a web developer, we shan't grill you.
Markus, Please Do "grill me"!

I've seen this blasted website so many times I don't see what is there anymore ... just what I think I put there. In fact, if I'm honest, I've never changed the styles from the original some 18months ago and I've only just discovered what those funny ".header tag" things are in my style sheet and now I've kind of worked out how to change a style in one section of one page without affecting every other section of every other page.

Then yesterday I discovered that changing the document type changed the styles ... not to mention IE!

I suppose what I really ought to have is a separate style sheet for each of the sections of the page with a " .contents h1 {color:dazzle-yellow;}" and ".games h1 {color: starburst101-yellow;}

... which reminds me, is there a difference between using a class tag and an id tag in the way the properties are inherited, interpreted, (botched by IE)
Oct 21 '08 #9
Markus
6,050 Recognized Expert Expert
It's looking better, actually. The Latest link color isn't so blinding. I'd try and keep the colors on your page to a maximum of 3. I'd change the menu on the left so the colors are something like the Latest link's color. Just my input.
Oct 21 '08 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

5
1985
by: Derek | last post by:
Let's say I have a dynamic list/menu, which gets its values from a database table, for example a list of contact people where the value is an ID number and the label is the name. However, if the value the user wants is not in the list I would like to place a hyperlink which will... (1) open a small window, with an ASP form to allow the user...
4
1609
by: Brian | last post by:
How can I use javascript to select Items in a List/Menu? For example: (value1, value2) will select value1 and value2 in a list menu....
4
13019
by: fizzyfozzy | last post by:
Hi, I am trying to figure out how to show or hide a selection of divs on my page depending on what is selected from a list/menu item, using css & javascript. I have tried to use the script listed here: http://www.thescripts.com/forum/thread88791.html but have been uable to customise it to my needs and could do with some help. My form is...
4
6489
by: TechnoAtif | last post by:
Hi ALL I have entered some array values using checkboxes into mysql database through a form. Next iam creating a searchpage where all those cateogories inserted through checkboxes has to be retrieved using list/menu box. When i check only a single checkbox to insert the checked category ,selecting that category through list box gives out the...
4
3389
by: jmartmem | last post by:
Greetings, I have an ASP page containing a Record Insertion Form with a number of fields (mostly text fields and list/menu fields) linked to an Access database. I've created an onsubmit behavior to validate the form but this validates only the text fields. I'm unsure how to similarly validate the list/menu fields; specifically, to create a...
16
4921
by: stevedude | last post by:
CSS newbie again. I have a problem trying to get coffee mug images within anchor tags to center with my link text for a vertical list menu. If I use the horizontal/vertical properties of "background" or "background-image", the positioning only works with specifying pixels. If I specify the vertical position in pixels, the image gets cut-off...
5
1874
by: jmartmem | last post by:
Greetings, I am using Dreamweaver CS3 to design an ASP page that contains an Insert Record Form. Within this form are two list/menu form fields that I would like to "synchronize". In other words, let's say one list/menu is where the user selects "Program Name" and a second is for selecting "Project Name". If the user makes a selection from the...
2
2370
by: tamasu | last post by:
Hi, I am retrieving a selected item from a list/menu component on an HTML page. The said value is passed as a parameter to a method initiated through <jsp:useBean. I am aware that when the user selects an item from the list/menu an onChange event is triggered. I have handled this event by a javascript function.
1
2588
by: amel86 | last post by:
hello everybody, i have a problem in my system related to list menu dependent. i want a simple list menu dependent that when we select A, it show B, when select B it show C and so on. If possible, i want write down all data in option list menu like below: <option value="test"/>Test</option> I mean i dont want the value store at...
0
7923
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7852
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8349
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7974
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8221
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
3845
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3882
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2364
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1455
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.