CSDN博客

img 2002pine

findtext

发表于2004/9/24 17:19:00  632人阅读

 function findGrid(sss) { var table=document.all.DataGrid1; var len=table.rows.length; for(i=0;i<len;i++) { var c=table.rows[i].cells[0]; if (sss==c.innerText) { c.scrollIntoView(); c.focus(); c.onclick=aaa; c.onclick=null; c.parentElement.attachEvent("onclick", aaa); c.parentElement.detachEvent("onclick", aaa); c.parentElement.onclick=function aaa(){window.alert('row');}; c.parentElement.style.display='none'; c.style.pixelTop=10000; window.scrollTo(0, document.body.scrollHeight) window.scroll(0,screen.height); window.scrollTo(0,2000); window.scrollTo(c.scrollWidth,c.offsetTop); return; } } } function aaa(){window.alert('row');}
阅读全文
0 0

相关文章推荐

img
取 消
img