March 28, 2024, 09:34:16 am
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  

Affiliate box under stats

Pages: [1]   Go Down
  Print  
Author Topic: Affiliate box under stats  (Read 800 times)
0 Members and 1 Guest are viewing this topic.
Spoken
Exclusive
Exclusive
Offline Offline

Gender: Male
Posts: 454



View Profile
Badges: (View All)
« on: November 09, 2008, 02:23:31 pm »

First off, I cannot take full credit for this code. I used Agent Moose's "Add box under stats" code, and deathwildie's "Affiliate Box with text area" code.

Add this to your footers.
Code:
<script>
function add_box_stats_v3(){
//Create by Agent Moose (smcodes.smfforfree3.com)
var title = "TITLE"
var content = "<!-- Affiliate Box Codeby deathwilldie from Simple Machine Codes (www.smcodes.smfforfree3.com)--><table width='100%' border='0' cellspacing='1' cellpadding='4'><tr><td width='80%' class='windowbg2'><marquee onmouseover='this.stop()' onmouseout='this.start()'><a href='AFFILITE WEBSITE URL' target='_blank'><img src='AFFILIATE IMAGE URL'/></a></marquee></td><td class='windowbg' width='20%' border='3'><center>Our Image<BR><img src='YOUR AFFILITE URL' border='0'/><br></center></td></tr></table></div>"
var url = "PAGE URL"
var image = "IMAGE URL HERE"
var text = "HOVER TEXT HERE"

$("div#upshrinkHeaderIC table.bordercolor tbody tr:contains(Users Online)").before("<tr><td class='titlebg' colspan='2'>"+title+"</td></tr><tr><td class='windowbg' width='20' align='center'><a href='"+url+"'><img src='"+image+"' alt='"+text+"'/></a></td><td class='windowbg2' width='100%'><span class='middletext'>"+content+"</span></td></tr>");
};
add_box_stats_v3();
</script>

What to replace:
TITLE - Replace this with the title of the box
AFFILIATE WEBSITE URL - Replace this with the URL to your affiliate's website
AFFILIAE IMAGE URL - Replave this with the image URL for the affiliate
YOU AFFILIATE URL - Replace this with the image URL to your site's affiliate image

The next ones are for this image part,


IMAGE URL HERE - Replace this with the image URL you want to be next to the box
PAGE URL - Replace this with the URL of a page you want the image to be linked to
HOVER TEXT HERE - Replcae this with the test you want to be displayed when you hover over the image.

Have any problems post here. Moderators if you could give a better description please edit this Cheesy
Im not good at explaining
« Last Edit: November 09, 2008, 03:46:26 pm by Spoken » Report Spam   Logged

Share on Facebook Share on Twitter

deathwilldie
Administrator
Adminitrator
Offline Offline

Posts: 1,769


View Profile WWW
Badges: (View All)
Tenth year Anniversary Nineth year Anniversary Level 5
« Reply #1 on: November 09, 2008, 02:30:01 pm »

Now that is a pretty cool code Cheesy
Report Spam   Logged

Spoken
Exclusive
Exclusive
Offline Offline

Gender: Male
Posts: 454



View Profile
Badges: (View All)
« Reply #2 on: November 09, 2008, 02:30:45 pm »

Thanks. took me a while to do it
Report Spam   Logged

Mojobojo82
MVP
MVP
Offline Offline

Gender: Male
Posts: 838


View Profile
Badges: (View All)
« Reply #3 on: June 14, 2009, 02:08:04 am »

Pretty Awesome Tongue My friend always had it and i never kenw how... Idk why i never asked Huh? Anyway Thanks I'm using it now
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