Trigger Lightbox onLoad w/ Delay
问题 Does anyone familiar with Lightbox2 (http://www.huddletogether.com/projects/lightbox2/) know how to trigger a lightbox onLoad and preferably with a 1 minute delay? 回答1: I used some info from another SO post to simulate the click event: Trigger an event with Prototype Get the code from event.simulate.js and include a reference in your file. <script src="js/simulate.js" type="text/javascript"></script> Add an id to the anchor link you want to auto-fire: <a href="images/image-1.jpg" id="openLink