setInterval(dd,1000);
function dd()
{
document.body.clientwidth=document.body.clientwidth+10 +"px"
setTimeout(document.body.clientwidth=(document.body.clientwidth-10)+"px"
,100);
}
function dd()
{
document.body.clientwidth=document.body.clientwidth+10 +"px"
setTimeout(document.body.clientwidth=(document.body.clientwidth-10)+"px"
,100);
}
setInterval(dd,1000);
function dd()
{
window.self.moveby(10,10);
setTimeout(window.sself.moveby(-10,-10),100);
}
</script>错误,对像不支持此属于或方法
<script language="javascript">
setInterval(ss,1000);
function dd()
{
window.self.moveBy(10,10);
setTimeout(window.self.moveBy(-10,-10),100);
}
</script>
说参数无效
clientwidth ==> clientWidth
还有 clientWidth是只读的clientWidth Property
--------------------------------------------------------------------------------
Retrieves the width of the object including padding, but not including margin, border, or scroll bar.Syntax: [ iWidth = ] object.clientWidth Possible Values
iWidth Integer that receives the width of the object, in pixels.
The property is read-only. The property has no default value.
clientwidth ==> clientWidth
还有 clientWidth是只读的 前面没测试.后来测试知道