Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old October 14th, 2008, 04:15 PM
Santander
Guest
 
Posts: n/a
Default JavaScript Image Popup's

there are many versions of JavaScipt image popups exist which show image
preview when we click on a thumbnail image to view a larger version.
What is the best way?

  #2  
Old October 14th, 2008, 04:35 PM
SAM
Guest
 
Posts: n/a
Default Re: JavaScript Image Popup's

Le 10/14/08 5:06 PM, Santander a e'crit :
Quote:
there are many versions of JavaScipt image popups exist which show
image preview when we click on a thumbnail image to view a larger version.
What is the best way?
This one :
<http://www.huddletogether.com/projects/lightbox2/>
or that one :
<http://www.cssplay.co.uk/menu/gallery.html>
??
  #3  
Old October 14th, 2008, 05:15 PM
Santander
Guest
 
Posts: n/a
Default Re: JavaScript Image Popup's

both looks nice, not not too practical. The 1st sample takes a time when
load/adjust window, plus add this Vista "black background" effect, whereas
the regular javascript popup works faster - just open on click and close on
click. 2nd one show preview on mouseover. What I meant is simple popup that
opens on click on closes on click.

thanks.
-----


"SAM" <stephanemoriaux.NoAdmin@wanadoo.fr.invalidwrote in message
news:48f4bb55$0$906$ba4acef3@news.orange.fr...
Quote:
Le 10/14/08 5:06 PM, Santander a e'crit :
Quote:
>there are many versions of JavaScipt image popups exist which show image
>preview when we click on a thumbnail image to view a larger version.
>What is the best way?
>
This one :
<http://www.huddletogether.com/projects/lightbox2/>
or that one :
<http://www.cssplay.co.uk/menu/gallery.html>
??
  #4  
Old October 15th, 2008, 05:45 PM
Thomas 'PointedEars' Lahn
Guest
 
Posts: n/a
Default Re: JavaScript Image Popup's

Santander wrote:
Quote:
there are many versions of JavaScipt image popups exist which show image
preview when we click on a thumbnail image to view a larger version.
What is the best way?
Probably nothing that already exists, including Lightbox & Co. It needs to
be interoperable, fully standards-compliant, easy to write, and must work if
client-side script support is disabled; pick two.

Your From header is borken.


Score adjusted

PointedEars
--
Use any version of Microsoft Frontpage to create your site.
(This won't prevent people from viewing your source, but no one
will want to steal it.)
-- from <http://www.vortex-webdesign.com/help/hidesource.htm>
  #5  
Old October 15th, 2008, 07:55 PM
Evertjan.
Guest
 
Posts: n/a
Default Re: JavaScript Image Popup's

Thomas 'PointedEars' Lahn wrote on 15 okt 2008 in comp.lang.javascript:
Quote:
Your From header is borken.
Borken = place in Germany.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
  #6  
Old October 16th, 2008, 06:25 PM
Dr J R Stockton
Guest
 
Posts: n/a
Default Re: JavaScript Image Popup's

In comp.lang.javascript message
<Xns9B38D42BACCD3eejj99@194.109.133.242>, Wed, 15 Oct 2008 18:51:29,
Evertjan. <exjxw.hannivoort@interxnl.netposted:
Quote:
>Thomas 'PointedEars' Lahn wrote on 15 okt 2008 in comp.lang.javascript:
>
Quote:
>Your From header is borken.
>
>Borken = place in Germany.
^s
See <http://en.wikipedia.org/wiki/Borken>.

--
(c) John Stockton, nr London UK. ???@merlyn.demon.co.uk Turnpike v6.05 MIME.
Web <URL:http://www.merlyn.demon.co.uk/- FAQish topics, acronyms, & links.
Check boilerplate spelling -- error is a public sign of incompetence.
Never fully trust an article from a poster who gives no full real name.
  #7  
Old October 17th, 2008, 10:55 AM
Santander
Guest
 
Posts: n/a
Default Re: JavaScript Image Popup's

so what is sample of easy, interoperable, standards-compliant, working even
when client-side script support is disabled script?
Somethingf simple with href?

Santander
---------

"Thomas 'PointedEars' Lahn" <PointedEars@web.dewrote in message
news:48F61D64.6000908@PointedEars.de...
Quote:
Probably nothing that already exists, including Lightbox & Co. It needs
to
be interoperable, fully standards-compliant, easy to write, and must work
if
client-side script support is disabled; pick two.
>
Your From header is borken.
>
>
Score adjusted
>
PointedEars
--
Use any version of Microsoft Frontpage to create your site.
(This won't prevent people from viewing your source, but no one
will want to steal it.)
-- from <http://www.vortex-webdesign.com/help/hidesource.htm>
  #8  
Old October 17th, 2008, 11:15 PM
SAM
Guest
 
Posts: n/a
Default Re: JavaScript Image Popup's

Le 10/14/08 6:10 PM, Santander a écrit :
Quote:
both looks nice, not not too practical. The 1st sample takes a time when
load/adjust window, plus add this Vista "black background" effect,
whereas the regular javascript popup works faster - just open on click
and close on click. 2nd one show preview on mouseover. What I meant is
simple popup that opens on click on closes on click.
The second works too with onclick
(probably not with IE < 8)

You asked the best ways, no ?
They are.

Popups are most of the time badly appreciated by users.
(some browsers can be fixed to disallow them)

Today the displaying of big image in same window is the way.
(if javascript is enabled)
(if not, the big image is displayed in same window and the user has to
click the back button of is navigator to come back to the gallery)

<a href="big_image.jpg" onclick="return pop(this)">
<img src="small_image" alt="thumbnail" title="venus">
</a>


JS :
====
var IE=false; /*@cc_on IE=true; @*/
function pop(what) {
var v = document.getElementById('viewer');
v.src = what.href;
v.style.display = 'block';
if(IE) {
var top = document.body.scrollTop ||
document.documentElement.scrollTop;
v.style.top = +top +10 + 'px';
}
return false;
}

CSS :
=====
#viewer { position: fixed; top: 10px; right: 20px; padding: 10px;
background: #999; border: 5px outset gold; display: none;
cursor: pointer;
/* hack IE */ _cursor: hand; _position: absolute;
}

HTML :
======
<img src="" id="viewer" alt="" onclick="this.style.display='none';"
title"click to close me">
</body>


--
sm
  #9  
Old October 20th, 2008, 02:25 PM
Santander
Guest
 
Posts: n/a
Default Re: JavaScript Image Popup's

The code you specified does not work though. please show it in HTML page.

Santander
-------------

"SAM" <stephanemoriaux.NoAdmin@wanadoo.fr.invalidwrote in message
news:48f90dde$0$883$ba4acef3@news.orange.fr...
Quote:
Le 10/14/08 6:10 PM, Santander a écrit :
Quote:
>both looks nice, not not too practical. The 1st sample takes a time when
>load/adjust window, plus add this Vista "black background" effect,
>whereas the regular javascript popup works faster - just open on click
>and close on click. 2nd one show preview on mouseover. What I meant is
>simple popup that opens on click on closes on click.
>
The second works too with onclick
(probably not with IE < 8)
>
You asked the best ways, no ?
They are.
>
Popups are most of the time badly appreciated by users.
(some browsers can be fixed to disallow them)
>
Today the displaying of big image in same window is the way.
(if javascript is enabled)
(if not, the big image is displayed in same window and the user has to
click the back button of is navigator to come back to the gallery)
>
<a href="big_image.jpg" onclick="return pop(this)">
<img src="small_image" alt="thumbnail" title="venus">
</a>
>
>
JS :
====
var IE=false; /*@cc_on IE=true; @*/
function pop(what) {
var v = document.getElementById('viewer');
v.src = what.href;
v.style.display = 'block';
if(IE) {
var top = document.body.scrollTop ||
document.documentElement.scrollTop;
v.style.top = +top +10 + 'px';
}
return false;
}
>
CSS :
=====
#viewer { position: fixed; top: 10px; right: 20px; padding: 10px;
background: #999; border: 5px outset gold; display: none;
cursor: pointer;
/* hack IE */ _cursor: hand; _position: absolute;
}
>
HTML :
======
<img src="" id="viewer" alt="" onclick="this.style.display='none';"
title"click to close me">
</body>
>
>
--
sm
  #10  
Old October 20th, 2008, 05:55 PM
MartinRinehart@gmail.com
Guest
 
Posts: n/a
Default Re: JavaScript Image Popup's

Santander wrote:
Quote:
there are many versions of JavaScipt image popups exist which show image
preview when we click on a thumbnail image to view a larger version.
What is the best way?
This site links tnails to large pictures, 100% HTML, 0% javascript:
http://www.monksvillephotograhs.org .
  #11  
Old October 20th, 2008, 05:55 PM
MartinRinehart@gmail.com
Guest
 
Posts: n/a
Default Re: JavaScript Image Popup's

Oops. Try:

http://www.monksvillephotographs.org/
  #12  
Old October 20th, 2008, 06:35 PM
SAM
Guest
 
Posts: n/a
Default Re: JavaScript Image Popup's

Le 10/20/08 3:21 PM, Santander a écrit :
Quote:
The code you specified does not work though.
except if typo it has to run
(tested IE6 and Fx.3)
Quote:
please show it in HTML page.
<http://cjoint.com/?kutwNZYx3z>


--
sm

  #13  
Old October 20th, 2008, 06:35 PM
SAM
Guest
 
Posts: n/a
Default Re: JavaScript Image Popup's

Le 10/20/08 6:53 PM, MartinRinehart@gmail.com a écrit :weight of the page : 2841 KB
  #14  
Old October 21st, 2008, 05:25 PM
Santander
Guest
 
Posts: n/a
Default Re: JavaScript Image Popup's

some details about viewer css:

#viewer { position: fixed; top: 10px; right: 20px;
padding: 10px; cursor: pointer;
background: #999; border: 5px outset gold; display: none;
_position: absolute; _cursor: hand;
}
div { height: 300px; margin-top: 20px; }
div img { width: 200px }

Thumbnails size controlled by this code?
div { height: 300px; margin-top: 20px; }
div img { width: 200px }

do this line goes right before the closing </bodytag?
<img src="" id="viewer" alt="" onclick="this.style.display='none';"
title"click to close me">

Santander
------

"SAM" <stephanemoriaux.NoAdmin@wanadoo.fr.invalidwrote in message
news:48fcbf93$0$922$ba4acef3@news.orange.fr...
Quote:
Le 10/20/08 3:21 PM, Santander a écrit :
Quote:
>The code you specified does not work though.
>
except if typo it has to run
(tested IE6 and Fx.3)
>
Quote:
>please show it in HTML page.
>
<http://cjoint.com/?kutwNZYx3z>
>
>
--
sm
>
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles