Hello As title above, I need help on code to make a rotating banner on blogspot. for example: I have 2 banners, A and B. I want A and B banner to rotate/appear everytime the visitors reload the page. hope somebody can help me. thanks in advance.
Here is a simple Banner rotator made in JS <script language="Javascript"> <!-- // original content taken from Nic's JavaScript Page with permission // lack of these three lines will result in copyright infringment // made by: Nic's JavaScript Page - http://www.javascript-page.com var currentdate = 0; var core = 0; function initArray() { this.length = initArray.arguments.length; for (var i = 0; i < this.length; i++) { this[i] = initArray.arguments[i]; } } link = new initArray( "http://3bgraphics.hypermart.net/", "http://html.digitalsea.net/", "http://www.javascript-page.com/" ); image = new initArray( "http://3bgraphics.hypermart.net/link/3bgraphics.gif", "http://html.digitalsea.net/htmlnow.gif", "http://www.geocities.com/~jsmaster/jsnow.gif" ); text = new initArray( "3B Graphics", "Learn HTML in 7 Easy Steps", "Nic's JavaScript Page" ); var currentdate = new Date(); var core = currentdate.getSeconds() % image.length; var ranlink = link[core]; var ranimage = image[core]; var rantext = text[core]; document.write('<a href=\"' +ranlink+ '\" target=\"_blank\"><img src=\"'+ranimage+'\" border="0" alt=\"'+rantext+'\"></a>'); //--> </SCRIPT> Code (markup): hope this helps
Get a VERY simple banner rotating code from this site http://www.htmlbasix.com/banner.shtml I am sure it will work on blogger templates too. Good luck
From my search engine for Blogspot tips and tricks: Rotating Banners There are numerous hacks in this list. One should fit the bill. One thing you have to remember is that Blogspot does not allow you to upload files, such as stylesheets, javascript. You need to get around that by using a free file hosting service. Usually most people use Google Sites for this type of thing.