蝈蝈俊在吗..关于你的论坛htc的问题
function init(){
var colls=element.document.all.tags("textarea");
var collnum=colls.length;
if(window.IEVersion>5.0)
{
element.runtimeStyle.overflow="visible";
return;
}
else
{
TimerID=0;
for(var i=0;i<collnum;i++)
{
var height=colls[i].scrollHeight;
if(height<10)
{
//alert(element.uniqueID);
TimerID=setTimeout("body.init()",1000);
//这个地方运行在htc的上下文,应该改成element.init();
//有body.init()这样的用法吗,只有window.function()这样的用法,而这里是htc的成员
//函数只能用[绑定元素.元素成员]
return;
}
colls[i].runtimeStyle.height=height+"px";
}
}
}