This option will reset the home page of this site. Restoring any closed widgets or categories.

Reset

Displaying or changing images each day

A simple script that demonstrate how to dispay different images day by day on your website from suday to saturday, what you have to do is just copy this script [ Make Sure Of Quotes While Copying As I Always Say] So correct those and paste where you have to display the image on you website, very easy.

 <script language=javascript>  

/* Changing image or text each day(sunday to saturday) 

Source: http://mistonline.in/

*/

 <!–hide  

getday=new Date();

day=getday.getDay();

var imagestotal = 7; 

images = new Array(imagestotal+1); 

images[0] = “<img src=’myimage.jpg’>”; 

images[1] = “<img src=’myimage02.jpg’>”; 

images[2] = “<img src=’myimage03.jpg’>”; 

images[3] = “<img src=’myimage04.jpg’>”; 

images[4] = “<img src=’myimage05.jpg’>”; 

images[5] = “<img src=’myimage06.jpg’>”; 

images[6] = “<img src=’myimage07.jpg’>”;  

document.write(images[day]); //–> 

</script>

 

 

VN:F [1.5.7_846]
Rating: 0.0/10 (0 votes cast)
VN:F [1.5.7_846]
Rating: 0 (from 0 votes)
Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • De.lirio.us
  • Xerpi

Related posts:

  1. Caching of images using javascript image object
  2. Automatic Ajax Loading Images With Prototype
  3. Replacing images with time intervals using jquery
  4. Water mark images using PHP 5 and GD Library
  5. Displaying Text from User On Your Webpage

Leave a Reply

Spam Protected