var myx=800*Math.random(); var myy=20 + 580*Math.random(); this.setAttribute("i", ++i); parent.goo.setText("I:"+i); var blah=new LzView( null,{ width : (800 - myx)*Math.random(), height : (580 - myy) * Math.random() , bgcolor : parseInt(0xffffff)*Math.random(), //opacity : Math.random(), //visible : false, //clickable : true, //onclick : "this.setAttribute('bgcolor',0)", y:myy, name : String(i +1), x:myx }); del = new LzDelegate ( blah, "destroy"); LzTimer.addTimer(del, 1000 );