I’m trying to fire up lightbox when a page load, using anchor to specify good image to show up.
However, it won’t work… I’ve tried many things, without success 🙁
Here is an example:
Page is called with anchor added to page name. Ie: http://www.mysite.com/portfolio/#les-quais.jpg
window.onload = gotoanchor();
//Get element, using ID (where ID = anchor name)
var idd = document.getElementById(document.location.hash.substring(1));
- The topic ‘[Plugin: jQuery Lightbox] Show lightbox on page load with Anchor’ is closed to new replies.