Advertisement

07.05.2008 at 11:20AM PDT, ID: 23540874
[x]
Attachment Details

Popup Window That Resizes To Image Dimensions For Enlarged Image View (w/ Click To Close)

Asked by thyros in JavaScript, Hypertext Markup Language (HTML), Extensible HTML (XHTML)

Is there a solution that enables a normal img thumbnail link which would normally open in a new full size window (without script) but with javascript enabled it opens the linked image in a new popup window (like lightbox but not in-screen) and the window dimensions are resized to accommodate the image width and height exactly, with no extra scrollbars or toolbars etc.  As a further touch, clicking anywhere on the image closes the window.

For example, I have seen a rough and crude example of the desired effect at the following page;

http://demos.creloaded.com/creloaded62pro/product_info.php?cPath=1_4&products_id=1
(if you scroll down the page there is a series of thumbnails which link to bigger images)

Preferably, like the lightbox script the solution is not intrusive, i.e. the html code just links to an enlarged image url with a target="_blank" and perhaps a special class="popup", and the javascript looks for the link with the special class and causes it to popup in resized window, but with javascript disabled it just opens a new full size window with the linked image as normal.  Anyhow, our main priority first would be to get a script that resizes the popup to the image dimensions (without us actually supplying the dimensions since they vary greatly).

Also, I am open to ideas and suggestions on other ways of offering enlarged image views that are most user-friendly.

Thanks.Start Free Trial
[+][-]07.05.2008 at 02:25PM PDT, ID: 21938427

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: JavaScript, Hypertext Markup Language (HTML), Extensible HTML (XHTML)
Sign Up Now!
Solution Provided By: mms_master
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07.05.2008 at 06:18PM PDT, ID: 21938982

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.05.2008 at 11:07PM PDT, ID: 21939479

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.06.2008 at 07:19AM PDT, ID: 21940416

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.06.2008 at 08:05AM PDT, ID: 21940540

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.06.2008 at 11:07AM PDT, ID: 21941113

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.10.2008 at 12:11PM PDT, ID: 21976483

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.10.2008 at 12:17PM PDT, ID: 21976530

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.10.2008 at 03:44PM PDT, ID: 21978008

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628