Solved

loading an image

Posted on 2004-09-27
2
205 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
Comment Utility
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
Comment Utility
That does not work in this case.

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

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
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…

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now