code for cube pic effect

 God is our refuge and strength
a very present help in trouble. Ps.46:1

                

Examples that I made click on these links  

Mother at Lukenbach   Texas Bluebonnets

Thanks for the code go to JavaScript Kit

paste code below into the body of your page-----important dont forget to change the specifyimage 0 1 2 and then 3 if needed for however many photes you have included. leave the 0 there then 1 2 3 4 etc

<script language="JavaScript1.1">

//Picture Cube slideshow - By Tony Foster III

//Modifications by JK

//Visit JavaScript Kit (http://javascriptkit.com) for script

var specifyimage=new Array() //Your images

specifyimage[0]="photo1.jpg"

specifyimage[1]="photo2.jpg"

specifyimage[2]="photo3.jpg"

var delay=3000 //3 seconds

//Counter for array

var count =1;

var cubeimage=new Array()

for (i=0;i<specifyimage.length;i++){

cubeimage[i]=new Image()

cubeimage[i].src=specifyimage[i]

}

function movecube(){

if (window.createPopup)

cube.filters[0].apply()

document.images.cube.src=cubeimage[count].src;

if (window.createPopup)

cube.filters[0].play()

count++;

if (count==cubeimage.length)

count=0;

setTimeout("movecube()",delay)

}

window.onload=new Function("setTimeout('movecube()',delay)")

</script>

<img src="photo1.jpg" name="cube" border=0 style="filter:progid:DXImageTransform.Microsoft.Stretch(stretchStyle='PUSH')">

<p align="center"><font face="arial" size="-2">This free script provided by</font><br>

<font face="arial, helvetica" size="-2"><a href="http://javascriptkit.com">JavaScript

Kit</a></font></p>