SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Enthusiast dziner's Avatar
    Join Date
    Jun 2004
    Location
    Harrisburg
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Javascript Image Rotator w/Links

    I've searched google and the forums here and still haven't seemed to have found an easily understandable javascript to do what I'd like to do. Here's what I'm looking for:

    I need to have a graphic display on the site for a set amount of time, then rotate to another graphic, each could link to a different page and/or open a link in a new window.

    The page needs to link to the javascript that would handle this process. In the javascript I'd like to be able to change the names of the graphics that will display (png's), the number of graphics that will display, the amount of time they display before rotating, the link for each graphic, the target for each graphic (most will be the same page but on occasion it will need to open in a new window.

    Optional would be a cross-fade between graphics as they rotate. I'm new to javascript so any help would be greatly appreciated.

  2. #2
    I ♥ PHP
    Join Date
    Jul 2003
    Location
    Melbourne, Australia
    Posts
    579
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    dziner, I don't imagine the sort of script you are looking for will exist in its entirity for your use, but it also doesn't sound like something that would be overly-complicated to create.

    you may have more luck posting in the "Looking to Hire" forum and someone may do it for you for $50, but it is going to be a bit much work for someone to do for you completely for nothing in my opinion.

    Regards,
    Jordan

  3. #3
    I ♥ PHP
    Join Date
    Jul 2003
    Location
    Melbourne, Australia
    Posts
    579
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Bugger it, had nothing better to do.

    http://sandbox.windebank.com.au/imageRotator/

    Let me know if this suits your needs. I have included instructions on the usage in the comments of the Javascript file.

    Regards,
    Jordan

  4. #4
    SitePoint Enthusiast dziner's Avatar
    Join Date
    Jun 2004
    Location
    Harrisburg
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Awesome Jordan! That works amazingly well!

    Now... how difficult would it be to randomly pull images from a directory and their respective links. Or add a fade between images? That would be the icing on the cake.

    Thank you so much Jordan!

  5. #5
    I ♥ PHP
    Join Date
    Jul 2003
    Location
    Melbourne, Australia
    Posts
    579
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't think it is possible to directly read the files from the directory sorry. I'll have a look at the fading shortly.

    Regards,
    Jordan

  6. #6
    SitePoint Addict
    Join Date
    May 2006
    Posts
    349
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    These are the ones I use. They do what your talking about and a lot more for 5.00. They work fantastic. Image Rotators
    Last edited by 1Jen; Mar 12, 2007 at 05:14.


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
  •