<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
#ickletest{ left:0px; top:0px; width: 100px; height: 100px; position:absolute; background: #f00; }
</style>
</head>
<body>
<div id="ickletest"></div>
<script type="application/javascript">
<!--
var start = new Date().getTime();
testObj = document.getElementById('ickletest');
testObj.style.left = '0px';
function move(){
testObj.style.left = parseInt(testObj.style.left)+10+'px';
var elapsed = new Date().getTime() - start;
console.log('move: ' + elapsed);
}
function doStuff(){
setTimeout(move(),1000);;
}
(function(){
doStuff();
setTimeout(arguments.callee,1500)
var elapsed = new Date().getTime() - start;
console.log('loop: ' + elapsed);
})()
-->
</script>
</body>
</html>