Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

img resize problem

Status
Not open for further replies.

bisdex

Programmer
Feb 16, 2001
4
US
I am pulling images from a database..which means every image has the possibility of being different width and different height

yet..in IE I just dont specify the width and height to the img src element and everything is hunky dorie

however in Netscape everything resizes to the width and height of the first image that loads... i need netscape to resize every image to its original size...not resizing it to the width and height of the first images size?

whats the best way to dynamically resize images in javascript? in order for me to properly resize the image I must first know the original size(w and h) of the image...and make every image as it loads dynamically fill in the width and height properties or the img src element in HTML?

ex: img src=&quot;<%=img%> width=<%=getwidth%> height=<%=getheight%>

is this the only option?

HELLLP!
 
it's weird ... does the page really refreshes ? try document.reload(true) to force refresh ...
if it's not the case then i'm afraid your solution is the only one ....
 
what I have is a for sale by owner listings site 208.62.160.164 and I use javascript image flipper to view up to 5 images....I need to be able to have each image a different size(its original width and height) as it it pulled from the database.

any help in this matter would be greatly appreciated.

Chris
chris@bisdex.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top