Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Drupal7 ではカラーボックスを使用しており、カラーボックスの画像リンク (ロードされたページのすべてのカラーボックス リンクの最初のもの) を複製し、それを div タグに追加する必要があります。どうすればjavascript/jqueryでそれを行うことができますか? thnx!
私はこの解決策を見つけました:
$('#main-stuff').append('<div id="bgImgOverlay"></div>').css("cursor","pointer"); $('#bgImgOverlay').click(function() { $("a[rel='gallery-all']").colorbox({open:true}); });