<SCRIPT LANGUAGE="JavaScript">
<!--
function ObjectA(text) {
this.property = "o";
var s_obj = this;
this.text = (text!=null) ? text : "not set the text.";
this.viewText = function() {
alert(s_obj.text);
};
this.showText = function() {
setTimeout(s_obj.viewText, 1000);//怎样定时调用对象内的viewText()方法
//setInterval("this.viewText()", 5000);
};
}
//-->
</SCRIPT>
<INPUT TYPE="button" NAME="" value="showText" onclick="var o = new ObjectA('sssssssssssssssssss'); o.showText();">