Results 1 to 3 of 3
  1. #1
    Member ekstasis16's Avatar
    Join Date
    Oct 2005
    Location
    Thousand Oaks, CA
    Posts
    112

    Random scrolling slideshow

    Last night, I decided to make my homepage useful, so I set up a scrolling slideshow. It uses PHP, CSS and Javascript to create the effect. I found the JS code on another site, but I can't remember who posted it.

    The PHP generates a randomly ordered list of images from my gallery. The JS and CSS work together to position each LI absolutely within the UL and assign a left: property to each LI so that they line up horizontally with a little padding in between. The JS animates it by changing the values of the left: property by 1 pixel at each interval of 25 milliseconds, and it seems to be pretty smooth, at least on my machine.

    However, Internet Explorer is not happy with this code at all (surprise, surprise). There seems to be a weird bug with positioning the LI's absolutely and hiding/showing them through JS, so I'm serving IE users a different page. You can view the slideshow with Firefox or any other browser until I get this figured out.

    http://www.erikhagen.net/

    Since my Powerbook died, I haven't been able to test this out on a Mac (Firefox and Safari). If anyone is using a Mac, please let me know if you see any problems. Thanks!
    30D, 70-200 2.8L IS, 300 4L IS, 24-70 2.8L, 10-22, 85 1.8, 580EX
    Web Designer & Developer
    www.erikhagen.net
    www.callutheran.edu
    www.clusports.com

  2. #2
    To Capture the Mind! MarcusK's Avatar
    Join Date
    Jul 2006
    Location
    Lebanon / The World
    Posts
    686

    Re: Random scrolling slideshow

    It is working fine on Firefox but Safari placed them all on top of each other like a deck of cards.... but then again, i personally think IE and Safari are lousy browsers....

    I do understand your point of view though, in issues of Web design you need to open up to as large an audience as possible thereby worrying about compatibility...

    Anyway, that's what happened on the Mac... Firefox great (although a bit flickery, but i think it has to do with frame rate of the motion)....Safari - failed...

    Hope this was what was required
    Marc
    Marc

    "Perfection is achieved, not when there is nothing left to add, but rather, when there is nothing left to take away." - Antoine de St-Exupery

    Kindly do NOT edit my photos - I would rather try and apply your advice and learn...

    My Ramblings....

  3. #3
    Sports photo junkie jorgemonkey's Avatar
    Join Date
    Jul 2003
    Location
    San Jose, CA
    Posts
    1,689

    Re: Random scrolling slideshow

    That is a really cool slideshow, I'm trying to learn how I can put one of those up on my site.
    Nikon Samurai #21



    Cameras:
    D700
    D300
    D200
    D2H

    Lenses:
    Nikon 35mm F1.8, 35 F2, 50mm F1.8, 70-200 F2.8 VR
    Sigma 150mm F2.8 Macro
    Tokina 12-24 F4
    SB900 & SB800 flashes

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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