Solved

loading an image

Posted on 2004-09-27
2
207 Views
Last Modified: 2010-04-09
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
Comment
Question by:jandhb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 49

Accepted Solution

by:
Roonaan earned 25 total points
ID: 12161555
you drop the width="532" height="412" attributes from you <img> tag. Browser will set size automatically.

-r-
0
 
LVL 1

Author Comment

by:jandhb
ID: 12161728
That does not work in this case.

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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question