Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Feb 2010
    Posts
    210
    Thanks
    15
    Thanked 2 Times in 2 Posts

    can I do my idea with JavaScript

    hi everyone,

    I want to create a photo album with 3 images like these:


    I hide two of them and make them little smaller then main one:
    + added two arrows to both sides.


    the thing is that I want those images to change when someone pushes the arrows. What is more, I want changing style to be something like spinning around the circle.

    The thing is that I want to save the image on which user was last and when he comes back - it will show his last image. I also would like to use image or other content like some HTML script.

    is it possible to do it with JavaScript only? Maybe there is something like that already created. I do not think that it is cery hard, just need deeper knowledge than mine.

    Kind regards...

  2. #2
    Senior Coder
    Join Date
    Dec 2010
    Posts
    2,398
    Thanks
    12
    Thanked 570 Times in 563 Posts
    I would suggest you use jQuery as there are a lot of predefined plugins and/or demos for your effect, which is called "coverflow"

    Examples:
    http://www.blarnee.com/projects/coverflow/
    http://addyosmani.com/resources/cove...demo/demo.html

  3. #3
    Regular Coder
    Join Date
    Feb 2010
    Posts
    210
    Thanks
    15
    Thanked 2 Times in 2 Posts
    I followed your links and came up with this demo:

    http://swat.xz.lt/demo/

    What I have to change if I want those images to start showing not from the first one but from the Middle one? then it would be possible to see both arrows when entering this gallery...

    Thanks.

  4. #4
    Senior Coder jmrker's Avatar
    Join Date
    Aug 2006
    Location
    FL
    Posts
    3,377
    Thanks
    52
    Thanked 534 Times in 528 Posts

  5. #5
    Regular Coder
    Join Date
    Feb 2010
    Posts
    210
    Thanks
    15
    Thanked 2 Times in 2 Posts
    Quote Originally Posted by jmrker View Post
    Sorry, but no...

    Anyway, maybe it is possible to change existing script to start from middle picture or from 2nd one...


 

Posting Permissions

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