top of page

JavaScript Slider Photo

<script type="text/javascript">


//store the image into an array

var Imgarr=["picName.jpg","picName.png","picName.png"];

var index=0;


function slider() {

index++;

if (index==Imgarr.length)

{

index=0;

document.getElementById("im1").src="FolderNameimg/"+Imgarr[index];

}

else

{

document.getElementById("im1").src="FolderNameimg/"+Imgarr[index];

}

setTimeout("slider()",1000);


}

</script>



<div id="slider"><img id="im1" src="FolderNameimg/angad (17).jpg" height="300px" width="1000px"/>

</div>


 
 
 

Comments


About Me
facebook_untitled.jpg

I am a newbie which any website forward in making better 
and
I am an experienced web designer & developer with proficiency in varied technologies available. 

Read More

Join My Mailing List

Thanks for submitting!

  • Facebook
  • Twitter
  • YouTube
  • Pinterest
  • Tumblr Social Icon
  • Instagram

© 2012 To 2019 by Going Places. Proudly created by Angad Chaudhary

bottom of page