April 19, 2024, 11:41:11 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  

SMC News Box V1

Pages: [1]   Go Down
  Print  
Author Topic: SMC News Box V1  (Read 382 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Administrator
Adminitrator
Offline Offline

Gender: Male
Posts: 1,470



View Profile WWW
Badges: (View All)
Tenth year Anniversary Nineth year Anniversary Search
« on: November 07, 2008, 06:58:55 pm »

Footers
Code:
<script creator="Agent Moose" at="smcodes.smfforfree3.com">
var boardname = "YOUR BOARD NAME HERE";
var News = "YOUR TEXT HERE";

document.getElementById("bodyarea").innerHTML = '<div id="news_box"><div class="tborder" style="margin-top: 1ex;"><div class="catbg" style="padding: 5px 5px 5px 10px;">'+boardname+' News</div><table id="upshrinkHeader2" width="100%" cellpadding="4" cellspacing="0" border="0"><tr><td class="titlebg2"></td></tr><div class="windowbg"><span id="section">'+News+'</span></div></table></div>' + document.getElementById("bodyarea");
</script>

This will add a news box to your forum, like what SMC has.  Just replace the YOUR TEXT HERE part to your own text.  You may use HTML.  Replace YOUR BOARD NAME HERE with the name of your board.
Report Spam   Logged


Share on Facebook Share on Twitter

Mojobojo82
MVP
MVP
Offline Offline

Gender: Male
Posts: 838


View Profile
Badges: (View All)
« Reply #1 on: June 22, 2009, 04:32:58 am »

Nice code.
I got scared because when I added the code everything was gone.
I refreshed and it was good Tongue
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