随笔 - 25, 文章 - 1, 评论 - 0, 引用 - 0
数据加载中……

[20100531]-[Javascript]-[IE判断是否网页元素加载完毕]

function document.onreadystatechange()
{

if (document.readyState=="complete"{
    change11();
   }

}

function change11(){
    
    
var year11= (new Date()).getFullYear();
    
    
var targetdiv1 = document.getElementById('idResultsTableParent');
    
var targettable1 = targetdiv1.firstChild;
    targettable1.rows(
0).cells(2).innerHTML=(year11-1)+'年次均费用';
    targettable1.rows(
0).cells(3).innerHTML=(year11-2)+'年次均费用';
    targettable1.rows(
0).cells(4).innerHTML=(year11-3)+'年次均费用';
    targettable1.rows(
0).cells(5).innerHTML=(year11-4)+'年次均费用';
    targettable1.rows(
0).cells(6).innerHTML=(year11-1)+'年同比';
    targettable1.rows(
0).cells(7).innerHTML=(year11-2)+'年同比';
    targettable1.rows(
0).cells(8).innerHTML=(year11-3)+'年同比';
}

只对IE有效

posted on 2010-05-31 17:17 至尊贝贝 阅读(496) 评论(0)  编辑  收藏 所属分类: 代码:JavaScript


只有注册用户登录后才能发表评论。


网站导航: