Thanks for the responses, guys.
The main problem with the script is when JavaScript is disabled, as Bennie
mentioned. I thought I had the perfect workaround by only displaying the top
level links if JavaScript was disabled, and it looked and worked perfectly,
stopping the corruption of the page.
Unfortunately I did this by using an additional style sheet that was embedded
in a <noscript> tag in the <head>...
<noscript><style type="text/css">@import url("noscript.css");</style></noscript>
The new CSS replaced the styles that would have been setup by the JS to make
the static menu appear similar to the dropdown. However, the W3C validator
reported it was invalid to embed <style> in <noscript>, so if anyone has any
suggestions to get around this issue, I'd be very grateful.
Antony
DISCLAIMER: The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee. Access to this message
by anyone else is unauthorised. If you are not the intended recipient,any
disclosure, copying, or distribution of the message, or any action or omission
taken by you in reliance on it, is prohibited and may be unlawful.
Please immediately contact the sender if you have received this message in
error.
For the full disclaimer please access http://www.salford.gov.uk/e-mail Thank
you.
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************