Posts Tagged ‘mootools’
Voici une petite fonction utile permettant de faire « clignoter » des éléments de manière récurrente. Il s’agit en fait d’un simple appel à la fonction highlight de mootools… window.addEvent(’domready’,function(){ setInterval("glowItems(‘.glow’,'#FFFFFF’,'#FFAA00′);",1500); }); function glowItems(className,colorStart,colorEnd){ $$(className).each(function(item){ item.highlight(colorStart,colorEnd); }); } Exemple : Cette fonction peut être utile dans un tableau oû on certaines lignes ont besoin d’une attention particulière par exemple… Il suffit de…