function showPromoteAdverts(div_name) { var div = document.getElementById(div_name); div.style.width=100; div.style.height=20; div.style.backgroundColor="black"; div.style.color="white"; for(var iter = 1; iter <js_counter; iter++) { a=document.createElement("a"); a.setAttribute("href","pocuradvert.php?adidadi="+js_id_adv[iter]+""); a.appendChild(document.createTextNode("["+iter+"] ")); a.style.color="white"; a.id=iter+"link"; div.appendChild(a); a.onclick=function() { //showImage(~~parseInt(this.id,10)); } a.onmouseover=function() { showImage(~~parseInt(this.id,10)); js_showData("adverts",~~parseInt(this.id,10)); } } }
czy da się na podstawie eventhandlera zrobić tak, żeby co jakiś czas event hanlder wywoływał się sam?

dzięki z góry