Click here to Skip to main content
15,916,835 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

When mouse over on the image or imagebutton the particular div have to show. I have a menu in that div like submenu. Please help for this problem.
Posted

it's too simple...

just write the code:

<img arc="your image source" onmouseover="dv.style.display='inline';" onmouseout="dv.style.display='none';" />
 
Share this answer
 
Comments
devausha 28-Jan-13 3:53am    
yes, I already try it. But I want to select something on the div. The div has some menuitems. But I can't select it use this method. The div is disappear when the moue out. I want the div act like as sub menu
Use Jquery.
JavaScript
 $(document).ready(function()
{
$('#imageId').mouseover(function()
{
$('#yourDivID').show();
});
});


Please make sure that you should use jquery library to implement jquery script.You can download jQuery library from here http://jquery.com/[^].Hope this helps.
 
Share this answer
 
v2

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