G
Guest
Can someone please tell me how I can get the following JavaScript to work
inside this datagrid!
What I'm trying to do is to have a layer that shows up with an image of an
employee when you onMouseOver an icon in the datagrid!
Some how I need each icon to have a different id that relates to an image
record in a database... At the moment I'm using Active Directory to pull the
users details from...
I would be really grateful if anyone could give me a hand with this or point
me in the right direction!
Thanks
<<CODE>>
<asp: Datagrid>
<Columns>
<asp:HyperLinkColumn HeaderText="" Text="<a href='#'
onMouseOver=MM_showHideLayers('Layer1','','show')
onMouseOut=MM_showHideLayers('Layer1','','hide')><img
src='../images/user.gif' border='0'></a>"></asp:HyperLinkColumn>
<asp:HyperLinkColumn HeaderText="Name" DataNavigateUrlField="Name"
DataNavigateUrlFormatString="{0}"
DataTextField="Name"></asp:HyperLinkColumn>
</Columns>
</asp: Datagrid>
<DIV id="Layer1" style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000
1px solid; Z-INDEX: 1; LEFT: 300px; VISIBILITY: hidden; BORDER-LEFT: #000000
1px solid; WIDTH: 120px; BORDER-BOTTOM: #000000 1px solid; POSITION:
absolute; TOP: 100px; HEIGHT: 130px; BACKGROUND-COLOR:
#ffffff"><asplaceholder id="phIMGpopup"
runat="server"></asplaceholder></DIV>
inside this datagrid!
What I'm trying to do is to have a layer that shows up with an image of an
employee when you onMouseOver an icon in the datagrid!
Some how I need each icon to have a different id that relates to an image
record in a database... At the moment I'm using Active Directory to pull the
users details from...
I would be really grateful if anyone could give me a hand with this or point
me in the right direction!
Thanks
<<CODE>>
<asp: Datagrid>
<Columns>
<asp:HyperLinkColumn HeaderText="" Text="<a href='#'
onMouseOver=MM_showHideLayers('Layer1','','show')
onMouseOut=MM_showHideLayers('Layer1','','hide')><img
src='../images/user.gif' border='0'></a>"></asp:HyperLinkColumn>
<asp:HyperLinkColumn HeaderText="Name" DataNavigateUrlField="Name"
DataNavigateUrlFormatString="{0}"
DataTextField="Name"></asp:HyperLinkColumn>
</Columns>
</asp: Datagrid>
<DIV id="Layer1" style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000
1px solid; Z-INDEX: 1; LEFT: 300px; VISIBILITY: hidden; BORDER-LEFT: #000000
1px solid; WIDTH: 120px; BORDER-BOTTOM: #000000 1px solid; POSITION:
absolute; TOP: 100px; HEIGHT: 130px; BACKGROUND-COLOR:
#ffffff"><asplaceholder id="phIMGpopup"
runat="server"></asplaceholder></DIV>