Reply to Re: How to show a picture in its original size (no autofit to window)

Your name:

Reply:


Posted by fred.haab@gmail.com on 06/15/06 01:02

Stefan Mueller wrote:
> Hello
>
> If I'd like to show an image in its original size or in other words if I'd
> like to force the browser to use scroll bars if the image is too big I use
> <img width=1500 height=1100 src=""big_picture.gif">
> I don't need to use tables. But that's also a cute idea. Thanks for this
> hint.
>
> However, my original questing was how to show a big image within <a href
> ...></a>?
> <a href="big_picture.gif"><img src="small_picture.gif"></a>
>
> Here I'm not able to use 'width' and 'height' and unfortunately also no
> tables for the big image (big_picture.gif).
>
> Stefan

Yeah...

Unfortunately, just showing a raw image, you have zero control... I
mean, it's not even in a web page. You'd have to create a simple html
file for each image, OR you can do something like what Steven suggested
(because, really, the reason is that you probably don't want to
generate an html page per image when you might have hundreds of them),
OR you can do client side scripting and require the user to have
scripting enabled. It would be a pretty simple javascript, ultimately,
embedded in a simple

<table><tr><td><img id="my_image"></td></tr></table>

Then the link would be <a
href="show_my_image?image=the_real_image_name.jpg">

And then you'd need some javascript to parse the query string and get
the image name.

So... yeah... to just tell a browser "show the next raw image at full
size" is not possible, you have to be able to mark it up yourself,
which means it needs to be in a page.

[Back to original 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

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