|
موضوع اسكريپت قبول شرايط و ضوابط
اين اسكريپت به كاربران و بازديد كنندگان سايت شما اجازه مي دهد كه قبل
از پردازش يك فرم توسط سايت ضوابط و شرايط شما را قبول يا رد كنند كه
در صورت عدم قبول به صفحه Home Page باز خواهد گشت ..
<!-- TWO STEPS TO INSTALL ACCEPT TERMS:
1. Copy the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document -->
<!-- STEP ONE: Paste this code into the HEAD of your HTML document
-->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Colin Pc -->
<!-- Web Site: http://www.insighteye.com/ -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
function checkCheckBox(f){
if (f.agree.checked == false )
{
alert('Please check the box to continue.');
return false;
}else
return true;
}
// End -->
</script>
</HEAD>
<!-- STEP TWO: Copy this code into the BODY of your HTML document
-->
<BODY>
<form action="/yourscript.cgi-or-your-page.html" method="POST"
onsubmit="return checkCheckBox(this)">
I accept: <input type="checkbox" value="0" name="agree">
<input type="submit" value="Continue Order">
<input type="button" value="Exit"
onclick="document.location.href='/index.html';">
</form>
<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts provided by
ostadonline<br>
<!-- Script Size: 1.21 KB -->
|