ASP.NET - how to set image for selected text in

Asked By mani on 20-Jan-12 06:34 AM
hi..i am developing forum application..
when user posting some text paragraph, they will upload image to displaywhen  mouseover on that text.. so how can i set that image on certain text when posting paragraph..
so i need to set image for that purticular text..anyt help??
Sri K replied to mani on 20-Jan-12 06:39 AM
To show the selected Text using jQuery on the Mouse Hover of the paragraph.

$(document).ready(function () {
       var selectedText = "abc";
       $('.paraClass').hover(function () {
         $(this).attr('title', selectedText);

dipa ahuja replied to mani on 20-Jan-12 07:13 AM
<asp:Image ID="imgpopup" runat="server" ImageUrl="~/1.bmp" />

<cc1:HoverMenuExtender ID="hm1" runat="server" TargetControlID="TextBox4" PopupControlID="imgpopup"
  PopupPosition="Right" />

<asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
mani replied to dipa ahuja on 20-Jan-12 07:20 AM
hi..thanks for u r reply..
but my requirement is.
i will type paragraph in my textbox and save in my table..
so when i typing paragraph i will save image for some text
i will select some text and save image in table..
after saved when i mouse over on that text i need to display appropriate image for that text ???how to do that??
i hope u will requirements..