Simple Machine Codes
April 20, 2024, 05:20:39 am
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to SMC, the best place for your SMF For Free Codes
 
  Home Help Search Arcade Gallery Affiliates Code Index Staff List Calendar Members Login Register  

Toggle Header

Pages: [1]   Go Down
  Print  
Author Topic: Toggle Header  (Read 675 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« on: May 28, 2007, 08:04:15 pm »

Well, today I thought I would finnally give yall this code, if you haven't noticed, I had it on SMCodes for about a week.  So, if you seen it on there, then you know what it looks like.  There will be a link next to the LogOut link called "Toggle Header".  Just click that to show it and hide it.

Place in Footers:
Code:
<script>
function toggle_header(){
//Created by Agent Moose at smcodes.smfforfree3.com
$(function() {
$(".maintab_last").before("<td valign='top' class='maintab_back'><a href='javascript:openclose();' >Toggle Header</a></td>")
});}
$("#upshrinkHeader").hide()
function openclose() {
$("#upshrinkHeader").toggle();
};
toggle_header();
</script>

There is no editing with the code, so please don't edit anything with it.
« Last Edit: December 05, 2007, 08:03:50 pm by Agent Moose » Report Spam   Logged

Share on Facebook Share on Twitter

deathwilldie
100 Club Member

Offline Offline

Posts: 214


View Profile WWW
« Reply #1 on: May 29, 2007, 12:25:58 pm »

This is a nice code but I don't like it because its always gone when you come to the forum.
Report Spam   Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy