Visual LightBox
Is it possible to open pop up window of lightbox design on page load?
Q: I've researched to exhaustion and have come down to a couple modal boxes that might suite my needs. Yours is one I'm considering purchasing. However, I need to know if it is capable, in a very easy way, of opening a modal box on page load rather than on click.
This is not to say I'd never want an on click event. It's just that the homepage requires an on page load event.
A: You can start your gallery on page load:
Set the following function in the <head> tag of your page:
<script type="text/javascript">
Event.observe(window, "load", function () { Lightbox.start(document.getElementById('firstImage'))});
</script>
Set the ID for any image in your gallery (id="firstImage"), for example add it to the first image:
<a rel="lightbox_vlb" href="data/images/dscn6831.jpg" title="dscn6831" id="firstImage">
That's all.