「auto_thickbox.js」を作成
$(document).ready( function() {
$(".mt-enclosure-image a").addClass("thickbox");
});
以下の順番でhead内に読み込み
「jQuery.js」
「auto_thickbox.js」
「thickbox.js」
自動的に、<a>要素に「class="thickbox"」が付与される。
欠点
popup表示は出来ません、表示がおかしくなります。
参照:
http://blog.chibatch.jp/articles/mtlightview.html
0 件のコメント:
コメントを投稿