$arr=getimagesize("images/album_01.gif");
echo $arr[3];
$strarr=explode(""",$arr[3]);
echo $strarr[1];
?>
<script><br>function Wa_SetImgAutoSize(img)<br>{<br>//var img=document.all.img1;//Get the image<br>var MaxWidth=200;//Set the image width limit<br>var MaxHeight=100;//Set the image height limit<br>var HeightWidth=img.offsetHeight/img.offsetWidth;//Set the aspect ratio<br>var WidthHeight=img.offsetWidth/img.offsetHeight;//Set the width High ratio<br>alert("test" img.offsetHeight img.fileSize);<br>if(img.offsetHeight>1) alert(img.offsetHeight);<br>if(img.readyState!="complete") {<br>return false;//Make sure the image is fully loaded<br>}<br><br>if(img.offsetWidth>MaxWidth){<br>img.width=MaxWidth;<br>img.height=MaxWidth* HeightWidth;<br>}<br>if(img.offsetHeight>MaxHeight){<br>img.height=MaxHeight;<br>img.width=MaxHeight*WidthHeight;<br>}<br>}<br><br>function CheckImg(img)<br>{<br>var message="";<br>var MaxWidth=1;//Set the image width limit<br>var MaxHeight=1;//Set the image height limit<br><br>if(img.readyState!="complete"){<br>return false;//Ensure the image is fully loaded<br>}<br>if(img.offsetHeight>MaxHeight) message ="rHeight excess: " img.offsetHeight;<br>if(img.offsetWidth>MaxWidth) message ="r width exceeded:" img.offsetWidth;<br>if(message!="") alert(message);<br>}<br></script>
http://www.bkjia.com/PHPjc/445558.html www.bkjia.com true http: //www.bkjia.com/PHPjc/445558.html TechArticle $arr=getimagesize(images/album_01.gif); echo $arr[3]; $strarr=explode( ,$arr[3]); echo $strarr[1]; ? script function Wa_SetImgAutoSize(img) { //var img=document.all.img1;//Get the picture...