Jump to content

delay for image slider


darkofman

Recommended Posts

Hi , I am trying to make a imageslider with javascrip

so far I have this

var count = 1 ;var Max= Y ;var Min= Wfunction imageslider (count) {	var Image=document.getElementsById("firstimg")	count=count+1;	if(count>Max){		count=Min;	}	if(count<Min) {		count=Max ;	}	Image.src="images/pic"+count+".jpg";

the idea is naming all the pics in my folder pic+ a number

so what I am missing I believe is the delay , and I have no idea how to do that

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...