• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 211
  • Last Modified:

loading an image

I'm trying to load an image into a colum like this...

<a href="#" onClick="document.Full.src='images/MouseHole.jpg';document.getElementById('name').innerHTML='Mouse Hole';return false;"><img border="0" src="images/MouseHole.gif" width="90" height="70"></a>

And it is supposed to load into this column.

<td valign="top"><p align="center"><img name="Full" border="0" src="images/LargeClock.jpg" width="532" height="412"></td>

It does load and there is np with that. However, the problem is that this particular image, unlike the others, is only 406x412 NOT 532x412, which the others are. When this image loads the width and height go to 532x412.

How do I fix this so that the image remains its correct width and height?
0
jandhb
Asked:
jandhb
1 Solution
 
RoonaanCommented:
you drop the width="532" height="412" attributes from you <img> tag. Browser will set size automatically.

-r-
0
 
jandhbAuthor Commented:
That does not work in this case.

However, this does work FYI - specify Full.width='whatever size'...
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now