$(document).ready(function(){
var j = 1;
$(".handle").each(function(){
if($.browser.msie&&($.browser.version <= "9.0"))
{
$(this).children("p").html(j);
j++;
}
else{
var i = $(this).attr("id");
$(this).children("p").html(i);
}
})
$(".handle").click(function(){
if(!$(this).siblings(".slide").is(":visible")){
$(this).addClass("select");
$(this).siblings(".slide").animate({width:"show"},200);
$(this).parent().siblings().children(".slide").animate({width:"hide"},200);
$(this).parent().siblings().children(".handle").removeClass("select");
}
})
})
|