﻿<!--
/*  You can get this script and many others 
    by visiting JavaScript City at: http://www.javascriptcity.com . */

/* define image width and height */

/* var pic_width=100; /*
/* var pic_height=100; /*

/* define text to show on button */

button_text="N&auml;chster Screenshot";

/* define image urls */

if (document.images)
 {
     pic1= new Image();
     pic1.src="http://www.z-cron.de/images/cron/zcron01.gif";  
     pic2= new Image(); 
     pic2.src="http://www.z-cron.de/images/cron/zcron02.gif";
     pic3= new Image(); 
     pic3.src="http://www.z-cron.de/images/cron/zcron03.gif"; 
     pic4= new Image();
     pic4.src="http://www.z-cron.de/images/cron/zcron04.gif";  
 }    
 
var pics= new Array(4) 
   pics[0]=pic1.src;
   pics[1]=pic2.src;
   pics[2]=pic3.src;
   pics[3]=pic4.src;

var numpics=4;
var thenum=0;
imgName="img1";

function change_it()
 {
   if (document.images)
    {
      document.write("<DIV ALIGN='CENTER'><IMG SRC='"+pics[thenum]+"' border='0' name='img1'>\n<br><BR> <FORM method='POST'><INPUT TYPE='button' value='N&auml;chster Screenshot' onClick='change_it2()'>");
   }
}

function change_it2()
 {
         var x=0;
         thenum+=1;

         if (thenum>numpics-1)
         { 
           document[imgName].src=pics[0];
           thenum=0;
           }
         else
         {
           document[imgName].src=pics[thenum];
           x+=1;
          }
 }
//-->
