Bug 460926 A11y hierachy is broken on Ubuntu 8.10 (GNOME 2.24), r=Evan.Yan sr=roc
[wine-gecko.git] / testing / performance / talos / page_load_test / dhtml / slidingballs.html
blob4f25f5abf3b19aeca9d7558db769c2d8eba9faf6
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2 <HTML><HEAD>
4 <!-- MOZ_INSERT_CONTENT_HOOK -->
6 <SCRIPT type=text/javascript>
7 var xPos = new Array;
8 var yPos = new Array
9 var pointObj = new Array;
10 var intNumberOfBalls = 100;
11 var intNumberOfTimes;
12 var startTime;
14 function plotPoint()
16 for(var i=0; i<intNumberOfBalls; i++)
18 yPos[i] += 5;
19 xPos[i] += 5;
20 pointObject = pointObj[i];
21 pointObject.style.top = yPos[i]+'px';
22 pointObject.style.left = xPos[i]+'px';
25 if (intNumberOfTimes--!=0)
26 setTimeout("plotPoint()", 0);
27 else
28 tpRecordTime(Date.now() - startTime);
31 function startNow()
33 for(var i=0; i < 100; i++)
35 var objImageNode = document.createElement('img');
36 objImageNode.setAttribute('id','point' + i);
37 objImageNode.setAttribute('src','images/3dball.gif');
38 objImageNode.style.position = 'absolute';
39 objImageNode.style.width = '30px';
40 objImageNode.style.height = '30px';
41 document.body.appendChild(objImageNode);
42 pointObj[i] = document.getElementById("point"+i);
45 for(var i=0; i<100; i++)
47 xPos[i]=i*10;
48 yPos[i]=100;
50 intNumberOfTimes = 20;
51 plotPoint();
54 function mzDhtmlStart()
56 startTime = Date.now();
57 startNow();
60 </SCRIPT>
61 </HEAD>
62 <BODY onload="mzDhtmlStart();">
63 </BODY></HTML>