Subversion Repositories ALCASAR

Rev

Rev 1157 | Rev 2134 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1157 Rev 1225
Line 12... Line 12...
12
<dd><img src="/images/mini-tux.png" alt="linux" WIDTH="65" HEIGHT="72"></dd>
12
<dd><img src="/images/mini-tux.png" alt="linux" WIDTH="65" HEIGHT="72"></dd>
13
</div>
13
</div>
14
<div ID="obj3" STYLE="position:absolute;TOP:0px;LEFT:0px;width:20px;height:18px;">
14
<div ID="obj3" STYLE="position:absolute;TOP:0px;LEFT:0px;width:20px;height:18px;">
15
<dd><img src="/images/mini-tux.png" alt="linux" WIDTH="65" HEIGHT="72"></dd>
15
<dd><img src="/images/mini-tux.png" alt="linux" WIDTH="65" HEIGHT="72"></dd>
16
</div>
16
</div>
-
 
17
<div ID="obj4" STYLE="position:absolute;TOP:0px;LEFT:0px;width:20px;height:18px;">
-
 
18
<dd><img src="/images/mini-tux.png" alt="linux" WIDTH="65" HEIGHT="72"></dd>
-
 
19
</div>
17
<CENTER><H2>A.L.C.A.S.A.R</H2>
20
<CENTER><H2>A.L.C.A.S.A.R</H2>
18
<H3>
21
<H3>
19
Application Libre pour le Contr&ocirc;le Authentifi&eacute; et S&eacute;curis&eacute; des Acc&egrave;s au R&eacute;seau
22
Application Libre pour le Contr&ocirc;le Authentifi&eacute; et S&eacute;curis&eacute; des Acc&egrave;s au R&eacute;seau
20
</H3></CENTER>
23
</H3></CENTER>
21
<script LANGUAGE="javascript">
24
<script LANGUAGE="javascript">
Line 27... Line 30...
27
//Code d'animation
30
//Code d'animation
28
/* On récupère les 3 calques */
31
/* On récupère les 3 calques */
29
var div1 = document.all.obj1.style;
32
var div1 = document.all.obj1.style;
30
var div2 = document.all.obj2.style;
33
var div2 = document.all.obj2.style;
31
var div3 = document.all.obj3.style;
34
var div3 = document.all.obj3.style;
-
 
35
var div4 = document.all.obj4.style;
32
var objet;
36
var objet;
33
objet = new Array(div1,div2,div3)
37
objet = new Array(div1,div2,div3,div4)
34
/* On placer l'objet (i) au coordonnees (px,py) */
38
/* On placer l'objet (i) au coordonnees (px,py) */
35
function placeObj(i,px,py)
39
function placeObj(i,px,py)
36
	{
40
	{
37
	objet[i].left=px;
41
	objet[i].left=px;
38
	objet[i].top=py;
42
	objet[i].top=py;
39
	}
43
	}
40
/* On se place au centre de la fenêtre */
44
/* On se place au centre de la fenêtre */
41
var yBase = window.innerHeight/3;
45
var yBase = window.innerHeight/3;
42
var xBase = window.innerWidth/3;
46
var xBase = window.innerWidth/3;
43
var delay = 55;
47
var delay = 1005;
44
var yAmpl = 10;
48
var yAmpl = 20;
45
var yMax = 40;
49
var yMax = 50;
46
var step = .1;
50
var step = .1;
47
var ystep = .25;
51
var ystep = .25;
48
var currStep = 0;
52
var currStep = 0;
49
var tAmpl=1;
53
var tAmpl=1;
50
// définition du centre de gravité
54
// définition du centre de gravité
Line 52... Line 56...
52
var Ypos = 220;
56
var Ypos = 220;
53
var j = 0;
57
var j = 0;
54
function animation()
58
function animation()
55
	{
59
	{
56
	var cx;var cy;
60
	var cx;var cy;
57
	for ( j = 0 ; j < 3 ; j++ )
61
	for ( j = 0 ; j < 4 ; j++ )
58
		{
62
		{
59
		// merci à supelec pour la fonction
63
		// merci à supelec pour la fonction
60
		cx=Xpos + Math.sin((20*Math.sin(currStep/20))+j*70)*xBase*(Math.sin(10+currStep/(10+j))+0.2)*Math.cos((currStep + j*25)/10);
64
		cx=Xpos + Math.sin((20*Math.sin(currStep/20))+j*70)*xBase*(Math.sin(10+currStep/(10+j))+0.2)*Math.cos((currStep + j*25)/10);
61
		cy=Ypos + Math.cos((20*Math.sin(currStep/(20+j)))+j*70)*yBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + j*25)/10);
65
		cy=Ypos + Math.cos((20*Math.sin(currStep/(20+j)))+j*70)*yBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + j*25)/10);
62
		placeObj(j,cx,cy);
66
		placeObj(j,cx,cy);