concerning table row selector

concerning table row selector

well , this code works for me , but there is something wrong , every time the function loads (every 2.5 seconds )

the html is loaded in row [0] cell[0] , and they are stacked above each other . what may be wrong there ?

code :

  1. var searchtable=document.getElementById("searchtable")
    var resultscount=0

    function resultfound()
    {
    searchtable.insertRow(resultscount)
    searchtable.rows[resultscount].insertCell(0)
    searchtable.rows[resultscount].cells[0].style.height=295+'px'
    searchtable.rows[resultscount].cells[0].style.width=625+'px'
    searchtable.rows[resultscount].cells[0].style.background="url(file://localhost/D:/SiteDB/mysite/images/ref-bg.png) no-repeat center center";


    $(searchtable.rows[resultscount].cells[0]).load("file://localhost/D:/SiteDB/mysite/tech/ref/techtopic2.html") // i doubt something is worng here that loads the techtopic2.html everytime into the row [0]
    resultscount=resultscount+1







    }
    setInterval("resultfound();",2500)