Simple Machine Codes
December 15, 2018, 04:29:36 pm
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to SMC, the best place for your SMF For Free Codes
 
  Home Help Search Arcade Gallery Affiliates Code Index Staff List Calendar Members Login Register  

Add Box Under Stats V2

Pages: [1]   Go Down
  Print  
Author Topic: Add Box Under Stats V2  (Read 679 times)
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« on: September 15, 2007, 09:14:20 am »

Code:
<script>
function add_box_stats_v2(){
//Create by Agent Moose (smcodes.smfforfree3.com)
$(function(){
title = "TITLE"
content = "CONTENT"

if(location.href.match(/index.php/)){
$("table:contains(Most On"+"line Today:)").after("<table border='0' width='100%' cellspacing='1' cellpadding='4' class='bordercolor'><tr><td class='titlebg' colspan='2'>"+title+"</td></tr><tr><td class='windowbg' width='20' align='center'><img src='http://www.smfboards.com/Themes2/default/images/icons/online.gif'/></td><td class='windowbg2' width='100%'><span class='middletext'>"+content+"</span></td></tr></table>");
};});}
add_box_stats_v2();
</script>

This just a little update from v1.  the box matches the other boxes above it.  And, it only showes on the index.
« Last Edit: September 28, 2007, 06:49:10 pm by Agent Moose » 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 | Buy traffic for your forum/website

Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy