Re: Need a script to reduce images size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
http://www.w3.org/TR/html4/loose.dtd";>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<script type="text/javascript">
function getImgSize(id){
var pic = document.getElementById(id);
var h = pic.offsetHeight;
var w = pic.offsetWidth;
alert ('The image size is '+w+'*'+h);
}
</script>
</head>
<body>
<img id='demoImg' src="
http://www.goldenstudy.com/bbs/uploadimg//20060228144500426.jpg";>
<input type="button" onclick="getImgSize('demoImg')" value="Get Image Size">
</body>
</html>

On Mon, Nov 16, 2009 at 11:32 PM, hno <hno2005@xxxxxxxxx> wrote:

>
>
> HI
>
> I have a site that is full of images and so many of them have large size
> and
> it makes the loading of site take some second. What I want to do is that
> when the user enter my site the image quality comes down so the size of
> them
> comes down and it makes loading so faster.How can do so?
>
> By the way ,image's quality is not important.
>
> Thanks
>
> image002
>
> HNO
>
> [Non-text portions of this message have been removed]
>
>  
>



-- 
J.Somasekhar,
Varnatechnologies Pvt Ltd.,
Jublee hills,
9550705652


[Non-text portions of this message have been removed]


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux