---
title: "“同意”按钮10秒,10秒后可以点击的按钮"
author: "txf2004"
date: "2009-07-29T09:54:00Z"
tags: []
slug: "10-10"
draft: false
lastmod: "2009-09-18T18:25:14Z"
id: 471150
url: "https://txf2004.iteye.com/blog/471150"
---

坛上注册比较多用到的  
&lt;script&gt;  
i=9  
function change()  
{  
i--;  
p.value="同意"+i  
if(i==0)  
{ p.disabled=false}  
else  
setTimeout("change()",1000)  
}  
window.onload=change;  
&lt;/script&gt;  
&lt;input type=button name=p disabled&gt;