OBJECT EXPECTED ERROR 本帖最后由 winmaxi 于 2011-02-15 05:48:26 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 里面都是低级错误,下面是通过测试后的代码<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" ><head> <title>无标题页</title></head><body><script type="text/javascript">var hvac_value = new Array(7);var data_received = 0;var count = 0;function clickFunction() {count ++;//check_count();}function makeRequest(url) {// 向后台请求 接收数据, 这个地方省略了}function loop() { if (!data_received) makeRequest("hvacdata.cgi");}function check_count(){ if ( count%2==1) { var str = "<lable><INPUT TYPE='button' NAME='myButton' VALUE='stop_refreshing' onclick='clickFunction()'><\/label>"; document.getElementById("button1").innerHTML = str; loop(); } else if( count%2==0){ var str = "<lable><INPUT TYPE='button' NAME='myButton' VALUE='access data' onclick='clickFunction()'><\/label>"; document.getElementById("button1").innerHTML = str; } setTimeout("check_count()", 1000);}window.onload=check_count;</script><div id="button1"><label><INPUT TYPE="button" NAME="myButton" VALUE="access data" onclick="clickFunction()"> </label></div></body></html> 我要做一个随滚动条滚动的对联广告条 菜鸟想问一个jquery的简单问题!!! Ext:想实践下更好的ext书写习惯,这样写为什么不行呢 请教jstree 节点选择问题 裸求一展开树所有节点的递归算法,想了3天了,一筹莫展 如何用JS获取外部脚本的文件内容 我想用执行一个函数来模拟回车,有点问题请教! 再次讨论一下生成静态页面问题 jquery 实现超链接文字隐藏tr 内容 20分求真正则表达式,在线等待,马上给分!!! 请大家帮忙解下js,直接用别人js页面正常,将js下载来用,页面出错 js表单求和验证
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>无标题页</title>
</head>
<body>
<script type="text/javascript">
var hvac_value = new Array(7);
var data_received = 0;
var count = 0;function clickFunction() {
count ++;
//check_count();
}
function makeRequest(url) {// 向后台请求 接收数据, 这个地方省略了
}function loop() {
if (!data_received)
makeRequest("hvacdata.cgi");
}function check_count(){
if ( count%2==1) {
var str = "<lable><INPUT TYPE='button' NAME='myButton' VALUE='stop_refreshing' onclick='clickFunction()'><\/label>";
document.getElementById("button1").innerHTML = str;
loop();
}
else if( count%2==0){
var str = "<lable><INPUT TYPE='button' NAME='myButton' VALUE='access data' onclick='clickFunction()'><\/label>";
document.getElementById("button1").innerHTML = str;
}
setTimeout("check_count()", 1000);
}window.onload=check_count;</script>
<div id="button1">
<label>
<INPUT TYPE="button" NAME="myButton" VALUE="access data" onclick="clickFunction()">
</label>
</div>
</body>
</html>