DataGrid and JavaScript

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"><asp:placeholder id="phIMGpopup"
runat="server"></asp:placeholder></DIV>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top