Click here to Skip to main content
15,891,204 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a 5 linkbuttons. when user puts cursor on the link button an image should be displayed in the right side... how can we do this sir......

Example:

1. PURNA
2.Vishakhi

3.CMR
4.Srinivasa
5.LOR palace
Posted
Updated 2-Aug-12 19:17pm
v2

Try this


XML
<script type="text/javascript">
          function showImage()
          {
              document.getElementById("image").style.display="inline";
              document.getElementById("image").src = 'your image path';
          }
           function hideImage()
          {
              document.getElementById("image").style.display="none";
              document.getElementById("image").src = '';
          }
   </script>


XML
<asp:LinkButton ID="LinkButton1" runat="server" OnMouseOver="showImage();" OnMouseOut="hideImage();">LinkButton</asp:LinkButton>
        <img src="" id="image" alt="" width="100px" height="50px" style="display:none;" align="right"/>



Thanks
Ashish
 
Share this answer
 
v3
Comments
rajarajeswarib 3-Aug-12 2:02am    
sir, thanks for reply. the code is working fine but it is displaying below the linkbutton i want to display the image on right side... how to do this sir..
rajarajeswarib 3-Aug-12 2:04am    
i want to display the image on right side of the page on mouse over.. please help me....
AshishChaudha 3-Aug-12 2:06am    
I updated my solution, Please try something with your self too. Don't suppose all required solution from us.. Marked solved if the solution fullfill your requirement so that other can refer to the solution.

Thanks
Use jquery mouseover() event to show the image in you link button.
 
Share this answer
 
 
Share this answer
 
v2
XML
links a
{
    background:none;
}
links a:hover
{
    background-image: url('imgPath');
    background-repeat: no-repeat;
    background-position: right;
}
<div class="links">
    //put your links here
</div>
 
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