1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| <script type="text/javascript">
$(document).ready(function(){
$("#featureCarousel").featureCarousel({topPadding:0,sidePadding:0,carouselSpeed:1500});
jQuery.expr[':'].regex = function(elem, index, match) {
var matchParams = match[3].split(','),
validLabels = /^(data|css):/,
attr = {
method: matchParams[0].match(validLabels) ?
matchParams[0].split(':')[0] : 'attr',
property: matchParams.shift().replace(validLabels,'')
},
regexFlags = 'ig',
regex = new RegExp(matchParams.join('').replace(/^\s+|\s+$/g,''), regexFlags);
return regex.test(jQuery(elem)[attr.method](attr.property));
}
$("#featureCarousel .feature:regex(css:z-index, ^1$))").mouseover(function(){$(this).find("p").show();});
$("#featureCarousel .feature:regex(css:z-index, ^1$))").mouseout(function(){$(this).find("p").hide();});
});
</script> |
Partager