All pastes #613666 Raw Edit

Untitled

public text v1 · immutable
·published 2007-07-11 03:18 UTC
rendered paste body
<html>
<body>

<div id="theObj1" style="position:absolute; left:10px; width:100; background-color:red">Hello1!</div>
<div id="theObj2" style="position:absolute; left:110px; width:100; background-color:blue">Hello2!</div>
<div id="theObj3" style="position:absolute; left:210px; width:100; background-color:lime">Hello3!</div>

<script>

inic("theObj1");
inic("theObj2");
inic("theObj3");

function inic(objeto,asincrono)
{
var crossobj=document.getElementById(objeto);

dropin.crossobj=crossobj;
dropin.dropstarted=setInterval(dropin,50)
}

function dropin()
{
dropin.crossobj.innerHTML+=dropin.crossobj.id+" <br>\n";
clearInterval(dropin.dropstarted)
}

</script>

</body>
</html>