如何製作高度和寬度可以縮放的圖片
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="picturedeal.aspx.cs" Inherits="picturedeal" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>無標題頁</title>
<script language="javascript" type="text/javascript">
function big(o)
{
var zoom=parseInt(o.style.zoom, 10)||100;
zoom+=window.event.wheelDelta/12;
if (zoom>0)
o.style.zoom=zoom+'%';
return false;
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<A href="image/6.jpg">
<IMG class='fit-image'
onload='javascript:if(this.width>498)this.style.width=498;'
onmousewheel = 'javascript:return big(this)'
height=354 alt="" src="image/6.jpg" width=464 border=0>
</A>
</div>
</form>
</body>
</html>