PDA

View Full Version : Menus without Using DHTML


shripriya
28.07.2001, 03:43
We have to build a ASP Menu site with a horiztontal menu containing say 5 menu items.
On mouse over of each menu item, submenu item will be shown as drop down under each item. We are facing a problem, when there is a select box (dropdown box) on the page and when we are moving the mouse over the horizontal menu item. The problem is that the dropdown menu goes behind the dropdown box becuase of which we are not able to see the menu item properly. We have to build our menu wihtout using style sheet or DHTML.
Please, if there is a way of acheiving this without DHTML, pelase do reply us immediately. Thank you.

pshz
28.07.2001, 06:17
Did you try assigning a higher z-index?

shripriya
28.07.2001, 06:39
<BLOCKQUOTE id=quote><font size=1 face="Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Did you try assigning a higher z-index?


<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Arial, Helvetica" size=2 id=quote>
No, please tell me how to use Z- index.

pshz
28.07.2001, 06:48
(just an example)
<STYLE>whatever.x {
Z-INDEX: 1; LEFT: 0px; POSITION: absolute; TOP: 0px
}
</STYLE>

whatever.x can be an image or any tag - div, button, span etc. You assign a class to the tag. You may choose to set the z-index value in the tag's style too. I always assign a z-index=100 (or z-index: 100) to buttons for example, thought that might be exaggerated :))

Jeff
28.07.2001, 09:57
well, I don't know any server-side languages, but the problem you have described is a common one, and the only way to overcome it is to set the visibility of the element (the drop-down box). To set the visibility, it CAN be overcome by dhtml.

Check out this link for your info:
[url:9hakhrdj4j]http://www.webreference.com/dhtml/diner/seethru/[/url:9hakhrdj4j]

Hope this helps :)

Sergi
28.07.2001, 15:50
again, please read the Coolmenus FAQ. nothing to do with z-index! thanx

<font color=green>
Sergi: [url="http://www.meddle.f2s.com"][site][/url:z44ppnf9o2] || [url="sergi@dhtmlcentral.com"][e][/url:z44ppnf9o2]
</font id=green>

pshz
31.07.2001, 23:26
hmmm, I just installed Netscape so as to know what I was missing :))
Good thing that you made that workaround, it does the job nicely.