»
EnglishFrenchVietnamese

Print - Rotating Image script - JavaScriptBank.com

Full version: jsB@nk » Image » Rotation » Rotating Image script
URL: https://www.javascriptbank.com/rotating-image-script.html

Rotating Image script © JavaScriptBank.comDisplay your images in a rotating sequence. Easy to set up and very unobtrusive.

Full version: jsB@nk » Image » Rotation » Rotating Image script
URL: https://www.javascriptbank.com/rotating-image-script.html



JavaScript
<script language="javascript">// Created by: Lee Underwood :: http://javascript.internet.com/var bannerImg = new Array();  // Enter the names of the images below  bannerImg[0]="gif_logojsb.gif";  bannerImg[1]="gif_logojsb2.gif";var newBanner = 0var totalBan = bannerImg.lengthfunction cycleBan() {  newBanner++  if (newBanner == totalBan) {    newBanner = 0  }  document.banner.src=bannerImg[newBanner]  // set the time below for length of image display  // i.e., "4*1000" is 4 seconds  setTimeout("cycleBan()", 4*1000)}window.onload=cycleBan;</script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<img src="gif_logojsb2.gif" name="banner"><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->