Directory Zip backs up individual directories on your server protecting you from loss of data, loss of your web site files, loss of your web site business.
The source code can be obtained with your browser's "view source"
menu item, or to download the ZIP file, click here.
The JavaScript is in the HEAD area of this page's source code. You'll need to modify a couple lines.
1. Replace
Replace
alert('Yes, your browser accepted the test cookie.')
(line 20 or sixth line from the bottom of the code) with the function you want to
execute if the test cookie was successfully set. Like
if(testcookie == 'yes') { MyFunction(); }
Alternatively, if want nothing to happen
when the cookie was set successfully, replace the above with
return true
like
if(testcookie == 'yes') { return true; }
2. Replace
alert('Your browser did not accept the test cookie.')
(line 21 or fifth line from the bottom of the code) with the function you want to
execute if the cookie was NOT set. Like
else { MyOtherFunction(); }
Alternatively, if want nothing to happen
when the cookie wasn't set, replace the above with
return false
like
else { return false; }
3. The line
DoTheTest();
(line 23 or third line from the bottom of the code) executes the test even before
the body content has been loaded. You may delay the test by moving the
function call into your body tag, with
onLoad="DoTheTest();"
or, it can be moved into the body content itself, with