Jump to content

Simple slideshow for php/mysql ?


justAnoob

Recommended Posts

I have a page on my site which displays a picture that I have stored on my server. The loaction of that picture is stored in mysql. All the images are .jpg format.  My question is, if I allow a user to upload 5 pictures instead of just 1,  is there a simple script that would show each picture for about 2-3 seconds, the go to the next? Basically like an auto slideshow.  Each picture has an ID that associates with the name of the category, so I could just call that ID and have the slideshow only show those pictures.  So I'm just wondering about the slideshow script.

Link to comment
Share on other sites

Doing it the easy way, yes.  You can obviously load the images in the background in javascript, but that's significantly harder. 

 

You could also simply print all the images to the screen and make all but the first one "display: none;"  Every 2 seconds, adjust the display of the items to display the next one. 

 

There's a hundred ways to do this.

 

-Dan

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.