SMF For Free Support Forum
Signup For Free Forum
October 07, 2008, 08:10:28 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free. The best free SMF Host
 
   Home   Help Search Arcade Gallery Login Register  

Pages: [1]
  Print  
Author Topic: [Code] Toggle Header  (Read 887 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Moderator
*****
Offline Offline

Posts: 637


Do not PM me for Code Support or Request


View Profile
« on: May 28, 2007, 08:03:00 pm »

Forum Url: http://smcodes.smfforfree3.com
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.

There is a preview of this code on SMcodes

Place this in your Headers if you don't have it:
Code:
<script src="/jquery.js"></script>

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: May 02, 2008, 09:15:45 pm by Agent Moose » Logged

SMC Code Index - The best Code Index for all your Needs!  Includes a bunch of codes not on Support.[/center]
simply sibyl
Global Moderator
*
Offline Offline

Posts: 8420



View Profile WWW
« Reply #1 on: May 29, 2007, 10:49:28 am »

thanks Moose.. Ive been looking at finding a way to put back the collapse/expand header up top since SMF removed it on our forums. 
Logged

Agent Moose
Moderator
*****
Offline Offline

Posts: 637


Do not PM me for Code Support or Request


View Profile
« Reply #2 on: May 29, 2007, 11:21:30 am »

It was removed?  hmmm...I wonder why.
Logged

SMC Code Index - The best Code Index for all your Needs!  Includes a bunch of codes not on Support.[/center]
simply sibyl
Global Moderator
*
Offline Offline

Posts: 8420



View Profile WWW
« Reply #3 on: May 29, 2007, 12:32:14 pm »

It was removed?  hmmm...I wonder why.

I dunno.
See the little = or - thing up top here at support?
We had that on our forums.   Shortly after the 1.1 upgrade he removed it from our forums... I don't know why?
I really wish we could have it back, as I used it alot.   
I don't use scripts much on my forum as most all of my members use noscript and wind up not seeing things that run by scripts, or have java disabled so I do everything with tables.. that is how the extra tabs you see at the top and the bottom of the tent are done now.. totally tables in the header and footer..  only the one on the bottom left is a script..  similar to one of yours but its not yours.
Logged

deathwilldie
Style Designer
****
Offline Offline

Posts: 584

Give me an idea for a Stylesheet


View Profile WWW
« Reply #4 on: June 01, 2007, 02:04:02 pm »

Agent Moose do you think you can make that code for it?
Logged
Agent Moose
Moderator
*****
Offline Offline

Posts: 637


Do not PM me for Code Support or Request


View Profile
« Reply #5 on: June 01, 2007, 02:11:29 pm »

Probably, where was the button at?
Logged

SMC Code Index - The best Code Index for all your Needs!  Includes a bunch of codes not on Support.[/center]
Kimmie
SMF For Free Master
*
Offline Offline

Posts: 2013


View Profile WWW
« Reply #6 on: June 01, 2007, 02:35:34 pm »

you can look on my old forum and see it:

http://kimmiesplace.smfforfree.com/

its right beside the home button (on the left)
Logged

Agent Moose
Moderator
*****
Offline Offline

Posts: 637


Do not PM me for Code Support or Request


View Profile
« Reply #7 on: June 01, 2007, 07:56:58 pm »

Ahh...I see...hmmm.  I know I can make one like that, I just don't know exactly how to make the images change...
Logged

SMC Code Index - The best Code Index for all your Needs!  Includes a bunch of codes not on Support.[/center]
Kimmie
SMF For Free Master
*
Offline Offline

Posts: 2013


View Profile WWW
« Reply #8 on: June 01, 2007, 09:21:37 pm »

Ahh...I see...hmmm.  I know I can make one like that, I just don't know exactly how to make the images change...

I dont use that forum for anything other than support, here, when someone needs help and they are still using the old software - so I will pm you an admin login and you can go mess with it if you want  Wink
Logged

Agent Moose
Moderator
*****
Offline Offline

Posts: 637


Do not PM me for Code Support or Request


View Profile
« Reply #9 on: June 01, 2007, 09:55:34 pm »

oh, so that is why you Pm'ed me...ok thanks!
Logged

SMC Code Index - The best Code Index for all your Needs!  Includes a bunch of codes not on Support.[/center]


Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC
ServerBeach Coupon
Page created in 0.418 seconds with 17 queries.