|  Identification  |  Créer un compte
La gestion et le succès du pouvoir
Par Daniel Herrmann  |  21 Décembre 2009  |  Ecouté 907 fois



new Starbox('ratig_elmt1', 4.5, { overlay: 'pointy.png', className: 'pointy', onRate:function(element, info) { var UpdateRating = new Ajax.Request('/modules/rating/?n='+info.rated+'&vars=topmessages|message_nbvote|message_pointsvote|message_id|7289',{method: 'get'}); var indicator = element.down('.indicator'); indicator.update('Vous avez voté ' + info.rated + '/' + '5'); window.setTimeout(function() { indicator.update('Merci pour votre vote') }, 2000); new Effect.Highlight(indicator); }, indicator: '#{total} votes (note : #{average}/5)', total: 10 }); // attach the custom events on DOM loaded document.observe('dom:loaded', function() { $w('1').each(function(demo) { $('ratig_elmt' + demo).observe('starbox:changed', starboxChangedText) // observe the mouseover .observe('starbox:rated', starboxRatedText) // observe the click .observe('starbox:left', starboxLeftText); // observe the mouseout }); });
 
Envoyer à un(e) ami(e)    Publier
 

Poster un commentaire