Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Non java script menus 2

Status
Not open for further replies.

warby1212

Programmer
Jun 9, 2003
183
AU
A couple of wise people on this forum mentioned to me that Javascript menus were a no no. Well, I would likt to replace mine, so how can I do it? I need drop menus with subtopics. If not javascript then how can I do it? [bigsmile]




Way away in Australia
 
actually, that link produces great menus but it seems very complicated (you need to add a whole lot of code for Internet Explorer). Is that what it boils dowmn to then? A choice between Javascript and complex css? Is there any other way?


Way away in Australia
 
If you want a complicated thing like a drop-down menu, you're going to have to encode that complexity - either in CSS, Javascript or both (or Flash or Java or some other inaccessible alternative). The only "other way" is to make your menus simpler.

Having said that, there are other menu resources out there:


-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
 
That's fantastic, thanks again. I love all this stuff!

It's great to get some perspective from you guys, I always feel like I'm just scratching the surface.

Cheers


Way away in Australia
 
There's a line in the beginning of the source code stating that you need an extra file for IE, if you download that it will work :)

"<!-- You will need this external csshover.htc file. -->
<!--[if IE]><style type="text/css" media="screen">body{behavior:url(/css/csshover.htc);}</style><![endif]-->"

cheers stephen


Way away in Australia
 
I have 2 questions ,both little dumb

[if IE]><style type="text/css" media="screen">body{behavior:url(/css/csshover.htc);}</style><![endif]

what language is this it can not be Javascript as it is not in Javascript Tags, and I thought there were no if statements in HTML.

Secondly

from which location that file is geting downloaded,
all I see the path /css/csshover.htc

 
Apologies for the late post :)

is a good menu I've seen recently that uses javascript but doesn't rely on javascript. It is very cross-browser compatible, very accessible and is xhtml 1.0 compliant. It is also easy to populate and customise and has some VERY cool features.

* keyboard navigation
* long submenus that scroll if they dont fit on screen
* highlights the menu item depending on what page you're on (basically tells you where you are)

With CSS and javascript disabled the menu is displayed as a series of links within nested lists (<ul><li><a href="">etc,etc...</a></li></ul>). This is what the Search Engine spiders get to see

Tony
[red]_________________________________________________________________[/red]
Webmaster -
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top