开发者

Open an external page in a jQuery Colorbox

How can I open a jQuery colorbox with an external site loaded. I have tried:

jQuery(document).ready(function(){
jQuery.colorbox({ href:"http://www.google.com", iframe: true });
});

But with no success. I have not been able to find an example of this from either the colo开发者_Python百科rbox-site or SO.


Do you want the colorbox to open on the load of your page.

If yes You need to write.

jQuery.fn.colorbox instead of just jQuery.colorbox.

also specifcy width and height elements for your colorbox iframe.

http://colorpowered.com/colorbox/core/example1/index.html is having an example in Other Content Types section

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜