0

ギャラリー スクリプトで別の問題が発生しました

var tag = $('a.click [rel="gall"]');
$(tag).live('click', function() {
    $('body').append('<div class="curtain" />').append('<div class="box" />').css({'overflow':'hidden'});
    $('.box').css({'width': '400px', 'left': '400px', 'top': '50%', 'margin-left': '-200px', 'margin-top':'-200px'}).append('<a class="close" style="margin-left: 406px" title="close" ></a>').append('<div class="image" />').append('<p />');
    $('.close').click(function() {
        $('body').removeAttr('style');
        $('.curtain, .box').hide();
    })

    for(var i=0; i < $(this).find('img').length; i++) {
        var width = $('.image').width();
        $('.box p').html('<b>'+$(this).attr('title')+'</b><br />'+$(this).find('img').attr('alt'));
        $('.box .image').append('<img src="'+$(this).attr('href')+'" alt="image" />');
    }
    return false;
});

同じ rel 属性を持つリンクが他にもある場合、これにナビゲーションを追加する方法を知りたいですか?

これを行う方法、<a href="#" rel="gall" >img ですべてをカウントする方法、およびディスプレイが複数ある場合は、前の次のボタンを教えてください。

すべての答えが重要です:)

4

0 に答える 0