[ Index ]

PHP Cross Reference of IEUF

title

Body

[close]

/Pages/ -> lumieres.js (source)

   1  /* 
   2   * To change this template, choose Tools | Templates
   3   * and open the template in the editor.
   4   */
   5  
   6  tempo= 150; pas= 0.05; al_max= 0.4;
   7  var p= 0;
   8  var allumage= null;
   9  function AllumeProgressif(id) {
  10  if (p > al_max)
  11  clearInterval(allumage);
  12  p += pas;
  13  elt= document.getElementById(id);
  14  elt.style.opacity= p;
  15  elt.style.filter = 'alpha(opacity=' + (p*100) + ')';
  16  }
  17  function Allume(id) {
  18  p= 0;
  19  allumage= setInterval("AllumeProgressif('"+id+"')", tempo);
  20  }
  21  function Eteint(id) {
  22  if (allumage != null)
  23  clearInterval(allumage);
  24  elt= document.getElementById(id);
  25  elt.style.opacity= 0;
  26  elt.style.filter = 'alpha(opacity=0)';
  27  }
  28  
  29  
  30  


Generated: Fri Jan 31 19:59:00 2014 Cross-referenced by PHPXref 0.7.1