image resize by using javascript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • deepakraj
    New Member
    • Mar 2008
    • 3

    image resize by using javascript

    i want to resize image (in pixels)..how i can do it..
  • rnd me
    Recognized Expert Contributor
    • Jun 2007
    • 427

    #2
    you simply change the height and width attributes of the image tag, and the browser will rescale it accordingly.

    in a more complicated fashion, you can resize the actual image as well, but only in firefox at this point.

    Comment

    Working...