|
Posted by Gιrard Talbot on 01/19/06 01:30
gil wrote :
>
>
> At approximately 2006/01/17 19:35, GΓ©rard Talbot typed these characters:
>>
>>> Although no one said it couldn't be done,
>>
>>
>> I say it can be done and I say I have done so *_many many months ago_*.
>>
>> Create a sub-window and dynamically DOM-insert an image
>> http://www.gtalbot.org/DHTMLSection/DynamicInsertionDOMImageInPopup.html
>> (although that demo may not be exactly what you need or want)
>>
>> Opening enlarged images of different dimensions into a single new
>> separate window only one at a time
>> http://www.gtalbot.org/DHTMLSection/EnlargeThumbnail.html
>>
>
> Your ".../enlargethumbnail" is very close to what I wanted to do.
>
> Presently, on my site, If the user clicked on another thumb, or anywhere
> else in the main window, the pop up disappeared but did not close.
> Instead it joined a growing number of relatives behind the main window.
> and after a while there were quite a few open windows hidden there, if
> I am not mistaken they consume resources.
>
> With your method, a separate close button is not necessary to remind the
> user to close the window as only one pop up window is open at any time.
> Opening a 'second' window actually closes the first.
Yes and no. The current (what you refer to first) window will close only
if the url is different.
If same url, then the window is brought up back on top, is focus()-ed,
which is efficient use of the user's system resources.
Still several considerations favor slideshows over that script:
1- Mozilla 1.x, Firefox 1.x, Opera 7+ have an user preference to disable
focus() command. So, (workaround) your page must indicate to set Allow
scripts to: Raise or lower windows checkbox to checked
2- Your page *must clearly and explicitly indicate* that only 1
secondary window is opened and then recycled, reused for the photo album
gallery when he does a normal left click on thumbnails. The user can
always open any enlarged image in a distinct, separate window by doing
right-click and then choosing open in a new window or even open in a new
tab. So the script is flexible, user-friendly and also
javascript-support independent.
3- Slideshows can use rel="prefetch" feature which then would/will be
most likely faster (more user resources friendly, efficient) than
opening a secondary window.
4- The script can not overcome special user setting/theme/preference
like width of scrollbars: this is already mentioned in the script comments.
5- If the url is different but the image size are the same, then the
window should not close and be re-created; it should load the new image
in the current window. The script currently does not do that: I just
realized this today.
If I were you, I'd look for S5 slideshow:
(I believe S5 refers to Simple Slideshow Standards-compliant Speed
Usable/Accessible)
S5: A Simple Standards-Based Slide Show System
http://www.meyerweb.com/eric/tools/s5/
HOWTO: Creating an S5 Slideshow
http://www.courseforum.com/howto_slideshow.html
An open-source web-based slideshow application
http://s5presents.com/
> I can easily add the caption to the image with photo editing software
> such as IrfanView.
I would not do that. Otherwise you make your text less accessible, less
interoperable (think of people who would copy-N-paste your text, or save
such text, others who would want their browser to submit such text to a
translating feature or site, etc.)
The Biggest Web Design Mistakes of 2004 (Part 2 of 2)
Don't use graphics for text
9. Forgetting the purpose of text.
http://www.webpagesthatsuck.com/biggest-web-design-mistakes-in-2004-part2.html
You can watermark your name with IrfanView along with some copyright
notice in your image: that's good and ok.
An excellent example showing perfectly what I have in mind:
http://www.foxes.org/urbanfox/fox_11z.jpg
> Sorry I was not as clear as I could have been, I am still only a novice
> and not familiar with the full range of options available within HTML, etc.
Ok. No problem.
>
> Is the javascript code free to use?
>
> Gil
Good question (I do not get this question asked enough/often). Yes, it's
free. Just mention my webpage and my name as contribution and author at
the beginning of the script.
GΓ©rard
--
remove blah to email me
Navigation:
[Reply to this message]
|