加载页面时加载 Lightbox 变体
目前,当访问者单击我页面上的某个链接时,会触发灯箱。但是,作为对新用户的介绍,我还想在访问者加载页面时显示灯箱。
我一直在研究点击事件,但似乎无法让它发挥作用。有人可以指出我正确的方向吗?
该网站位于 http://wandree.websites.xs4all.nl/test,并且目前,当您按下侧边栏中的电视图像时,会触发灯箱。
感谢您的帮助!
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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在页面的
head
部分尝试此操作:Try this in the
head
section of the page: