473,405 Members | 2,160 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Menu DHTML ?????

Moi
Hi i try to make simple DHTML menu but i have any little problem :-(
The problem is..... i hide the body of the menu when mouse is (normaly) out
of the body...but.... the event onmouseout is generated when the mouse out
from one of the entry of my menu......

someone can help me to understand why ?????

look this is my code:

<html>
<head>
<title>Document sans titre</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">

..ProMenu{
position:absolute;
left:100px;
top:100px;
width:200px;
height:66px;
z-index: 50;
visibility: visible;
}

..ProMenuHead {
position:relative;
left:0px;
top:1px;
width:200px;
height:22px;
z-index: 50;
visibility: visible;
background-color: #CCCCCC;
}

..ProMenuBody {
position:absolute;
background-color: #885599;
left:100px;
top:124px;
width:200;
padding-left:4;
padding-right:4;
padding-top:1;
padding-bottom:1
visibility;
z-index: 51;
visibility: hidden;
font-family: arial;
font-size: 12;
color: #ffffff;
z-index: 30;
}
..ProMenuBodyMask {
position:absolute;
background-color: #885599;
left:100-5;
top:122-22;
width:200+10;
height:400;
visibility:hidden;
font-family: arial;
font-size: 12;
color: #ffffff;
z-index: 48;
}

a.MenuPro
{
color:#ffffff;
text-decoration:none;
font-weight:bold;
}
a.MenuPro:hover
{
color:#ffffff;
text-decoration:underline;
font-weight:bold;
}

</style>

<script language="JavaScript1.2">
function Affiche(id) {
if (document.getElementById) {
document.getElementById(id).style.visibility="visi ble";
} else if (document.all) {
document.all[id].style.visibility="visible";
} else if (document.layers) {
document.layers[id].visibility="visible";
} }

function Masque(id) {
if (document.getElementById) {
document.getElementById(id).style.visibility="hidd en";
} else if (document.all) {
document.all[id].style.visibility="hidden";
} else if (document.layers) {
document.layers[id].visibility="hidden";
} }

</script>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if
((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>

<body>

<div id="Menu" class="ProMenu" >
<div id="Head" class="ProMenuHead" onMouseOver="Affiche('MBody');">
<div align="center"><strong><font
color="#FFFFFF">MENU1</font></strong></div>
</div>
</div>
<div id="MBody" class="ProMenuBody" onMouseOut="Masque('MBody');">
<p>
<a href="#" class="MenuPro">truc</a><br>
<a href="#" class="MenuPro">chose</a>
</p>
</div>
</body>
</html>

Jul 20 '05 #1
1 1964
On Wed, 2 Jul 2003 17:05:27 +0200, "Moi" <mo*@moi.com> wrote:
Hi i try to make simple DHTML menu but i have any little problem :-( <a href="#" class="MenuPro">truc</a><br>
<a href="#" class="MenuPro">chose</a>


The reader is going to have problems as well if there is no Javascript.
General rule: first get the HTML links right, then add the Javascript
decoration.

--
Stephen Poley
Barendrecht, Holland
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Richard | last post by:
The style sheet shown below is from the suckerfish vertical menu. http://www.htmldog.com/articles/suckerfish/dropdowns/example/vertical.html I've added in a few minor changes to color code the...
3
by: Gleeman | last post by:
Dear Sir/Madam I'm an old dog of VB 6.0. I've mastered the new tricks of .Net Form-based programming rather OK. I now need to focus on web development. My Web pages need not be as glamerous as...
10
by: Gernot Frisch | last post by:
Hi, I have found some menu functions. It works quite well, but how can I replace it with a simple <a href> if javascript is turned off? I reduced my code to:...
2
by: Brian | last post by:
Hello, I want to design some menus for websites with submenus. I'd like to learn the code myself and I was wondering a good place to pick up on some tips on how to design them. Also, is there...
2
by: RWD | last post by:
I am trying to figure out how to change the target frame in my hyperlink on a DHTML menu. The menu is in one frame and the target frame is called "main" The code is below: Thanks in advance...
2
by: Alexander Stuckenholz | last post by:
Hello. I have a problem with the dhtml-menu from http://www.brainjar.com/. Everything works fine with IE so far. But if i use the menu with firefox the menu opens, but if i move the mouse...
9
by: cmac | last post by:
Greetings, I love the HV menu and have been uning it for a long time. I recently was asked how to make a page for my wife (wedding coming up soon) and my wife would like to have 2 ways to...
5
by: Sura | last post by:
Hi I have designed a simple DHTML menu which comes over a flash animation when it appears. I have set the window mode as transparent in the flash project. This menu is showing fine when seen...
0
by: news.msdn.com | last post by:
Hi, I have the following requirement. I need to create a DHTML menu control in ASP.NET For that these are the specs provided. 1) I have store the structure of the menu system in a...
1
by: Joe | last post by:
Hi, I am using asp.net Menu component to create a horizontal drop-down menu. Generally if when use DHTML menus like http://www.twinhelix.com/dhtml/popupmenu/, if you are embed a flash or...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.