passing image size to vbscript function

S_W_a_Y_E_R

New Member
need help to pass image width and height to vbscript functioni am using a vbscript function called vwImageBounds to resize images on the fly, this works great provided the image is on the same server, however i have discovered that if i add two more variables (the third and forth ,900,500) and doctor the function code i can resize images accross domains, what im stuck on is replacing the ,900,500 part with the actual image sizes obtained using getElementById().width or similar. any ideas... \[code\]<img id="im1" src="http://www.mysite.co.uk/image.jpg"<%=vwdImageBounds("http://www.mysite.co.uk/image.jpg"+,130,102,900,500)%> />the variables are:130 = maxwidth102 = maxheight900 = originalwidth500 = originalheight\[/code\]
 
Top