You are here: Re: showing larger images in pop up window. « HTML « IT news, forums, messages
Re: showing larger images in pop up window.

Posted by Gιrard Talbot on 01/15/06 02:12

gil wrote :
> I would like to have the user click on a thumb in a photo gallery to
> view a larger image with a single line of text below it, AND a button
> which would close the window.

Why would you want to provide another button, an extra one on top of the
already provided one on the titlebar? Why duplicate the standard,
default and normal functionality of the browser with javascript? What's
wrong with the already present, visible and UI close button in the
titlebar? Why should an user/visitor visiting your site trust more your
button than his own browser application and/or his own browser close
button? In a security article, Microsoft has acknowledged this issue as
a security issue. Anyone can place any kind of javascript code behind
any button.

For above 99% of users on the web, if they have a clear choice between
trusting a site and trusting their browser functionality, they will
choose to trust their own browser all the time. They will feel that this
is a safer choice and a more normal choice.


> Is there any way this can be done inline with <a ref...>? Or is there a
> better option?.

Why would you want to use a link to close a window? Would creating a
button to actually load another page, to link to somewhere and loading a
web address behind a button make some sense to you?

Why not create an java applet or a flash movie which would close the
window then?

Why do you need to redefine the normal, standard, default usage of HTML
elements and to redefine them away from their intended purpose? Why make
complex when there is simple?


> I have seen javascript which will open other html documents into a
> resizeable window. I have a few snippets of code which would close the
> window, but this code would have to be added into the html of the new
> window.

Again, what's wrong with the already available close button of the
window titlebar, embedded into the UI? Why or how would your button
provide more security, more convenience, more usefulness, more
trustworthiness to the user than the default, standard user interface of
browser window/titlebar?


After all, isn't that the very same phenomenon which has been happening
on the web in the last 5 years. People have "learned" to trust what
emails (scams in spam emails, phishing sites, viruses, hoaxes, trojans,
downloading and installing viruses, etc.) and webpages were providing or
saying instead of trusting more their applications up to a certain point.

> Also this method would seem to require that I write a separate
> html file for every single thumbnail in the gallery. Rather wasteful...
>
> Is there anyway I can do all this from within the HTML tag <a href...>?
> Or does someone have a suggestion on the best way to proceed.
>
> I don't want to use features only available on a specific browser.
>
> Thanks in advance,
>
> Gil

GΓ©rard
--
remove blah to email me

 

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

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация