クエリ文字列が存在する場合、カラーボックスを自動的に表示するにはどうすればよいですか。これまでのところ、次のものがあります。
$(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
が、どうすれば自分のコンテンツをそれに入れることができますか?
よろしく、ジャック