<html>
<head >
<title图片播放方式</title>
<script language=javascript>
var img = new Image();
img.onload=zoom;
var src="";
function showPic(o)
{
img.src = o;
src=o;
}
function zoom()
{
var w = img.width;
var h = img.height;
var r = 1;
if (w>200 || h>250)
{
var rw = 200/w;
var rh = 1250/h;
r = rw > rh ? rh : rw;
}
w *= r;
h *= r;
var i=document.getElementById ("upic");
i.width = w;
i.height = h;
i.style.top = (200-h)/2;
i.style.left = (250-w)/2;
i.src = src;
}
</script>
</head>
<body>
<table border =1 cellpadding =1 cellspacing=1 bordercolor=#00CC99 >
<colgroup><col><col><col></colgroup>
<tr><td colspan =3 width=200 height =250><img id="upic" src=""></td></tr>
<tr height =25><td colspan =2 ></td><td ><table width =100% height =100% border =1><tr><td onclick ="showPic("Images\1.jpg")">1</td><td><a>2</a></td><td><a>3</a></td><td><a>4</a></td><td><a>5</a></td></tr></table></td></tr>
</table>
</body>
</html>