TechieDrill Your World Of Technical Tutorials

Archive for the ‘JavaScript’ Category

Javascript – Image Resize with Aspect Ratio retained

08.11.2010 · Posted in JavaScript

For decent display of images in your website, Image Resizing alone is not enough, you also need to maintain aspect ratio. Aspect ratio of an Image: Aspect ratio is nothing but the ratio of Height of the image to the Width of the image. The following code can also be useful to display large images within limited boundary ...

Javascript: With Statement

11.13.2009 · Posted in JavaScript

The with statement allows you to access the methods and properties of an object without having to specify the name of the object on every line.Without the with statement, you will always need to specify the name of the object you are working on next to every property or method you wish to access: With statement allows to access ...