|
Post by Smangii on May 16, 2006 21:42:55 GMT -5
W00t, first code done with all javascript Tell me how I did ^^ Preview: Click Scroll to the bottom. The first image is your banner, the 2nd image(s) are random affiliates. <script language="javascript"> // Smangii's Mini Random Affiliate Table // Coded by Smangii for Sigfx // http://smangii.proboards78.com // Repostable but this header must remain intact <!-- function random_Affiliates(){
// Insert Your Code var apple = "URL OF YOUR IMAGE" var orange = "URL OF YOUR AFFILIATION PAGE"
// Insert Affiliates var AffList=new Array() AffList[0]=new Array("FORUM URL 1","IMAGE URL 1") AffList[1]=new Array("FORUM URL 2","IMAGE URL 2") AffList[2]=new Array("FORUM URL 3","IMAGE URL 3") AffList[3]=new Array("FORUM URL 4","IMAGE URL 4")
// Do not edit below var AB=Math.floor(Math.random()*AffList.length) if (AB==0){AB=1} var pizza=AffList[AB][0] var hotdog=AffList[AB][1] document.write('<table width="200" cellpadding="0" cellspacing="0" class="bordercolor" align="center"><tr><td><table width="100%" cellpadding="4" cellspacing="1" border="0"><tr><td align="center" class="titlebg" colspan="3"><font size="2" class="cattext"><b>Affiliates:</b></font></td></tr><tr><td width="20%" align="center" height="35" class="windowbg2"><a target="_blank" href="'+orange+'"><img src="'+apple+'" border="0" alt="Click here to affiliate with us!"></a></td><td width="20%" align="center" height="35" class="windowbg2"><a target="_blank" href="'+pizza+'"><img src="'+hotdog+'" border="0"></a></td></tr></tr></table></table></center>') } random_Affiliates() --> </script>
Enjoy
|
|
Matt
Graphics Admin
Great admin or greatest admin?
Posts: 4,891
|
Post by Matt on May 17, 2006 13:09:08 GMT -5
Nice code Smangii Good addition
|
|
|
Post by Smangii on May 17, 2006 15:52:22 GMT -5
Thanks XD ^^ I'll add all my stuff to this place
|
|