worpdress这两年热度是蹭蹭往上涨,我了解到大半是做资源站的。
当然这个肯定是违规的,为了心里安慰已经不能只限于用一个描述也来发布侵权说明,或者什么什么的..
话不多说上案例! 这个同意协议 必须勾选同意后才能下载。有几处BUG,不过不影响使用,懒得去改了。哈哈··
案例
html部分
<div style="width:200px; height:200px; overflow:scroll;" >
<p>文章内容</p>
<p>文章内容</p>
<p>文章内容</p>
</div>
<input type="checkBox" onclick="if (this.checked) {enable()} else {disable()}">同意协议
<input type="button" id="accept" disabled="true" value="确定">
js部分
<script type="text/javascript" >
function disable()
{
document.getElementById("accept").disabled=true
}
function enable()
{
document.getElementById("accept").disabled=false
}
</script>
css部分
这个我就没加了用的自带的,有需要可以自己美化一下。
原文链接:https://www.baijiascw.com/25560.html,转载请注明出处。
评论0