Hi I've been looking everywhere but I cannot find out how to get the dimensions of an image. Is there some script that I can write to return the width and height of an image. (i.e. w = pic.width; h = pic.height thanks for any help with this.
thread216-516735 _________________________________________________________
for the best results to your questions: FAQ333-2924
[sub]01001111 01101110 01110000 01101110 01110100[/sub]
Thanks for the quick response, but for the first person who replied, can I use this if i pass the image name back to the function for my open scipt, or can it be used in the function call (i.e. a href = "javascriptpenNew('cat.jpg') then in the function
function openNew (imgName)
var h = imgName.height
Sorry for the confusion but I am just teching my self this stuff as I go
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.