ASP.NET - hi..need help to develope forum application

Asked By mani on 19-Jan-12 01:31 AM
hi..i am developing forum application..i need to set image in text and when i mouse over that text i need to display that image in popup..any help??
Jitendra Faye replied to mani on 19-Jan-12 01:34 AM

A simple script that allows you to launch popup window on mouseover and close on mouseout.Cool script to open an image

TRy rhis example-


<script language="JavaScript">
/*
Pop Up New Window
Author: Narayan Chand Thakur
Source: http://ncthakur.itgo.com/
*/
<!--
function openWindow(url, name)
{
myWin = window.open("","nCt", "left=0,width=272,height=54,status=no,
toolbar=no,menubar=no,scrollbars=no");
myWin.document.write("<head><title>Example</title></head>");
myWin.document.write ("<BODY><img src=yourimage.gif>");
myWin.document.write ("</BODY></HTML>");
myWin.document.close()
}

function closeIt(){
if (!myWin.closed)
myWin.self.close()
}
//-->
</script>
<a href="javascript:void()"
   onmouseover="openWindow()"
   onmouseout="closeIt()"
   onClick="return false"><b>EXAMPLE</b></a>

Let me know.

mani replied to Jitendra Faye on 19-Jan-12 01:40 AM
hi..my requirement is i need to get image and save for that purticular text only..and when i mouseover that text i need to show image in popup..so  when i type that text how can i sava image for that purticular text???
Jitendra Faye replied to mani on 19-Jan-12 01:47 AM
The code which I have sent you, that is for link.


In link also you can display text, as I am showing . just remove underline only.
smr replied to mani on 19-Jan-12 01:48 AM
hi

when ur saving the file in Image folder Pmap ,use this format

lbluploadresume.Text=Session["uid"].ToString()+"_"+Path.GetFileName(File1.PostedFile.FileName);


if
(File1.PostedFile!=null)

{

File1.PostedFile.SaveAs(Server.MapPath("~/Documents/"+lbluploadresume.Text));

///s=Server.MapPath("~/Documents/"+Label1.Text.ToString());

}

follow
http://forums.asp.net/t/1196000.aspx/1

dipa ahuja replied to mani on 19-Jan-12 02:38 AM
Use ajax hovermenuExtender

<asp:Image ID="imgpopup" runat="server" ImageUrl="~/1.bmp" />

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

<asp:TextBox ID="TextBox2" runat="server"/>