Click here to Skip to main content
15,894,343 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i want display popup window on mouseover and mouseout event
Posted
Comments
Sergey Alexandrovich Kryukov 5-Jul-12 13:38pm    
Bad idea. Pop-ups are generally bad, but this "feature" would certainly drive the user crazy, not many will come back to your site.
--SA

1 solution

You have hardly put an effort in posting what you are trying to do! :doh:

Please be specific and formulate your question properly from next time.
For now, here is a sample that would give you an idea of how to implement it, use the same logic where ever you want to:
1. Inject Javascript function on mousehover & mouseout of the link in a grid row.
2. Using JavaScript, show a div that contains the needed details(image here) when you hover your mouseover that row
3. Using JavaScript, hide the div onmouseout.

For injecting JS to a control from server side, do something like:
C#
// Show div
myTextbox.Style.Attributes.Add("onmouseover", "ShowDiv(this);");

//Hide div
myTextbox.Style..Attributes.Add("onmouseover", "HideDiv(this);");


Try!
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 5-Jul-12 13:40pm    
Just a not, OP requests not for div, but for pop-up, which is certainly a dirty UI abuse, would drive the customers crazy. Why doing it at all? That's why, I decided not to answer, just put a comment (please see).
--SA

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