Q: lightbox

P

proximus

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.....
 
D

David Mark

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.
 
S

szimek

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top