| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 
 | Dynamicvoyant.prototype.OnRefresh = function()
{
 
// Get the value
var value = this.m_arrayValueDefinition[0].getValue();	
 
   var red = Math.round((fond_couleur & 0x000000FF) >> 0);
   var green = Math.round((fond_couleur & 0x0000FF00) >> 8);
   var blue = Math.round((fond_couleur & 0x00FF0000) >> 16);
   var back = "fill:rgb("+ red +","+ green+","+blue+")";
 
   red = Math.round((fond_contour_couleur & 0x000000FF) >> 0);
   green = Math.round((fond_contour_couleur & 0x0000FF00) >> 8);
   blue = Math.round((fond_contour_couleur & 0x00FF0000) >> 16);
   var contour = "stroke:rgb("+ red +","+ green+","+blue+")"; 
 
 
if (clignotement == "Vrai")
{
 
var This=this;
 
function clignotte() 
{
alert ("1");
  if (This.m_variable_cligno == 0)
  {
    This.m_rectElem.setAttribute("style", "fill:rgb(255,255,255)"+ ";" +contour);
    This.m_variable_cligno = 1;
  }
  else
  {
    This.m_rectElem.setAttribute("style", back+ ";" +contour);
    This.m_variable_cligno = 0;
  }
}
 
if (this.m_timer1 == 0)
 {      alert ("j entre");
	var clignot = setInterval(clignotte ,1000);
	this.m_timer1 = 1;
}
 
}
 
else
{
 
clearInterval(clignot);
this.m_timer1 = 0;
 
this.m_rectElem.setAttribute("style", back+ ";" +contour);
 
}
 
 
    fond_contour_couleur = 0x00000000; 
    fond_couleur = 0x00808080;
 
} |