商务合作:179001057@qq.com

让用户先读网站协议,同意后再报名

技术2022-05-12  1


某平台价值19860元的编程课程资料免费领取【点我领取】


 

 

先让强制用户等待九秒后,并且同意了网站协议,后再接受注册!

 

 

 

 

 

 

<mce:script type="text/javascript"><!-- function $(id) { return document.getElementById(id); } // --></mce:script>

 

 

 

 

<span align="center" id="rulebutton">请仔细阅读以上的注册许可协议</span> <mce:script type="text/javascript"><!-- var secs = 9; var wait = secs * 1000; $('rulebutton').innerHTML = "请仔细阅读以上的注册许可协议 (" + secs + ")"; for(i = 1; i <= secs; i++) { window.setTimeout("update(" + i + ")", i * 1000); } window.setTimeout("timer()", wait); function update(num, value) { if(num == (wait/1000)) { $('rulebutton').innerHTML = "请仔细阅读以上的注册许可协议"; } else { printnr = (wait / 1000) - num; $('rulebutton').innerHTML = "请仔细阅读以上的注册许可协议 (" + printnr + ")"; } } function timer() { $('rulebutton').innerHTML = '<asp:Button id="rulesubmit" name="rulesubmit" runat="server" Text="同 意" OnClick="submit_Click" />   <button type="button" οnclick="location.href=/'http://XXX.xxx.xxx//'">不同意</button>'; } // --></mce:script>


最新回复(0)