これは私が今持っているものです: http://jsfiddle.net/LQ4JT/833/
色付きの div に少し移動すると、4 つのリンクがあることがわかります。各リンクで div の 1 つが前面に表示されるようにします。
これどうやってするの?
$(document).ready(function() {
var a = 3;
$('#box1,#box2,#box3,#box4').draggable({
start: function(event, ui) { $(this).css("z-index", a++); }
});
$('#dragZone div').click(function() {
$(this).addClass('top').removeClass('bottom');
$(this).siblings().removeClass('top').addClass('bottom');
$(this).css("z-index", a++);
});
);