SMF For Free Support Forum
Signup For Free Forum
December 04, 2008, 08:41:01 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] Portal Boxes V1  (Read 361 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Moderator
*****
Offline Offline

Posts: 669


Do not PM me for Code Support or Request


View Profile
« on: October 01, 2007, 03:08:18 pm »

Add this to the top of your headers if you don't have it:
Code:
<script src="/jquery.js"></script>


Headers:
Code:
<script>
var portal = new Array()
portal[portal.length] = ["TITLE","CONTENT"]

/*DO NOT EDIT PAST HERE*/
document.write('<table align="center" valign="top"><tr><td valign="top" id="td_width"><span id="SMF_Portal">')
for(a=0;a<portal.length;a++){document.write('<div class="catbg">'+portal[a][0]+'</div><div class="windowbg" border="1">'+portal[a][1]+'</div>')};
//Created by Agent Moose (smcodes.smfforfree3.com)
document.write('</span></td><td height="100%" valign="top" id="td_width2">')
if(location.href.match("action=") || location.href.match("board,") || location.href.match("topic,")){
$("td#td_width2").attr("width","1000");
$("span#SMF_Portal").hide();
}else{
$("td#td_width2").attr("width","800");
$("td#td_width").attr("width","150");
$("span#SMF_Portal").show();
}
</script>
Here is v1 of this portal code.  It adds boxes to the Left of the portal, which means, it will only show on the portal.

TITLE=The Title of the Box
CONTENT=The Text/HTML that will be in the box.

If you want to add more boxes, add more of these lines:
Code:
portal[portal.length] = ["TITLE","CONTENT"]
« Last Edit: May 02, 2008, 04:10:28 pm by simply sibyl » Logged



SMC Code Index - The best Code Index for all your Needs!  Includes a bunch of codes not on Support.[/cen
Gordie
SMF For Free Hero
*
Offline Offline

Posts: 591


I'm around somewhere!!!


View Profile WWW
« Reply #1 on: October 02, 2007, 07:39:38 am »

I tries it on my test site,but when i added another box and inserted html,neither box showed. I'm gonna look at my code,I may have left out a "," or "<" or something.
Logged




Pages: [1]
  Print  
 
Jump to:  

cheap low cost web hosting reviews

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
ServerBeach Coupon
Page created in 0.942 seconds with 16 queries.