Change Images Over time

images php coding issues or problems here.

Moderators: macek, egami, gesf

fabioacsantos
New php-forum User
New php-forum User
Posts: 1
Joined: Fri May 20, 2011 4:06 pm

Change Images Over time

Postby fabioacsantos » Fri May 20, 2011 4:11 pm

hello. I wanted to know how to make 5 images change over time, like, each 7 seconds it changes from one to another (from 1 to 2, from 2 to 3, from 3 to 4 and so on) and every image have a link to another page.

thanks :D

scieck
New php-forum User
New php-forum User
Posts: 4
Joined: Fri May 20, 2011 7:48 pm

Re: Change Images Over time

Postby scieck » Fri May 20, 2011 8:41 pm

You should not do that using php, but using javascript.
jQuery is a good, easy to use javascript framework and has plug-ins for image rotator.
google for jquery image rotator.

User avatar
webinfopedia
New php-forum User
New php-forum User
Posts: 84
Joined: Sat May 21, 2011 10:26 pm
Contact:

Re: Change Images Over time

Postby webinfopedia » Thu Jun 02, 2011 6:55 am

You can make this with jquey or ajax.

Hope that below link will help you
http://www.webinfopedia.com/autoload-refresh-div-in-jquery.html

Thank You

User avatar
gandahar
New php-forum User
New php-forum User
Posts: 112
Joined: Tue Mar 15, 2011 4:05 am

Re: Change Images Over time

Postby gandahar » Thu Jun 09, 2011 5:29 am

here is a very minimalist javascript solution :

Code: Select all

var time_to_wait=1250; //milliseconds
setTimeout("alert('hello world!!')",time_to_wait);



with this you can trigger anything after time_to_wait


Return to “PHP coding => Images”

Who is online

Users browsing this forum: No registered users and 1 guest