|
Post by Smangii on May 15, 2006 18:15:56 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
|
|
|
Post by Nya on May 16, 2006 1:45:38 GMT -5
ooooh interesting I like.
|
|
|
Post by Smangii on May 16, 2006 7:24:41 GMT -5
Why thank you, Nya ^^
|
|
|
Post by Aled on May 16, 2006 14:29:07 GMT -5
Wow nice script, where are you learning your Javascript from Smangii? As i am intrested and im learning myself with help from Dranew to make codes for Xigna, Proboards and Exco Boards....so i need all the help i can
|
|
|
Post by Nya on May 16, 2006 17:33:45 GMT -5
Hehe your welcome.
I Used it on my SMD site for site Affiliates. Took a few trys to get it working correctly lol my part not the codes.
|
|
|
Post by Smangii on May 16, 2006 21:47:05 GMT -5
Lol i'm currently learning on my own, with MAAAAAAJOORRR help from this site: pageresource.com/jscript/Abovery *friendly* personely love it and recccomend it ^^
|
|
|
Post by Aled on May 17, 2006 12:01:14 GMT -5
Thankyou Smangii *hugs* i am hoping it will prove useful as i really would like to make some of my own scripts for my blog and forum and website lol, rather then sue otehr poeples works, and also being a web developer it is a definate must.
|
|
|
Post by Smangii on May 17, 2006 15:07:13 GMT -5
Yup yup, if you run into any problems feel free to ask ^^ I've been doing LOTS of homework on this stuff, lol
|
|