hi every one i have a menu li and ul based the problem is when any specific category in the li is hovered the li or the sub-cat items appear but as i move my mouse over the sub-cat or level two li it disappears can any one help in this
here is the link you can watch the left menu here link
here is the code -
var menuids=["suckertree1"] //Enter id(s) of SuckerTree UL menus, separated by commas
-
function buildsubmenus(){
-
for (var i=0; i<menuids.length; i++){
-
var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul")
-
for (var t=0; t<ultags.length; t++){
-
ultags[t].parentNode.getElementsByTagName("a")[0].className="subfolderstyle"
-
if (ultags[t].parentNode.parentNode.id==menuids[i]) //if this is a first level submenu
-
ultags[t].style.left=(ultags[t].parentNode.offsetWidth-2)+"px" //dynamically position first level submenus to be width of main menu item
-
else //else if this is a sub level submenu (ul)
-
ultags[t].style.left=ultags[t-1].getElementsByTagName("a")[0].offsetWidth+"px" //position menu to the right of menu item that activated it
-
ultags[t].parentNode.onmouseover=function(){
-
this.getElementsByTagName("ul")[0].style.display="block"
-
}
-
ultags[t].parentNode.onmouseout=function(){
-
this.getElementsByTagName("ul")[0].style.display="none"
-
}
-
}
-
for (var t=ultags.length-1; t>-1; t--){ //loop through all sub menus again, and use "display:none" to hide menus (to prevent possible page scrollbars
-
ultags[t].style.visibility="visible"
-
ultags[t].style.display="none"
-
}
-
}
-
}
-
if (window.addEventListener)
-
window.addEventListener("load", buildsubmenus, false)
-
else if (window.attachEvent)
-
window.attachEvent("onload", buildsubmenus)
-
-
<?
-
function createMenu($parId){
-
$q="select
-
c.cat_id,
-
c.parent_id,
-
cd.cat_name
-
from
-
".CATEGORY." c,
-
".CATEGORY_DESCRIPTION." cd
-
where
-
(c.cat_id=cd.cat_id)
-
and
-
(c.parent_id='$parId')";
-
$r=execute($q);
-
while($row_cat=mysql_fetch_array($r)){
-
$q_s="select c.cat_id, cd.cat_name from ".CATEGORY." c, ".CATEGORY_DESCRIPTION." cd where (c.cat_id=cd.cat_id) and c.parent_id='$row_cat[cat_id]'";
-
$r_s=execute($q_s);
-
$noRows=mysql_num_rows($r_s);
-
if($noRows > 0){?>
-
<li><a href="products.php?bingo=<?php echo $row_cat['cat_id'];?>" class='WhiteNormal'> <strong>></strong><?php echo " ".$row_cat['cat_name'];?></a>
-
<ul>
-
<?php createMenu($row_cat['cat_id']);?>
-
</ul>
-
</li>
-
<?php }else{?>
-
<li><a href="products.php?bingo=<?php echo $row_cat['cat_id'];?>" class='WhiteNormal'><?php echo " ".$row_cat['cat_name'];?></a></li><?php
-
}
-
}//end while
-
}?>
-
<tr>
-
<td align="center" valign="middle">
-
<table cellspacing="0" cellpadding="0" border="0" align="center" width="230" class="menuHeader_left_top ">
-
<tr>
-
<td align="right" valign="middle" width="40"><img src="images/img-019.png" width="11" height="11" border="0" align="middle" alt="none" /></td>
-
<td align="left" valign="middle" class="text_14_grey_dark_bold arrow_bg"> CATEGORY</td>
-
</tr>
-
</table>
-
</td>
-
</tr>
-
<tr>
-
<td align="center" valign="middle">
-
<table cellspacing="0" cellpadding="0" align="center" width="234">
-
<tr>
-
<td align="center" valign="middle">
-
<table cellspacing="0" cellpadding="0" border="0" align="center" width="234">
-
<tr>
-
<td align="left" valign="middle" width="234">
-
<div class="suckerdiv">
-
<ul id="suckertree1">
-
<?php
-
createMenu(0);
-
?>
-
</ul>
-
</div>
-
</td>
-
</tr>
-
</table>
-
</td>
-
</tr>
-
</table>
-
</td>
-
</tr>
-
-
/*SUCKER DIV MENU*/
-
.suckerdiv ul{
-
font-family: Arial, Helvetica, sans-serif;
-
font-size: 14px;
-
margin: 0;
-
padding: 0;
-
list-style-type: none;
-
width: 234px; /* Width of Menu Items */
-
background: #ffffff;
-
z-index:1;
-
}
-
.suckerdiv ul li{
-
font-family: Arial, Helvetica, sans-serif;
-
font-size: 14px;
-
position: relative;
-
line-height:29px;
-
z-index:1;
-
}
-
-
/*Sub level menu items */
-
.suckerdiv ul li ul{
-
font-family: Arial, Helvetica, sans-serif;
-
font-size: 14px;
-
position: absolute;
-
visibility: hidden;
-
width: 234px; /*sub menu width*/
-
top: 0;
-
z-index:1;
-
border:1px solid #ffffff;
-
border-top-color:#e8e8e8;
-
border-bottom-color:#e8e8e8;
-
}
-
/* Sub level menu links style */
-
.suckerdiv ul li a{
-
font-family: Arial, Helvetica, sans-serif;
-
font-size: 14px;
-
font-weight:normal;
-
display: block;
-
overflow: auto; /*force hasLayout in IE7 */
-
color:#191c2b;
-
text-decoration: none;
-
width:232px;
-
height:29px;
-
z-index:1;
-
border:1px solid #ffffff;
-
border-right-color:#e8e8e8;
-
border-left-color:#e8e8e8;
-
background:url(../images/img-014.png) 8px 25px no-repeat;
-
}
-
.suckerdiv ul li a:visited{
-
font-family:Arial, Helvetica, sans-serif;
-
font-size: 14px;
-
color: #333333;
-
}
-
.suckerdiv ul li a:hover{
-
font-family: Arial, Helvetica, sans-serif;
-
font-size: 14px;
-
width:234px;
-
height:29px;
-
border:1px solid #FFFFFF;
-
border-left-color:#e8e8e8;
-
/*background-color: #FF9900;background-color: #FFD89C;*/
-
}
-
.suckerdiv .subfolderstyle{
-
font-family: Arial, Helvetica, sans-serif;
-
font-size: 14px;
-
background:url(../images/img-014.png) 8px 25px no-repeat;
-
z-index:100;
-
}
-
/* Holly Hack for IE \*/
-
* html .suckerdiv ul li { float:left; height: 1%; z-index:2000;}
-
* html .suckerdiv ul li a { height: 1%; z-index:2000;}
-
regards,
Omer Aslam
1 3791
i i have found the problem it was not in this menu but i had another top menu named as lavalamp i downloaded it from here lavalamp
it is conflicting with the left category menu is ther any option i can fix it
regards,
Omer Aslam
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Macamba |
last post by:
Hi all,
I am currently developing a website for a voluntary organisation. It is
my first step in website development. The dynamic menu I developed has
some bugs, which I addressed in another post. In this post I want to ask
you why my code behaves differently in IE, while it behaves like I
expect in Mozilla and Opera. What I would like to...
|
by: vikram.cvk |
last post by:
Hello Experts,
Im trying to design a CSS vertical drop down menu which should have the
following functionality.
Home
About Us
|
-->Overview
|
by: TycoonUK |
last post by:
Hi,
As I do not have IE7 on my computer, I was wondering if there is a
fault in my CSS Menu when using IE7.
Please can someone look at my site - http://www.worldofmonopoly.co.uk
and tell me if it works, and if it does not, tell me why it does not
work.
Thanks.
|
by: tonsi |
last post by:
I have a css menu that works great in IE7 and other browser but when you check it in IE 6 it only shows the first dropdown. I am not that great at css but ANY help would be greatly appreciated.
here is the site I am having trouble with.
http://www.866hdrental.com/new_site/index.htm
here is the navigation css:
.moveover {
text-align:...
|
by: Ravi Joshi |
last post by:
The menu on my site works fine in IE6 and Firefox.
In IE7, there is a problem with the menu: when you mouse over the various main catagories, the sub-catagories all appear to the right as they should; however, as soon as you mouse towards any but the TOP sub-catagory, all those sub-catagories still view there.
It will work first time quite...
| |
by: namratha247 |
last post by:
Hi,
Can anybody please help me with this problem.
In my application, I'm using Menus. and the CSS for the menu is as given below
ccMenu.css
/* Root = Horizontal, Secondary = Vertical */
ul#navmenu {
|
by: tceramesh |
last post by:
Hi Friends,
I Created one drop down menu by using CSS. It is perfect in Firefox but in IE it creates some problem.
in the header section the drop down menu appear,, below that i used one table to put one list menu box..
The problem is, when we mouse over the drop down menu , list box appears in front of the drop down...
|
by: rahullko05 |
last post by:
i have designed a menu list program in which i'm facing a problem where the last li item (white crappie) shifts down when i hover mouse pointer to just above li item (ozrack bazz) of white crappie instead (white crappie) li item should be to be sticked just below (ozrack bazz) li item without a down shift.
i request u all to kindly sort the...
|
by: jerry101 |
last post by:
Hi,
I've been working on a horizontal drop down menu today, and I can get it to display perfectly in everything bar IE6.
Basically instead of them lining up horizontally, they line up vertically instead.
And this only happens when I don't give the LI in the menu list and fixed width, which I don't want because if I have a fixed width the...
|
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...
|
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...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
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...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
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...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |