简体   繁体   中英

Loading a Lightbox variant when page is loaded

Currently a lightbox is triggered when a visitor clicks a certain link on my page. However, as an introduction to new users I'd also like to show the lightbox when a visitor loads a page.

I've been looking into click events, but I can't seem to get it to work. Could somebody please point me in the right direction?

The site is located on http://wandree.websites.xs4all.nl/test , and the lightbox is currently triggered when you press the image of the tv located in the sidebar.

Thanks for any help!

Try this in the head section of the page:

$(document).ready(function(){
  // Call the lightbox function.
});

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM