Register    Sign in
Authentification
uCoz Scripts » Forum scripts » –

Whose birthday is today

A great script for the forum - Whose birthday is today, the script makes a list of something like garlands, where nicks users start randomly at a specified rate to flash different colors.
Instalation : 

Go to CP -> Forum -> General appearance of forum pages and after $BODY$ add the following code :

Code

    
  <script type="text/javascript">  
  setInterval(function () {  
  var elem = $('.birthdaysBlock a');  
  var color = ['00FF00','FFCC00','0055FF','FA95CF','75693F','557711','FFDD99','99CCFF'];  
  var rnd1 = Math.floor(Math.random() * elem.length -1);  
  var rnd2 = Math.floor(Math.random() * color.length);  
  $('.birthdaysBlock a').eq(rnd1).css('color','#'+color[rnd2]);  
  $('.userAge').eq(rnd1).css('color','#'+color[rnd2]);  
  }, 250);  
  </script>  
    






Autor: cioLAN  2024-03-29, 15:55:04   Views : 1726   

Tags: Color, Birthday


Total comments (0)
ComForm">
avatar