JQuery Colorbox [英] JQuery Colorbox

查看:129
本文介绍了JQuery Colorbox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在没有事件绑定的情况下在页面加载时显示Colorbox?在一个更简单的术语中,我希望Colorbox在页面加载时立即加载。

How can I show Colorbox on page load without event binding? In a more simple term I would like the Colorbox to load immediately on page load.

这是我目前正在使用的Colorbox http://colorpowered.com/colorbox/

this is the Colorbox which I am currently using http://colorpowered.com/colorbox/

推荐答案

如果您希望在没有用户交互的情况下打开

You need to pass the open:true key/value set to the constructor if you want it to open without user interaction:

 $("selector").colorbox({ other_key:other_value, open: true});

但是,如果您要关闭该框并尝试重新打开它,它仍会绑定到事件。

However, it still binds to events if you were to close the box and try to reopen it.

这篇关于JQuery Colorbox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆