<style type="text/css">
div {
background: blue;
position: absolute;
width: 50px;
height: 50px;
}
</style>
<div id="div" />
<script type="text/javascript">
var i = 0;
!function() {
if(++i <= 100) {
document.getElementById('div').style.cssText = 'top:' + i + 'px; left:' + i + 'px';
setTimeout(arguments.callee, 10);
}
}();
</script>