Script, Show or Hide

Either 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.

Tweet This Post

SocialTwist Tell-a-Friend

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

blog comments powered by Disqus

Free Email Subscription

Poll

21 Free Random Links

Have a new site and want to show off and get linked? Send us an email and we'll link it here for free.