473,385 Members | 1,736 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

how do they do that?

Hi there,

I came across a website using this great effect displaying photos. I
know it has to be Javascript, is there a ready-made script for it?
http://cabellhuntington.org/features...survivors_day/

Thanks in advance.

Ed

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Sep 20 '07 #1
26 1272
On Sep 20, 8:27 am, Paperhat <paper...@zoominternet.netwrote:
Hi there,

I came across a website using this great effect displaying photos. I
know it has to be Javascript, is there a ready-made script for it?
http://cabellhuntington.org/features...onal_cancer_su...

Thanks in advance.

Ed

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----http://www.newsfeeds.comThe #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
If u now using firefox, can install the firebug plugin.when do
that,then u can see all the scripts.

Sep 20 '07 #2
On Sep 20, 10:27 am, Paperhat <paper...@zoominternet.netwrote:
Hi there,

I came across a website using this great effect displaying photos. I
know it has to be Javascript, is there a ready-made script for it?
http://cabellhuntington.org/features...onal_cancer_su...
View the page source. It uses a combination of: Prototype.js,
scriptaculous.js and lightbox.js. The effect may look cool the first
couple of times you see it, but it very quickly becomes a boring waste
of time while you wait for the image to display.
--
Rob

Sep 20 '07 #3
Paperhat wrote:
I came across a website using this great effect displaying photos. I
know it has to be Javascript
JavaScript? No doubt. It doesn't work in Netscape. That usually means
that JavaScript is involved.

Fortunately, (for the site owner) I am one of the few remaining Netscape
users.
Sep 20 '07 #4
Scott Bryce wrote:
Paperhat wrote:
>I came across a website using this great effect displaying photos. I
know it has to be Javascript

JavaScript? No doubt. It doesn't work in Netscape. That usually means
that JavaScript is involved.
You could not be more wrong. (Netscape) JavaScript of course works in
Netscape since Netscape version 2.0. It is only that few script authors
watch for backwards compatibility.

http://PointedEars.de/scripts/es-matrix
Fortunately, (for the site owner) I am one of the few remaining Netscape
users.
Of which version?
F'up2 comp.lang.javascript

PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f8*******************@news.demon.co.uk>
Sep 20 '07 #5
RobG wrote:
View the page source. It uses a combination of: Prototype.js,
scriptaculous.js and lightbox.js. [...]
OMG.
Regards,

PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16
Sep 20 '07 #6
Scott Bryce <sb****@scottbryce.comwrote:
>Paperhat wrote:
>I came across a website using this great effect displaying photos. I
know it has to be Javascript

JavaScript? No doubt. It doesn't work in Netscape. That usually means
that JavaScript is involved.
Javascript works just fine in Netscape. After all, Netscape pioneered
Javascript!

I'd guess that what's happening is that the Javascript is using
something that's proprietary to MS and works only on IE.

--
Tim Slattery
Sl********@bls.gov
http://members.cox.net/slatteryt
Sep 20 '07 #7
Tim Slattery wrote:
I'd guess that what's happening is that the Javascript is using
something that's proprietary to MS and works only on IE.
Which was actually my point. There is a lot of JavaScript that does not
work cross-browser. Tricky gizmos, like the one the OP described as
"great" often don't work in all browsers. This leaves some visitors
looking at a site that does not work at all. That isn't a feature I want
on my site.

If a site falls apart in Netscape, chances are that JavaScript is involved.
Sep 20 '07 #8
Scott Bryce wrote:
Tim Slattery wrote:
>I'd guess that what's happening is that the Javascript is using
something that's proprietary to MS and works only on IE.

Which was actually my point. There is a lot of JavaScript that does not
work cross-browser. Tricky gizmos, like the one the OP described as
"great" often don't work in all browsers. This leaves some visitors
looking at a site that does not work at all. That isn't a feature I want
on my site.

If a site falls apart in Netscape, chances are that JavaScript is involved.
In defense of the site in question, the site does not fall apart without
Javascript support. Furthermore, the effect I wanted to know more about
may not be available without Javascript support, but basic links to the
photos remain. Thus, I do not see it as a hinderance.

Ed

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Sep 20 '07 #9
Paperhat wrote:
Scott Bryce wrote:
>Tim Slattery wrote:
>>I'd guess that what's happening is that the Javascript is using
something that's proprietary to MS and works only on IE.
Which was actually my point. There is a lot of JavaScript that does not
work cross-browser. Tricky gizmos, like the one the OP described as
"great" often don't work in all browsers. This leaves some visitors
looking at a site that does not work at all. That isn't a feature I want
on my site.
[...]

In defense of the site in question, the site does not fall apart without
Javascript support.
It should not fall apart at all. Applying methods of graceful degradation,
any Web site can be made so that it works without client-side scripting,
with client-side scripting but different script engines, and full support
for the used features. And that seldom would include maintaining two or
more versions of the site, as HTML degrades gracefully by default.
----== Posted via Newsfeeds.Com - [spam]
Please find a news server and a newsreader.
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>
Sep 20 '07 #10
Paperhat <pa******@zoominternet.netwrote in
news:11*************@sp6iad.superfeed.net:
Hi there,

I came across a website using this great effect displaying photos. I
know it has to be Javascript, is there a ready-made script for it?
http://cabellhuntington.org/features...nal_cancer_sur
vivors_day/

Thanks in advance.

Ed
Hi Ed

The script in question being used is called "Lightbox 2.0", its used on a
number of websites and *degrades gracefully* when Javascript isn't enabled
on a browser.

It's frightfully easy to get going, is free (donations accepted) and *
works on all modern browsers *

http://www.huddletogether.com/projects/lightbox2/

Sep 20 '07 #11
Tim Slattery wrote:
Scott Bryce <sb****@scottbryce.comwrote:
>Paperhat wrote:
>>I came across a website using this great effect displaying photos. I
know it has to be Javascript
JavaScript? No doubt. It doesn't work in Netscape. That usually means
that JavaScript is involved.

Javascript works just fine in Netscape. After all, Netscape pioneered
Javascript!

I'd guess that what's happening is that the Javascript is using
something that's proprietary to MS and works only on IE.
IF you are talking about the slide show feature, it's working fine for
me in Firefox version 2.0.0.6
Sep 20 '07 #12
RobertVA wrote:
Tim Slattery wrote:
>Scott Bryce <sb****@scottbryce.comwrote:
>>Paperhat wrote:
I came across a website using this great effect displaying photos. I
know it has to be Javascript
JavaScript? No doubt. It doesn't work in Netscape. That usually means
that JavaScript is involved.
Javascript works just fine in Netscape. After all, Netscape pioneered
Javascript!

I'd guess that what's happening is that the Javascript is using
something that's proprietary to MS and works only on IE.

IF you are talking about the slide show feature, it's working fine for
me in Firefox version 2.0.0.6
With "Netscape" probably Netscape 4.06+ is meant, which supports only
JavaScript 1.3 (as Netscape 6.22+ supports JavaScript 1.5 and the W3C DOM
as all Gecko-based UAs do). But as the aforementioned Web site uses
lightbox.js, which requires scriptaculous.js which requires Prototype.js
which needlessly uses features that are not in JavaScript 1.3, without
handling the possibility of an older script engine, it breaks there.

It all boils down to the author of Prototype.js doing a mindbogglingly bad
job, other people being incompetent enough not to recognize that, who build
libraries that depend on Prototype.js and probably doing their job badly,
too, and other people who build libraries that depend on those, probably
doing their part of making the code base even worse. Then the users of the
latter library end up with incompatible code because they are incompetent
enough not to recognize why the underlying concept is helplessly flawed and
because they test only on their favorite browser(s) as they rely only on the
statements of the fools who wrote the libraries.

This is how come that especially JavaScript and client-side scripting in
general, and last but not least reasonable developers of client-side
scripting, are eventually discredited among end users. Up to the point that
someone actually states ridiculously in this newsgroup that if something
does not work in the browser of the company who first implemented the
JavaScript language as invented by one of their employees (Brendan Eich)
usually means that this language is involved.

One could have a good laugh about all that nonsense if the outcome
wasn't so sad.
PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f8*******************@news.demon.co.uk>
Sep 20 '07 #13
Good Man wrote:
Paperhat <pa******@zoominternet.netwrote in
news:11*************@sp6iad.superfeed.net:
>Hi there,

I came across a website using this great effect displaying photos. I
know it has to be Javascript, is there a ready-made script for it?
http://cabellhuntington.org/features...nal_cancer_sur
vivors_day/
The script in question being used is called "Lightbox 2.0", its used on a
number of websites and *degrades gracefully* when Javascript isn't enabled
on a browser.

It's frightfully easy to get going, is free (donations accepted) and *
works on all modern browsers *

http://www.huddletogether.com/projects/lightbox2/
Thank you very much - I am eager to try it out. I am usually not one
for such eye-candy but indeed, I viewed the page without Javascript and
all content remained accessible.

Ed

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Sep 21 '07 #14
Paperhat wrote:
In defense of the site in question, the site does not fall apart without
Javascript support. Furthermore, the effect I wanted to know more about
may not be available without Javascript support, but basic links to the
photos remain. Thus, I do not see it as a hinderance.
In Netscape 7.x the effect works partially. I can click the thumbnail.
The screen goes dark. A new "window" (actually a div with a white
background) pops up. There is no image in the div.

If I turn JavaScript off, the site degrades gracefully.

So what I am saying is that WITH JavaScript support, there is no
guarantee that the effect will work.
Sep 21 '07 #15
Good Man wrote:
It's frightfully easy to get going, is free (donations accepted) and *
works on all modern browsers *
Netscape 7.2, no.
Netscape 8.0, yes.
FireFox 2.0.0.6, no.
Opera 9.0, yes.
IE 6.0, yes.
Sep 21 '07 #16
Scott Bryce <sb****@scottbryce.comwrote in
news:TJ******************************@comcast.com:
Good Man wrote:
>It's frightfully easy to get going, is free (donations accepted) and *
works on all modern browsers *

Netscape 7.2, no.
Netscape 8.0, yes.
FireFox 2.0.0.6, no.
I don't know what your settings are, but certainly it has worked flawlessly
for me since Firefox 1.5 ... 2.0.0.6 and 2.0.0.7 included

Sep 21 '07 #17
On Sep 20, 5:01 pm, Thomas 'PointedEars' Lahn <PointedE...@web.de>
wrote:
Paperhat wrote:
Scott Bryce wrote:
Tim Slattery wrote:
I'd guess that what's happening is that the Javascript is using
something that's proprietary to MS and works only on IE.
Which was actually my point. There is a lot of JavaScript that does not
work cross-browser. Tricky gizmos, like the one the OP described as
"great" often don't work in all browsers. This leaves some visitors
looking at a site that does not work at all. That isn't a feature I want
on my site.
[...]
In defense of the site in question, the site does not fall apart without
Javascript support.

It should not fall apart at all. Applying methods of graceful degradation,
any Web site can be made so that it works without client-side scripting,
with client-side scripting but different script engines, and full support
for the used features. And that seldom would include maintaining two or
more versions of the site, as HTML degrades gracefully by default.
The lightbox is fairly unobtrusive. The whole site works just fine
without Javascript. The Javascript is just an added visual feature,
for visitors who have browsers that support it. I don't see that this
script violated any principle of unobtrusive Javascript.

Sep 21 '07 #18
On Sep 20, 7:04 pm, Thomas 'PointedEars' Lahn <PointedE...@web.de>
wrote:
RobertVA wrote:
Tim Slattery wrote:
Scott Bryce <sbr...@scottbryce.comwrote:
Paperhat wrote:
I came across a website using this great effect displaying photos. I
know it has to be Javascript
JavaScript? No doubt. It doesn't work in Netscape. That usually means
that JavaScript is involved.
Javascript works just fine in Netscape. After all, Netscape pioneered
Javascript!
I'd guess that what's happening is that the Javascript is using
something that's proprietary to MS and works only on IE.
IF you are talking about the slide show feature, it's working fine for
me in Firefox version 2.0.0.6

With "Netscape" probably Netscape 4.06+ is meant, which supports only
JavaScript 1.3 (as Netscape 6.22+ supports JavaScript 1.5 and the W3C DOM
as all Gecko-based UAs do). But as the aforementioned Web site uses
lightbox.js, which requires scriptaculous.js which requires Prototype.js
which needlessly uses features that are not in JavaScript 1.3, without
handling the possibility of an older script engine, it breaks there.
What are you talking about? The content of the site is accessible with
Javascript turned off. Therefore the site obeys the principles of
unobtrusive Javascript. I don't see how the word "breaks" is
justified.

Sep 21 '07 #19
Good Man wrote:
Scott Bryce [...] wrote [...]:
>Good Man wrote:
>>It's frightfully easy to get going, is free (donations accepted) and *
works on all modern browsers *
Netscape 7.2, no.
Netscape 8.0, yes.
FireFox 2.0.0.6, no.

I don't know what your settings are, but certainly it has worked flawlessly
for me since Firefox 1.5 ... 2.0.0.6 and 2.0.0.7 included
JFTR: Netscape 8.0+ uses MSHTML instead of Gecko when convenient which
would explain why it works there.

Please stop crossposting to alt.comp.lang.javascript, that group is
dead on Usenet (i.e. properly configured Usenet servers don't have it anymore).
PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f8*******************@news.demon.co.uk>
Sep 21 '07 #20
Jake Barnes wrote:
On Sep 20, 7:04 pm, Thomas 'PointedEars' Lahn <PointedE...@web.de>
wrote:
>RobertVA wrote:
>>Tim Slattery wrote:
Scott Bryce <sbr...@scottbryce.comwrote:
Paperhat wrote:
>I came across a website using this great effect displaying photos. I
>know it has to be Javascript
JavaScript? No doubt. It doesn't work in Netscape. That usually means
^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>>>that JavaScript is involved.
Javascript works just fine in Netscape. After all, Netscape pioneered
Javascript!
I'd guess that what's happening is that the Javascript is using
something that's proprietary to MS and works only on IE.
IF you are talking about the slide show feature, it's working fine for
me in Firefox version 2.0.0.6
With "Netscape" probably Netscape 4.06+ is meant, which supports only
JavaScript 1.3 (as Netscape 6.22+ supports JavaScript 1.5 and the W3C DOM
as all Gecko-based UAs do). But as the aforementioned Web site uses
lightbox.js, which requires scriptaculous.js which requires Prototype.js
which needlessly uses features that are not in JavaScript 1.3, without
handling the possibility of an older script engine, it breaks there.

What are you talking about? The content of the site is accessible with
Javascript turned off.
You miss the point. See the marker above.
Therefore the site obeys the principles of unobtrusive Javascript.
"Unobtrusive JavaScript" is but a buzzword used by people who don't know
how to use built-in properties of standard HTML to facilitate graceful
degradation and use inherently error-prone proprietary approaches instead.
I don't see how the word "breaks" is justified.
If a site *breaks* (i.e. does not work without errors) with a support for
a technology present and enabled (as it is with JavaScript support and
Netscape 4.x), or absent or disabled, it is seriously broken and not
accessible at all (because to make it work required efforts by the *user*).
As simple as that.
PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann
Sep 21 '07 #21
Thomas 'PointedEars' Lahn wrote:
Jake Barnes wrote:
>Therefore the site obeys the principles of unobtrusive Javascript.

"Unobtrusive JavaScript" is but a buzzword used by people who don't know
how to use built-in properties of standard HTML to facilitate graceful
degradation
-- or refuse to see that, I might add --
and use inherently error-prone proprietary approaches instead.
[...]

PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f8*******************@news.demon.co.uk>
Sep 21 '07 #22
Jake Barnes wrote:
On Sep 20, 5:01 pm, Thomas 'PointedEars' Lahn <PointedE...@web.de>
wrote:
>Paperhat wrote:
>>In defense of the site in question, the site does not fall apart without
Javascript support.
It should not fall apart at all. Applying methods of graceful degradation,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>any Web site can be made so that it works without client-side scripting,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>with client-side scripting but different script engines, and full support
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^
>for the used features. And that seldom would include maintaining two or
more versions of the site, as HTML degrades gracefully by default.

The lightbox is fairly unobtrusive. The whole site works just fine
without Javascript. [...]
Sep 21 '07 #23
Thomas 'PointedEars' Lahn <Po*********@web.dewrote in
news:46**************@PointedEars.de:

Please stop crossposting to alt.comp.lang.javascript, that group is
dead on Usenet (i.e. properly configured Usenet servers don't have it
anymore).
I was just wondering if it were possible for you to make a post without
admonishing someone or complaining!
Sep 21 '07 #24
Good Man wrote:
Thomas 'PointedEars' Lahn [...]:
>Please stop crossposting to alt.comp.lang.javascript, that group is
dead on Usenet (i.e. properly configured Usenet servers don't have it
anymore).

I was just wondering if it were possible for you to make a post without
admonishing someone or complaining!
I have made a polite and well-founded request. If you cannot differentiate
that from admonishing or complaining, you are definitely wrong here.
PointedEars, Score adjusted
--
"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>
Sep 21 '07 #25
>I was just wondering if it were possible for you to make a post without
>admonishing someone or complaining!

I have made a polite and well-founded request. If you cannot differentiate
that from admonishing or complaining, you are definitely wrong here.
Or, more succinctly, "No".
--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk
Sep 21 '07 #26
On Wed, 19 Sep 2007 18:32:43 -0700, RobG wrote:
View the page source. It uses a combination of: Prototype.js,
scriptaculous.js and lightbox.js. The effect may look cool the first
couple of times you see it, but it very quickly becomes a boring waste
of time while you wait for the image to display.
Yeah, lightbox javascript is super famous on the Internet. I also prefer
a regular popup window.

--
Charles A. Landemaine
http://landemaine.blogspot.com
Nov 24 '07 #27

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: rcs | last post by:
Looks like you've come to a real Z00 here! Yeap! We have goats, we have horses, sheep, snakes, even dogs! e have lots of @n1m@ls here and we also have lots of g1r|s who just love to have some s....
0
by: jirap | last post by:
Looks like you've come to a real Z00 here! Yeap! We have goats, we have horses, sheep, snakes, even dogs! e have lots of @n1m@ls here and we also have lots of g1r|s who just love to have some s....
3
by: Richard Pain | last post by:
Having thought they'd go over to mysql, they've decided to stick with sql server. The hosting company don't allow direct connection to the database with enterprise manager so I don't think I can...
2
by: Trent | last post by:
I discovered "A List Apart" (http://www.alistapart.com/) about a month ago and really enjoy their articles. They haven't posted any new articles in awhile, though. How often do they update? What...
3
by: Xiangliang Meng | last post by:
Hi, all. In 1998, I graduated from Computer Science Dept. in a university in China. Since then, I've been using C Language for almost 6 years. Although I'm using C++ in my current job, I'm also...
182
by: Jim Hubbard | last post by:
http://www.eweek.com/article2/0,1759,1774642,00.asp
4
by: Martin M. | last post by:
Hi, I have the following question: How can an imported module see/find the path to itself? Background: From my main script I import a module which needs a file (AppleScript) located in the...
9
by: Michael Redbourn | last post by:
Hi, I just switched from FP to DW and am very very happy ! So whilst I'm mastering Dreamweaver (gonna be a while yet :-) - I thought that I'd try and find out how to add borders for browers...
1
by: =?Utf-8?B?RGF2aWRS?= | last post by:
Hi When running a Systemtec/Norton scan various jpeg/mpeg files are listed as being scanned (they do not appear as dangerous). However I understand these files where manually deleted sometime...
1
by: jidixuelang | last post by:
aj.get = function(targetUrl, resultHandle) { aj.targetUrl = targetUrl; aj.XMLHttpRequest.onreadystatechange = aj.processHandle; aj.resultHandle = resultHandle; if(window.XMLHttpRequest) {...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.