Script, Show or Hide
ShareEither embed the following code or save to a file and link to it in your HTML.
/*
*/
function showLogos()
{
var showbox = document.getElementsByTagName("DIV");
for(var i=0;i<showbox.length;i++)
{
if(showbox[i].className == 'show')
showbox[i].style.display = 'block';
}
saveCookie("showbanners",1);
}
function hideLogos()
{
var showbox = document.getElementsByTagName("DIV");
for(var i=0;i<showbox.length;i++)
{
if(showbox[i].className == 'show')
showbox[i].style.display = 'none';
}
saveCookie("showbanners",0);
}
Configure your ON button with this.
<a href="javascript:" onclick="showLogos();return false;">
Configure your OFF button with this.
<a href="javascript:" onclick="hideLogos();return false;" >
Wrap your object around a DIV like this.
<div class="show">
Follow this link below to see script in action.
Turn-your-cookies-on Script
ShareWhen loaded, this script informs your site visitors to turn on their cookies.
<script type="text/javascript">
<!--
/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Chris :: http://www.freewebs.com/javascript_1/ */
if (navigator.cookieEnabled == 0) {
alert("You need to enable cookies for this site to load properly!");
}
-->
</script>
