Jump to content

Gallery


thecase

Recommended Posts

Hi,

 

I have an url and id feild in my database the url field is a link to images. I want to randomly fetch all the images in no order ... and display them then I need take a little bit of javascript to change the image like fade out ... fade in so this is the plan

 

fetch random image from database

display image

wait 5 seconds

fade image out

fade new image in

 

How can I do this

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/100685-gallery/
Share on other sites

To learn about fetching random entries from a database, read:

http://www.phpfreaks.com/forums/index.php/topic,125759.0.html

 

Then, either reload the whole site automatically every 5 seconds (set refresh to 5 seconds in your meta tags), or, if the gallery is only a section on your page, update it with AJAX. Hope this helps!

 

Link to comment
https://forums.phpfreaks.com/topic/100685-gallery/#findComment-514917
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.