mcyates
08-09-2008, 10:00 PM
This is a really simple script which will add a tag cloud in the footer of your site (or wherever you put the code). Simply add this code:
<!-- TAG CLOUD -->
<center><script>
var advertiser = new Array();
advertiser[0]=["http://islandforum.net"," The Island"];
advertiser[1]=["http://www.myfootballforum.com"," My Football Forum"];
advertiser[2]=["http://www.myfootballforum.com"," Add Your Link Here"];
for( i=0; i<advertiser.length; i++){size = 8+(Math.random()*10);if( size < 9 ){color = 'red'}else if( size > 9 && size < 11 ){color = '#ffffff'}else if( size > 12 && size < 13 ){ color = 'yellow'}else if( size > 14 && size < 16 ){ color = '#ffffff'}else{color = '#ffffff';}document.write("<span style='font-size:"+size+"px;margin: 15px;'>");document.write("<a href='"+advertiser[i][0]+"' style='color:"+color+";text-decoration: none;' target='_blank'>"+advertiser[i][1]+"</a>");document.write("</span> ");}</script>
</center><br>
<!-- TAG CLOUD -->
It is all manual and to add or remove links you will have to edit the template where you add the code. Its a great hack as each time the page reloads, the links will be a different colour and size each time. You can change the size and the colour of the links in the bottom part of the code to whatever you want.
Demo is here, look at the footer:
http://www.myfootballforum.com/links.php
<!-- TAG CLOUD -->
<center><script>
var advertiser = new Array();
advertiser[0]=["http://islandforum.net"," The Island"];
advertiser[1]=["http://www.myfootballforum.com"," My Football Forum"];
advertiser[2]=["http://www.myfootballforum.com"," Add Your Link Here"];
for( i=0; i<advertiser.length; i++){size = 8+(Math.random()*10);if( size < 9 ){color = 'red'}else if( size > 9 && size < 11 ){color = '#ffffff'}else if( size > 12 && size < 13 ){ color = 'yellow'}else if( size > 14 && size < 16 ){ color = '#ffffff'}else{color = '#ffffff';}document.write("<span style='font-size:"+size+"px;margin: 15px;'>");document.write("<a href='"+advertiser[i][0]+"' style='color:"+color+";text-decoration: none;' target='_blank'>"+advertiser[i][1]+"</a>");document.write("</span> ");}</script>
</center><br>
<!-- TAG CLOUD -->
It is all manual and to add or remove links you will have to edit the template where you add the code. Its a great hack as each time the page reloads, the links will be a different colour and size each time. You can change the size and the colour of the links in the bottom part of the code to whatever you want.
Demo is here, look at the footer:
http://www.myfootballforum.com/links.php