Http://www.cnblogs.com/cloudgamer/
Above is a front-end special effect blog
Move the mouse to enlarge the image
<!Doctype HTML public "-// W 3c // Dtd xhtml 1.0 transitional // en ""Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML xmlns ="Http://www.w3.org/1999/xhtml">
<Head id = "head1" runat = "server">
<Title> JavaScript test </title>
</Head>
<SCRIPT type = "text/JavaScript">
//*******
//Move the mouse to display the large image
//*******
Function Yiru (t ){
VaR Ei = Document. getelementbyid ("big_image ");
EI. style. Display = "Block ";
EI. innerhtml = ' ';
EI. style. Top = Document. Body. scrolltop + window. event. clienty + 10 + "PX ";
EI. style. Left = Window. event. clientx + 10 + "PX ";
}
//*******
//Move the mouse out of the hidden large image
//*******
Function Yichu (){
VaR Ei = Document. getelementbyid ("big_image ");
EI. innerhtml = "";
EI. style. Display = "NONE ";
}
</SCRIPT>
<Body>
<Form ID = "form1" runat = "server">
<Div id = "big_image" style = "position: absolute; display: none; Z-index: 2; Border: 0px solid # F 4f 4f 4; ">
</Div>
<Div>
<Table>
<Tr>
<TD>
</TD>
</Tr>
</Table>
</Div>
</Form>
</Body>
</Html>