You are here: Clip Image inside div « HTML « IT news, forums, messages
Clip Image inside div

Posted by MarkusJNZ on 06/11/07 01:08

Hi, I have a DIV in my webpage called largeImage declared as such

<div id="largeImage" style="width:360px; height: 238px;" />

When someone does a mouseover on a thumbnail I am showing the big
image using the following code

function showImage(imageName)
{
document.getElementById('largeImage').innerHTML = '<img src="./
_listingImages/' + imageName + '" style="width:360px;height:238px;" /
>';
}

My problem is that sometimes the large image can be bigger then the
original DIV so I want to cut off the excess so to speak so that the
large image is not bigger than the original div.

Any help appreciated
Thanks in advance
Markus

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация