on the html have a checkbox that disables the splash screen.
in the form tag, have a name attribute like: tForm
then have an event handler on the checkbox like
<input type..... name="checkBox2" onChange="usrPref()">
in between your <head> tags type this in exactly:
Code:
<script language="javascript>
splash = "yes"
function usrPref() {
if (document.tForm.checkBox2.checked == true){
expDate = "12/01/2001"
document.cookie="splash=no" + ";expires=" + expDate
}
}
function chkUsrPref(){
allCookies = document.cookie
splash = allCookies.indexOf("splash") // should return no // or yes
}
</script>
then in the body tag have another event handler:
<body .... onLoad="chkUsrPref()">
i think that you should get the drift by now...i wrote this in three minutes so there are bound to be problems.
Sam
Bookmarks