/* * JaBEx v.1, http://turma.sourceforge.net/web/jabex * part of Violence by Design project, http://turma.sourceforge.net * Author: Mircea MITU <mirceamitu@users.sourceforget.net> * Licence: GPL v2 * Copyright: 2001, Mircea MITU * Date: March 29, 2001 */ /* Usage: * write the following line in the <head> section: <script src="./jabex.js" language="JavaScript"></script> * place the following code inside your html page, where you want to display the banners <script>showbanner()</script> */ // Array of URLs url = [ "http://www.madein.ro", "http://www.brasovtravelguide.ro", "http://www.efoto.ro", "http://graphic.design.go.ro", "http://inginer.home.ro" ]; // Array of banners banners = [ "./banners/madeinro.jpg", "./banners/btg.jpg", "./banners/efoto.gif", "./banners/graphicdesign.gif", "./banners/inginer.gif" ]; // Call this function to display banners function showbanner(){ var l = url.length; var i = Math.floor((Math.random() * 10)%l); var bannercode="<a href='"+url[i]+"' target=_blank><img src='"+banners[i]+"' border=0></a>" document.write(bannercode); }
« Back to JaBEx