Advertise Here

Author Topic: [Code] Completely hide info center  (Read 3043 times)

0 Members and 1 Guest are viewing this topic.

Offline Josh[y]

  • SMF For Free Sr. Member
  • *
  • Posts: 478
  • <Insert whitty tagline here.>
    • View Profile

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
[Code] Completely hide info center
« on: November 24, 2009, 09:57:25 am »
Demo: http://jquerycodes.smfforfree3.com/index.php

I saw that someone wanted to know how to do this in another thread. I didnt want to bump it because the last post was in march of last year :P

ANYWAYS... This code does exactly what that person wanted. They wanted the info center to not show at all. Since I am just learning jQuery I knew this would be easy so I just wrote the code one of my forums and made sure it worked :P

First and foremost, you MUST have this at the top of your header.
Code: [Select]
<script src="/jquery.js"></script>

After that, you can put this code anywhere in your header.
Code: [Select]
<script type="text/javascript">
$(document).ready(function() {
    $('#upshrinkHeaderIC').parent('.tborder').css("display","none");
    return false;
});
</script>

And thats it! :)
« Last Edit: November 24, 2009, 10:20:38 am by Josh[y] »

Offline Agent Moose

  • Moderator
  • *****
  • Posts: 836
  • Do not PM me for Code Support or Request
    • View Profile

  • Total Badges: 32
    Badges: (View All)
    Search Level 6 Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary
Re: [Code] Completely hide info center
« Reply #1 on: November 24, 2009, 03:35:11 pm »
Pretty nice code :)

You can just have it:
Code: [Select]
$('#upshrinkHeaderIC').parent().hide();
Its exactly the same as changing the css to display: none; :)

Also, if you want, you can add a copyright to your code...since it is your code after all :P
Check out Revolution X's Brand new Code Index!

Offline Josh[y]

  • SMF For Free Sr. Member
  • *
  • Posts: 478
  • <Insert whitty tagline here.>
    • View Profile

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Completely hide info center
« Reply #2 on: November 24, 2009, 08:06:50 pm »
Pretty nice code :)

You can just have it:
Code: [Select]
$('#upshrinkHeaderIC').parent().hide();
Its exactly the same as changing the css to display: none; :)

Also, if you want, you can add a copyright to your code...since it is your code after all :P

Ah, thanks Moose :P
Im just learning jQuery so I just used what I know. I didnt even think about the simple way to do it :P

Offline Agent Moose

  • Moderator
  • *****
  • Posts: 836
  • Do not PM me for Code Support or Request
    • View Profile

  • Total Badges: 32
    Badges: (View All)
    Search Level 6 Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary
Re: [Code] Completely hide info center
« Reply #3 on: November 24, 2009, 09:50:33 pm »
Nothin wrong with doing it a different way :)
Check out Revolution X's Brand new Code Index!

Offline Josh[y]

  • SMF For Free Sr. Member
  • *
  • Posts: 478
  • <Insert whitty tagline here.>
    • View Profile

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Completely hide info center
« Reply #4 on: November 24, 2009, 09:59:38 pm »
Very true.
I will hopefully be learning jQuery sometime either this school year or next.
I might be posting more codes when I think of cooler things to do, and how to do them :P

Offline Mary

  • SMF For Free Sr. Member
  • *
  • Posts: 434
    • View Profile
    • PogoJustPogo

  • Total Badges: 15
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Completely hide info center
« Reply #5 on: November 24, 2009, 11:39:56 pm »
I take it that this will hide like the Who's on line, Recent Post and stuff like that.  Is that correct?
Vist us at www.pogojustpogo.smfforfree3.com
Best and Friendliest Pogo FanSite There Is!!

Offline Josh[y]

  • SMF For Free Sr. Member
  • *
  • Posts: 478
  • <Insert whitty tagline here.>
    • View Profile

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Completely hide info center
« Reply #6 on: November 24, 2009, 11:52:12 pm »
I take it that this will hide like the Who's on line, Recent Post and stuff like that.  Is that correct?
Correct :)

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
5667 Views
Last post June 15, 2007, 10:43:58 am
by Ridikul
4 Replies
4512 Views
Last post March 20, 2009, 07:49:43 pm
by Andrew
3 Replies
3040 Views
Last post July 25, 2007, 02:50:00 pm
by rileyks
11 Replies
6031 Views
Last post November 03, 2007, 11:48:15 pm
by simply sibyl
4 Replies
2152 Views
Last post November 05, 2008, 10:43:36 pm
by Vitality