0
如何让我的colorbox在查询字符串存在时自动显示。 到目前为止,我有以下几点:jquery colorbox在页面启动时自动显示
$(document).ready(function()
{
//if this is coming from continental
if (document.location.href.indexOf("redirect=cfs") != -1)
{
//create box
var $notice = $("<div>hello World</div>").appendTo($("body"));
console.log($notice.text());
$notice.colorbox({ inline: true, width: "965px" });
}
});
但是,这并没有帮助,因为它似乎是你有点需要触发颜色框显示的东西吗?
编辑: 我才意识到,你可以使用$.colorbox
,但我如何得到我的内容到它?
问候, 雅克