function ChangePhotoSize(imgID,widthLimit,heightLimit,count)
{
count++;
var imgObj=document.getElementById(imgID);
try
{
if(imgObj.height>heightLimit)
{
var newWidth=(imgObj.width)*heightLimit/imgObj.height;
imgObj.height=heightLimit;
imgObj.style.height=heightLimit+'px';
imgObj.width=newWidth;
imgObj.style.width=newWidth+'px';
}
if(imgObj.width>widthLimit)
{
var newHeight=(imgObj.height)*widthLimit/imgObj.width;
imgObj.width=widthLimit;
imgObj.style.width=widthLimit+'px';
imgObj.height=newHeight;
imgObj.style.height=newHeight+'px';
}
if(count<5)setTimeout("ChangePhotoSize('"+imgID+"',"+widthLimit+","+heightLimit+","+count+")",1000);
}
catch(ex)
{
if(count<5)setTimeout("ChangePhotoSize('"+imgID+"',"+widthLimit+","+heightLimit+","+count+")",1000);
}
}
document.write ("
");
document.write (" |
");
document.write ("");
document.write ("  ");
document.write (" | ");
document.write ("CSmm | ");
document.write (" | | ");
document.write ("");
document.write (" | ");
document.write ("ÇãÌýÒ¹Óï |
|
");
document.write ("
");