Click here to Skip to main content
15,917,731 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have the following div table in my aspx page, it is working fine when I opened the page in IE, but not working in FF or Chrome.

What could be the problem? It is using the view port and javascript to display the menu when the mouse is focused on the link specified.
XML
<div class="menu" id="Projects" style="Z-INDEX: 101">
			<table border="0" cellspacing="0" cellpadding="0" bgcolor="#ffffff" id="menuTable">
				<tr>
					<td bgcolor="#999999" onmouseenter="mhHover('menuTable', 0, 'LineEffectOver')" onmouseleave="mhHover('menuTable', 0, 'LineEffectOut')">
						Add Project
					</td>
				</tr>
				<tr>
					<td bgcolor="#999999" style="border-top-style: solid; border-top-width: 0" onmouseenter="mhHover('menuTable', 1, 'LineEffectOver')" onmouseleave="mhHover('menuTable', 1, 'LineEffectOut')">
					  Edit Project
					</td>
				</tr>	
				<tr>
					<td bgcolor="#999999" onmouseenter="mhHover('menuTable', 2, 'LineEffectOver')" onmouseleave="mhHover('menuTable', 2, 'LineEffectOut')" style="border-top-style: solid; border-top-width: 0">
						 Delete Project
					</td>
				</tr>
			</table>
		</div>
Posted
Updated 3-Aug-10 2:00am
v3
Comments
E.F. Nijboer 3-Aug-10 7:54am    
Are you aware of the strange writing of "önmouseleave" you use?

1 solution

Use onMouseOver event instead of onMouseleave for showing a Div as Context menu when you place your mouse on the link.
 
Share this answer
 
v2
Comments
KishoreT 3-Aug-10 8:05am    
Hey It is working fine in IE but not in FF, I need the same to be displayed in FF also
Sandeep Mewara 3-Aug-10 8:15am    
heard of 'Cross-browser compatibility'? The one you are trying is not available in Firefox.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900