Solved

loading an image

Posted on 2004-09-27
2
206 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
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Little bit of help styling my heading 3 32
How do I pull the base url for use in html links 7 31
Html Table Looping (part 2) 5 28
.htaccess css/images no longer loading 4 41
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.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
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…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

808 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