Advertisement
Ilma

affi

Oct 18th, 2012
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //<![CDATA[
  2.     // CREATED BY VIRAL OF HTTP://VICTORYROAD.ZETABIN.COM
  3.     var aff = {
  4.         name : 'Affiliates', // title
  5.         image : 'http://i.imgur.com/400Xa.png', // image that goes left to the affiliates
  6.         ours : 'http://i.imgur.com/kTBdi.png', // affiliate button for forum
  7.         newwindow : true, // true opens in new window, false opens in same window
  8.         topsites : [
  9.             [1,0,'right',true], // settings: [speed,hoverspeed,direction,random]
  10.             ['http://w11.zetaboards.com/loveandwar','http://i.imgur.com/Equml.png'],
  11.             ['http://s1.zetaboards.com/Beauxbatons_rpg/index/','http://i.imgur.com/yS3BD.png'],
  12. ['http://infantrum.co.nr/','http://i35.tinypic.com/s4v2hh.jpg'],['http://w11.zetaboards.com/FSSH/','http://z5.ifrm.com/30116/94/0/p1075122/FSSH_Banner_100x40px.gif'],
  13.             ['http://reversedparadigm.b1.jcink.com/','http://i.imgur.com/nxOF1.jpg']
  14.         ],
  15.         affiliates : [
  16.             [1,0,'left',true], // settings: [speed,hoverspeed,direction,random]
  17.             ['http://s4.zetaboards.com/omnusadversantem/','http://i.imgur.com/NOJfl.jpg'],
  18.             ['http://s1.zetaboards.com/indoolympians','http://i45.tinypic.com/dxb680.jpg'],
  19.             ['http://s1.zetaboards.com/ryokubita/site','http://i39.tinypic.com/o5uqnp.jpg'],
  20.                         ['http://www.indohogwartsrpg.com','http://z5.ifrm.com/30033/78/0/f5063243/banneraffi.jpg'],
  21.     ['http://w11.zetaboards.com/tower_prep','http://z5.ifrm.com/30044/41/0/f5114174/TowerPrepLogo.png']
  22.  
  23.         ], /* STOP EDITING HERE!!! */
  24.         topsite : function(){
  25.             var t = this.topsites;
  26.             var content = t[0][0] == 0 ? '' : '<marquee scrollamount="'+t[0][0]+'" onmouseover="this.setAttribute(\'scrollamount\','+t[0][1]+',0);" onmouseout="this.setAttribute(\'scrollamount\','+t[0][0]+',0);" direction="'+t[0][2]+'">';
  27.             var end = t == 0 ? '' : '</marquee>';
  28.             if(t[0][3] === true)t.sort(this.mix);
  29.             var tL = t.length;
  30.             var target = this.newwindow === true ? 'target="_blank"' : 'target="_self"';
  31.             while(tL--){
  32.                 if(t[tL].length == 2) content += '<a href="'+t[tL][0]+'" '+target+'><img src="'+t[tL][1]+'" alt="" width="88" height"31" /></a> ';
  33.             }
  34.             return content + end;
  35.         },
  36.         affiliate : function(){
  37.             var a = this.affiliates;
  38.             var content = a[0][0] == 0 ? '' : '<marquee scrollamount="'+a[0][0]+'" onmouseover="this.setAttribute(\'scrollamount\','+a[0][1]+',0);" onmouseout="this.setAttribute(\'scrollamount\','+a[0][0]+',0);" direction="'+a[0][2]+'">';
  39.             var end = a[0][0] == 0 ? '' : '</marquee>';
  40.             if(a[0][3] === true)a.sort(this.mix);
  41.             var aL = a.length;
  42.             var target = this.newwindow === true ? 'target="_blank"' : 'target="_self"';
  43.             while(aL--){
  44.                 if(a[aL].length == 2) content += '<a href="'+a[aL][0]+'" '+target+'><img src="'+a[aL][1]+'" alt="" width="88" height"31" /></a> ';
  45.             }
  46.             return content + end;
  47.         },
  48.         mix : function(){
  49.             return (Math.round(Math.random())-0.5);
  50.         }
  51.     }
  52.     $("#stats table.forums").find("th[colspan=2],td.c_foot").attr("colspan",3).end().find("td").not(".c_mark,.c_foot").attr("colspan",2);
  53.     $("#stats table.forums th:contains(Board Statistics)").parent().before('<tr><th colspan="3">'+aff.name+'</th></tr><tr><td class="c_mark" rowspan="2"><img src="'+aff.image+'" alt="'+aff.name+'" /></td><td>'+aff.affiliate()+'</td><td><a href="'+main_url+'"><img src="'+aff.ours+'" alt="" /></a></td></tr><tr><td>'+aff.topsite()+'</td><td><textarea rows="1" cols="1" style="height:20px;width:88px;"><a href="'+main_url+'"><img src="'+aff.ours+'" alt="" /></a></textarea></td></tr>');
  54. //]]>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement