<!-- Feedsky FEED发布代码开始 --> <!-- FEED自动发现标记开始 --> 点击这里使用RSS订阅本Blog: <link rel="alternate" href="http://feed.feedsky.com/softwave" type="application/rss+xml" title="RSS 2.0"> <!-- FEED自动发现标记结束 --><script language="javascript"><!-- main_sub="c1s67"; more_subs=""; --> </script><script language="javascript" src="http://www.feedsky.com/jsout/publishlist_v2.js?burl=softwave&out_html=true"></script><!-- Feedsky FEED发布代码结束 -->
<
input
id
="button"
name
=""
type
="button"
value
="10注册"
disabled
/>
<
script
type
="text/javascript"
>
window.onload
=
function
()
{
bindButton(
10
);
}
function
bindButton(num)
{
window.setTimeout(
"
viewButton(
"
+
num
+
"
)
"
,
1000
);
}
function
viewButton(i)
{
var
obj
=
document.getElementById(
"
button
"
);
i
=
i
-
1
;
obj.value
=
i
+
"
注册
"
;
if
(i
>
0
)
{
bindButton(i);
}
else
{
obj.value
=
"
注册
"
;
obj.disabled
=
false
;
}
}
</
script
>
摘自【http://bbs.blueidea.com/thread-2854393-1-1.html】
几秒后才能点按扭的源代码
重点在于setTimeout方法的应用,IE6及FF2下测试通过




















摘自【http://bbs.blueidea.com/thread-2854393-1-1.html】
<!-- Google Reader shared发布代码开始 --> <script type="text/javascript" src="http://www.google.com/reader/ui/publisher.js"></script><script type="text/javascript" src="http://www.google.com/reader/public/javascript/user/00697638153916680411/state/com.google/broadcast?n=5&callback=GRC_p(%7Bc%3A%22green%22%2Ct%3A%22%5Cu8FD9%5Cu4E9B%5Cu6587%5Cu7AE0%5Cu4E5F%5Cu503C%5Cu5F97%5Cu4E00%5Cu770B%22%2Cs%3A%22false%22%7D)%3Bnew%20GRC"></script><!-- Google Reader shared发布代码结束 -->