$(document).ready(function(){ $("#contexte2 .listagebloc:last").css("border-bottom","0").css("padding-bottom","0"); $("#navigation .niveau1:last").css("border-left","0"); // fait marcher le menu a deux niveaux $('#navigation').children('.niveau1').each(function(){ $(this).mouseover(function() { $(this).children('.ulniveau2').show(); $(this).css("background","url('plugins/magusine/themes/womenlife/images/fond-nav-niv1.png') top left repeat-x #e30071").css("padding-bottom","8px"); $(this).children('a').css("color","white"); }) $(this).mouseout(function() { $(this).children('.ulniveau2').hide(); $(this).css("background","none top left repeat-x transparent").css("padding-bottom","2px"); $(this).children('a').css("color","#e30071"); }); }); $('#contexte1 .listageconteneur li').each(function(){ hauteur=$(this).find("img").eq(0).height(); hauteurtext=$(this).find(".listagetexte").eq(0).height(); if (hauteur > hauteurtext){ $(this).find(".listagetexte").eq(0).height(hauteur); } }); $('a[href^="http://"]').attr({target: "_blank", title: "Dans une nouvelle fenĂȘtre"}); });