Advanced Search

Results 1 to 5 of 5

Thread: HTML Code for Slideshow

  1. #1
    Join Date
    Oct 2009
    Location
    Oklahoma
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile HTML Code for Slideshow

    Hello everyone,

    This is my first post, so i apologize if my problem is not clear enough. Ima get straight to the point.

    My Problema:

    Well, I am currently working on getting a website together for my gaming clan. and I see some other sites have a slideshow that just loops pictures, I really like that. So, im just wondering if there is like an html code that could do such a thing? Thanks!

    Regards,
    Comanche

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    27,535
    Thanks
    42
    Thanked 2,874 Times in 2,847 Posts
    Blog Entries
    12

    Default

    Not sure what you mean by loop. The closest thing that uses just HTML would be the HTML marquee tag which is non-standard but fairly well supported. It would allow for a train of images to go by and repeat, but I believe there is always a gap equal to the length of the train in between each loop.

    Other than that, you would need some kind of script, javascript probably. A favorite of mine is:

    http://www.dynamicdrive.com/dynamici...nslideshow.htm

    But, if that one isn't good for you, there are many to choose from, here:

    http://www.dynamicdrive.com/dynamicindex14/index.html

    some more here (along with other stuff for images):

    http://www.dynamicdrive.com/dynamicindex4/indexb.html

    And these are just what are available in the Dynamic Drive Library. If you use Google to search for:

    slideshow

    You will likely find tons of them.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Dec 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hello

    I stumbled in on this convo because I am looking for a slide show that I can place in a div tag that allows me to update date automatically when I upload more images into the image directory.

    In laymen's terms, the code is reading the image folder and playing all images in the folder. If I remove or add an image, the code just plays what is in the folder.

    I don't mind coding it myself, I just need to know where to start AND if it has been done before. If so I would gladly credit the writer of the code I use.

    I am aware of Java and flash.... however these USUALLY require to remake the slideshow if you want to add or remove images. I want to avoid having to remake the slideshow every time I have a new creation photographed, or if I have sold (no longer need to show) a creation I have in the slideshow.

    Any valid suggestions would be greatly appreciated!

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    27,535
    Thanks
    42
    Thanked 2,874 Times in 2,847 Posts
    Blog Entries
    12

    Default

    You would need a server side language like PHP, asp, etc. to fetch the images. Other than that, you could use almost any javascript slideshow. Does your host have PHP? That's the easiest for folks around here to work with. I can probably do it in asp as well.

    Without a server side language you can approximate fetching the images by using a naming convention for them and keeping them in sequence numerically. But that would mean no gaps in the sequence, so wouldn't fit the requirements you've outlined.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    1,496
    Thanks
    16
    Thanked 223 Times in 222 Posts
    Blog Entries
    1

    Default

    If you're good to use PHP, you can try this jQuery + PHP slideshow: http://fofwebdesign.co.uk/template/_...ic_rotator.php

    It takes all the images from a specified folder (using PHP) and loads them into an unordered list. Then jQuery adds the fading effects, etc.

    Its currently set to shuffle the images so they load randomly, but you can uncomment the line that will sort them in order and then you can force a specific image sequence.

    You specify the allowed file extensions too.

    Just set the image size in the CSS, set the pic rotation interval in the JavaScript (curently set to 4 seconds), then point the script to the image folder and that's about it.

    Hope it helps
    Focus on Function Web Design | Latest News RSS | Facebook | Twitter |
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) |
    The only limit to creativity is imagination: JemCon.org

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •