在页面加载时打开Colorbox [英] Open Colorbox on page load

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

问题描述

我一直在尝试使Colorbox能够在页面加载时工作,但是我只能看到纯背景的加载.我使用了这段代码

I have been trying to make the colorbox work on page load, but I can see only the loading with a plain background. I used this code

$.fn.colorbox({id:'', title:'',open:true});

您可以在此处找到演示

http://www.bloggermint.com/demos/popupsub/colorbox/example5/index.html

推荐答案

<script type="text/javascript"> 
        $(document).ready(function(){
          $.colorbox({width:"30%", inline:true, href:"#subscribe"});
        }); 
</script>  

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

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