Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

loading an image

Posted on 2004-09-27
2
Medium Priority
?
210 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 100 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
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…

886 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