September 25, 2022, 12:50:29 pm
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to Revolution X, where Coding meets Graphics.
 
  Home Help Search Arcade Affiliates Staff List Calendar Members Login Register  

Quick Announcements

Pages: [1]   Go Down
  Print  
Author Topic: Quick Announcements  (Read 345 times)
Vitality
Exclusive
Exclusive
Offline Offline

Gender: Male
Posts: 154



View Profile
Badges: (View All)
« on: March 28, 2009, 12:53:32 pm »

A quick announcement system where a new tab is added next to the "Members" tab, and when you hover over it, news will appear below the "Welcome to SMF For Free" text right above the tabs. When your mouse leaves the news area (the added news), it will collapse.
Headers
Code:
<script src="/jquery.js"></script>

Footers
Code:
<script type="text/javascript">
/*Vitality - TCZ|SMFforfree Support|Revolution X*/
var thenewnews="THIS IS THE NEWS!";

$("td.maintab_back:contains('Members')").after("<td id='thetab' class='maintab_back' style='cursor:pointer'>News</td>");$("td.titlebg2:contains('Welcome to SMF For Free')").append("<div id='thenews' style='display: none;'><br />"+thenewnews+"</div>");$("#thetab").mouseover(function(){$("#thenews").show();});$("#thenews").mouseout(function (){$("#thenews").hide();});
</script>
Quickly edit the line
Code:
var thenewnews="THIS IS THE NEWS!";
with the news you would like to have shown. Edit the part between the " ".
Enjoy!
Report Spam   Logged


CODE

Share on Facebook Share on Twitter

Mojobojo82
MVP
MVP
Offline Offline

Gender: Male
Posts: 838


View Profile
Badges: (View All)
« Reply #1 on: June 17, 2009, 05:54:24 am »

Where does this show up?
Report Spam   Logged






Agent Moose
Administrator
Adminitrator
Offline Offline

Gender: Male
Posts: 1,470



View Profile WWW
Badges: (View All)
« Reply #2 on: June 17, 2009, 10:37:51 am »

It adds a tab next to the members tab, on which if you click on shows the announcements.
Report Spam   Logged


Mojobojo82
MVP
MVP
Offline Offline

Gender: Male
Posts: 838


View Profile
Badges: (View All)
« Reply #3 on: June 19, 2009, 03:10:28 am »

Uhh yea.. Might add after my School Disco
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