You are here: Re: How to AUTO ReSize an <IMG.../> element on a web page? « HTML « IT news, forums, messages
Re: How to AUTO ReSize an <IMG.../> element on a web page?

Posted by Steve Pugh on 11/03/06 14:15

thisis wrote:
> i did try testing the suggestion given here for element <img .../>
> with attribute width=XXX% or/and height=XXX%, and non of them are
> applicable in my case.
>
> let me simplify my question into this:
>
> i want to write a code just for internet explorer ok ?!

Don't expect much help from folks round here. We're more concerned with
writing code for the WWW.

> i want to fire/trigger the automatic resizing event for an <img .../>
> element, without using the height/width = xxx%, ok?!

Can't be done. The auto-resizing feature only works on images loaded by
themselves, not on images embedded in web pages.

> i have a picture/image that is larger in height/width than the maxium
> height/width of the ie, ok ?!

What is the maximum height and width of IE? Is it the same on my screen
as it is on yours?

> i want that the ie will display on the left side/down a small tab nail,
> that allows resizing of the image, ok?!

Can be done by throwing some JavaScript at the problem, but isn't as
easy as it may seem at first.

> an example:
>
> http://www.fumettomania2000.com/Donal%20Duck%20.jpg
>
> wait a few sec untill the page loads, and then move your mouse over the
> down/left side of the image in order to see the resize thumb nail, ok?!

That's not a page. That's loading a single image on its own. That is
what triggers the auto-resize behaviour in some browsers.

> MY QUESTION IS:
>
> HOW DO I DISPLASY THE "THUMB NAIL" in an HTML PAGE? OK?!!!

You can't with just HTML. And if you could then what would happen to
the rest of the page when the image was resized to its full size?

Think about the whole process that you want to create and then ask
yourself if it will really be useful for your users.

The simplest thing you can do is create separate thumbnail images for
embedding in web pages and link them to the full image on its own which
will be auto-resized in those browsers that support auto-resizing.

> note: if you must be using microsoft internet explorer version 5.5 and
> up, OK?!!!

Not okay.

Steve

 

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

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