www.webdeveloper.com

View Poll Results: javascript image rotator

Voters
0. You may not vote on this poll
  • any good?

    0 0%
  • recommended sites?

    0 0%
Results 1 to 6 of 6

Thread: Javascript Image Rotator from folder

  1. #1
    Join Date
    Dec 2009
    Posts
    1

    Javascript Image Rotator from folder

    Would really appreciate any help with my request....


    Im looking to setup a project for my uni assignment. its going to be a time radio site and i'm looking to create a page that has some javascript to carry out an image rotation.

    I want to have:
    - three images side by side
    - all images to rotate from a folder containing 100+ pictures
    - they all have different file names and extensions but i can change them if need be
    - i want the images to rotate automatically without the page having to be reloaded or mouseovers or anything
    - i would like them to rotate on different time frames i.e. first picture 3 sec rotation, second picture 5 seconds, third image 7 seconds.... something like that


    if any can help me with this i would be really grateful...

    iv tried scanning the web but come up short. cant use php or anything its got to be a html page using javascript.

    just to point out im not cheating by the way the module im doing it for is for media design not programming just cant find the code to do what i want.

    again thanks for everyones time

    cheers

  2. #2
    Join Date
    Oct 2006
    Posts
    939
    The big problem for me would be to get the images in the folder.
    I can do it with IE only with a security prompt but that isn't good enough here. I also
    have a PHP script that can do it but you have disqualified that too.

  3. #3
    Join Date
    Dec 2009
    Location
    Iowa
    Posts
    2
    Quote Originally Posted by justinbarneskin View Post
    The big problem for me would be to get the images in the folder.
    I can do it with IE only with a security prompt but that isn't good enough here. I also
    have a PHP script that can do it but you have disqualified that too.
    This is close to what I'm looking for, and PHP would be fine on the forum that I'm running. Could you please post that code, or email it to me, thanks.

  4. #4
    Join Date
    Oct 2006
    Posts
    939

  5. #5
    Join Date
    Dec 2009
    Location
    Iowa
    Posts
    2
    Thanks, that will be a big help.

  6. #6
    Join Date
    Jun 2004
    Posts
    133
    Quote Originally Posted by justinbarneskin View Post

    That's brilliant! Is there any way to make it generate something other than an array? Such as, my code uses main images and thumbnails, rather than a slideshow, and I'd like this to generate the list for that. My list needs to be like this:
    Code:
    <li class="active"> <a href="1.jpg"><img src="1thumb.jpg"></a></li>
    <li><a href="1a.jpg"><img src="1athumb.jpg"></a></li>
    <li><a href="1b.jpg"><img src="1bthumb.jpg"></a></li>
    <li><a href="2.jpg"><img src="2thumb.jpg"></a></li>
    And so on.

    Is this possible?
    Last edited by AliasJaneDoe; 12-28-2009 at 04:55 PM.

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

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



Recent Articles