Nightwalker
Full Member
Everything Happens at Night
Posts: 138
Nightwalker said 0 great things
|
Post by Nightwalker on Jun 7, 2010 14:35:05 GMT -8
Ok allot of people have side tables and like to have their affiliate tables in them so I made one for y'all. First I need to thank ®i©hie for letting me use his copy affiliate code. Next i will describe what the code does. This code makes a table on the side of your forum (if you use Smangii's code use the bottom code) that has your mini banner at the top of it. If you click on your mini banner a box will come up with your affiliate code. The affiliates in the table scroll up and will stop when the mouse goes over them. PrevewPlease Read all the instructions or it most likely will not workThis First code can be placed in your Global or Main header/footers. You will need to edit some things so read the code. When you insert affiliates remember to put brakes after each two affiliate codes so it would be, affiliate code here affiliate code here <br> Header:
<!-- ===== Nightwalker's Side Affiliate Table Do not claim for your own Header must always stay intact ===== -->
<table width="92%" align="center"> <tr><td width="200px" valign="top" style="padding-top: 40px;">
<table width="200px" cellpadding="4px" class="bordercolor" cellspacing="1"> <tr><td align="center" class="titlebg" valign="top" > Affiliates </td></tr> <tr><td class="windowbg">
<center>
<script type="text/javascript"> <!-- /* Easy "Copy Affiliate Code" Script V2 By Son Of Exodia */ /* Global Header */
function affcode(minibanner){var mini=minibanner; window.prompt('Please Press "CTRL + C" To Copy The Code Below:','<a href="http://'+location.host+'" target="_blank"><img src="'+mini+'" alt="" title="'+document.title.split(/\s-/i)[0]+'" width="88" height="31" border="0"/></a>'); } //--> </script>
<img src="put url of your mini banner here" width="88" height="31" alt="" title="Copy Affiliate Code" onclick='affcode("put url of your mini banner here");'; style="cursor:pointer;"/><br>
click banner to get affiliate code
<marquee onmouseover="this.stop()" onmouseout="this.start()" direction="up" scrollamount="3">
<!-- ===== affiliate codes start here put a <br> after each two affiliates ===== -->
<center> <a href="website url" target="_blank"><img src="mini banner" height="31" width="88" border="0" alt="name" /></a>
<a href="website url" target="_blank"><img src="mini banner" height="31" width="88" border="0" alt="name" /></a><br>
</marquee> </center> </td></tr></table> </td><td width="100%"> Footer:</td></tr></table> Ok now i know allot of you use Smangii's tables already so i made a version that will work with it. You will put this as it's own table in the Smangii code. You will still need to edit. <!-- ===== Nightwalker's Side Affiliate Table For Smangii's Tables Do not claim for your own Header must always stay intact ===== -->
<table id="sidetables" cellpadding="4px" class="bordercolor" cellspacing="1"> <tr><td align="center" class="titlebg"> Affiliates </td></tr> <tr><td class="windowbg">
<center>
<script type="text/javascript"> <!-- /* Easy "Copy Affiliate Code" Script V2 By Son Of Exodia */ /* Global Header */
function affcode(minibanner){var mini=minibanner; window.prompt('Please Press "CTRL + C" To Copy The Code Below:','<a href="http://'+location.host+'" target="_blank"><img src="'+mini+'" alt="" title="'+document.title.split(/\s-/i)[0]+'" width="88" height="31" border="0"/></a>'); } //--> </script>
<img src="url of mini banner" width="88" height="31" alt="" title="Copy Affiliate Code" onclick='affcode("url of mini banner");'; style="cursor:pointer;"/><br>
click banner to get affiliate code
<marquee onmouseover="this.stop()" onmouseout="this.start()" direction="up" scrollamount="3">
<!-- ===== affiliate codes start here put a <br> after each two affiliates ===== -->
<center> <a href="website url" target="_blank"><img src="mini banner" height="31" width="88" border="0" alt="name" /></a>
<a href="website url" target="_blank"><img src="mini banner" height="31" width="88" border="0" alt="name" /></a><br>
</center> </marquee>
</td></tr></table>
Hope this works for everyone if you have ANY problems please PM me on the support board.
|
|
Nightwalker
Full Member
Everything Happens at Night
Posts: 138
Nightwalker said 0 great things
|
Post by Nightwalker on Jun 7, 2010 18:45:25 GMT -8
i would really like feedback on this code because it is my first one. If you have problems with it please tell me so i can work on it.
|
|
|
Post by Wormopolis on Jun 7, 2010 19:38:49 GMT -8
Well the only feedback I have on it right now, is that Im not sure how to classify it. Other then the Script that Richie wrote, its all just HTML really. realistically, it is still code, but doesnt fit in with a javascript repository like everything else.
But what I am thinking of doing, is making a new board for HTML based things. That way Affiliate table codes (that arent javascript array based) and things like image rollovers can have a home.
|
|
Nightwalker
Full Member
Everything Happens at Night
Posts: 138
Nightwalker said 0 great things
|
Post by Nightwalker on Jun 8, 2010 3:44:33 GMT -8
ok cool..that is fine with me i know it wasn't as hard to do as a normal code i still need more practice on that...
|
|