<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
<!DOCTYPE html PUBLIC "-//W3C//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 runat="server">
<title>无标题页</title>
<script language="javascript" type="text/javascript">
//显示缩略图
function DrawImage(ImgD,width_s,height_s)
{
/*var width_s=139;
var height_s=104;
*/
var image=new Image();
image.src=ImgD.src;
if(image.width>0 && image.height>0)
{
flag=true;
if(image.width/image.height>=width_s/height_s)
{
ImgD.width=width_s;
ImgD.height=(image.height*width_s)/image.width;
}
else
{
if(image.height>height_s)
{
ImgD.height=height_s;
ImgD.width=(image.width*height_s)/image.height;
}
else
{
ImgD.width=image.width;
ImgD.height=image.height;
}
}
}
/*else{
ImgD.src="";
ImgD.alt=""
}*/
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<img src="5.gif" align="middle" οnmοusemοve="DrawImage(this,800,1200)">
<img src="6.gif" align="middle" οnmοusemοve="DrawImage(this,200,200)">
<img src="7.gif" align="middle" οnmοusemοve="DrawImage(this,200,200)">
</div>
</form>
</body>
</html>