Log in

View Full Version : Auto-Launch "Lightbox"



Shadowless
02-18-2009, 04:06 PM
Hi !!! Just one silly question:
Is it posible to execute the "Lightbox" script without clicking on an anchor tag link ? ( <a href=" ... "> click here </a>)
Thank you very much. ^_^

bluewalrus
02-18-2009, 11:23 PM
What do you mean? What you put isn't an anchor link. But yes lightbox can be used with anylink anchor or real but maybe you meant you want the link to open in lightbox regardless of what it is or you want it to load upon entering the page without clicking it? Those 2 no not without altering or using a modifed lightbox. But <a href="image.gif" rel="lightbox[roadtripwhat]">Click here to launch gallery </a><a href="secondimage.gif" rel="lightbox[roadtripwhat]"></a> would work to launch 2 or however many you want.

Shadowless
02-19-2009, 12:07 AM
Sorry, my bad, i didnīt express myself very well.
Yes, i meant that i wanted it to load upon entering the page without clicking it.
Ok, so now i know i must modify it. ^_^!
Thank you very much !!!

bluewalrus
02-19-2009, 01:54 PM
http://www.bram.us/2007/07/30/my-code-snippet-automatically-start-lightbox-on-page-load/