Looking for A code

Hi Boonex brothers and sisters

I need a code for  when people read My "terms and Conditions" they need to  check a little box before they can Enter a certain section of the site , I Would like it to be where they would have to scroll all the way down the "Terms and conditions" before they could check the box and Continue continue.

Below is a code but it is not working Like it should be at times you can just click the button and continue....Not good! if anyone could help me out with a better code I could input in my block I would be thankful

 

 

 

<p>Terms and Conditions</p>
<script type="text/javascript">// <![CDATA[
function CheckAgreement() {
  if (document.getElementById('CBox').checked) {
    document.getElementById('btnContinue').disabled = false;
  } else {
    document.getElementById('btnContinue').disabled = true;
  } 
}
// ]]></script>
<p><textarea cols="20" rows="3" readonly="readonly">You must be in agreement with these Terms and Conditions in order to continue </textarea> <input id="CBox" onclick="CheckAgreement()" type="checkbox" />Yes, I agree. <button id="btnContinue" onclick="document.location.href='http://www.webdeveloper.com/forum/showthread.php?t=199928'"> Continue</button><button> </button></p>

Quote · 2 Mar 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.