function document.onreadystatechange()
{
if (YInitialized) return;
YInitialized = true;
var i, s, curr; for (i=0; i<document.body.all.length; i++)
{
curr=document.body.all[i];
if (curr.className == "yToolbar")
{
InitTB(curr);
yToolbars[yToolbars.length] = curr;
}
}
DoLayout();
window.onresize = DoLayout; Composition.document.open();
Composition.document.write("<head><style type=\"text/css\">body {font-size: 10.8pt}</style><meta http-equiv=Content-Type content=\"text/html; charset=gb2312\"></head><BODY bgcolor=\"#FFFFFF\" MONOSPACE></body>");
Composition.document.close();
Composition.document.designMode="On";
}会报错,但是改成document.onreadystatechange=function()
{
if (YInitialized) return;
YInitialized = true;
var i, s, curr; for (i=0; i<document.body.all.length; i++)
{
curr=document.body.all[i];
if (curr.className == "yToolbar")
{
InitTB(curr);
yToolbars[yToolbars.length] = curr;
}
}
DoLayout();
window.onresize = DoLayout; Composition.document.open();
Composition.document.write("<head><style type=\"text/css\">body {font-size: 10.8pt}</style><meta http-equiv=Content-Type content=\"text/html; charset=gb2312\"></head><BODY bgcolor=\"#FFFFFF\" MONOSPACE></body>");
Composition.document.close();
Composition.document.designMode="On";
}就不会报错,请问是什么原因
解决方案 »
- 求一段js代码,需要改变页面超链接前面代码的一段代码
- JQUERY怎么得到 CLASS
- javascript firefox兼容问题
- 如何用JAVASCRIPT脚本修改网页的内容?
- JS读本地数据 的问题 进来看看
- 多个图层的显示隐藏问题
- 下面的javascpipt代码为何不执行?
- 怎么做个和CSDN一样的显示导航栏的东东,要一模一样的!代码看不懂!
- 请问如何取得表格(table)的某行,某列位置
- IE8如何实现跨域
- 80分急求助:滑动图片右侧出现undefined字样,如何消除(内附详图和代码)
- 用window.open()打开一个子窗体,然后焦点聚焦到子窗体上,怎样在ie8,firefox上兼容?
就算不是document.onreadystatechange
function a.b也是错了,LZ学习一下函数命名规则