Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Q: lightbox

Reply
Thread Tools

Q: lightbox

 
 
proximus
Guest
Posts: n/a
 
      02-12-2008
hello
sorry on my bad english, at first

i have this problem

i have gallery page with thumbs, on click it's activate lightbox with
....rel="lightbox"....
question:
is it possible to start slideshow imeadlity when page "gallery.php" loads
not 'on click' on thumbs?

thanks.....


 
Reply With Quote
 
 
 
 
David Mark
Guest
Posts: n/a
 
      02-12-2008
On Feb 12, 1:27*pm, "proximus" <(E-Mail Removed)> wrote:
> hello
> sorry on my bad english, at first
>
> i have this problem
>
> i have gallery page with thumbs, on click it's activate lightbox with
> ...rel="lightbox"....
> question:
> is it possible to start slideshow imeadlity when page "gallery.php" loads
> not 'on click' on thumbs?
>
> thanks.....


A: Don't use Lightbox. It is a bad script built atop an even worse
one (Prototype.) IIRC, somebody put out a version that is built atop
jQuery, but that is an even worse proposition.

If you insist on using the script, read the documentation and/or post
your question to a Lightbox forum.
 
Reply With Quote
 
 
 
 
szimek
Guest
Posts: n/a
 
      02-13-2008
proximus napisał(a):
> hello
> sorry on my bad english, at first
>
> i have this problem
>
> i have gallery page with thumbs, on click it's activate lightbox with
> ...rel="lightbox"....
> question:
> is it possible to start slideshow imeadlity when page "gallery.php" loads
> not 'on click' on thumbs?
>
> thanks.....


Lightbox script adds the following code to each link with
rel="lightbox":
onclick="myLightbox.start(this); return false;"

So you could do something like this:
<body onload='initLightbox();
myLightbox.start( document.getElementById("id_of_a_link") );'>

Not tested, but should work.
 
Reply With Quote
 
 
 
Reply

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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
New Free, powerful image editor called LightBox robnelsonxx2@yahoo.com NZ Computing 0 07-05-2008 01:26 AM
Making a lightbox? Richard DeLuca Digital Photography 22 11-28-2007 03:51 AM
Photo in Backlit Lightbox Don Digital Photography 6 09-06-2005 10:52 AM
ACDSee v3.1 Lightbox replacement (Upgraded to v7 PP) Engelkott Digital Photography 4 03-13-2005 08:31 PM
Lightbox Photo Gallery Software mko Digital Photography 0 01-10-2004 06:10 PM



Advertisments