Results 1 to 8 of 8

Thread: Featured Content with wanted extra: resume gliding

  1. #1
    Join Date
    May 2010
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Featured Content with wanted extra: resume gliding

    Featured Content Glider
    http://www.dynamicdrive.com/dynamici...tentglider.htm

    I don't have a problem with the script but I would like to know if anyone can help me get to get it to do the following.

    I would like it to resume gliding after a link under it has been pressed. As it is now it glides just fine until the visitor clicks on a link pointing to featured content. Is it supposed to do this? And if so: what can I do/add to help it move along again.

    Thanks for the help.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    The glider stops after user interaction because (I'm assuming, I didn't write the script), if it didn't, the user might be taken away from what he/she was interested in before they had time to really take it in. The optional auto glide is just to provide attention getting action if desired. The glider may start in stopped mode.

    Are you asking for a resume button, or a pause and a resume button, or just wanting to make it so that after the user stops the glider by clicking on one of its existing buttons, that it resumes on its own after a specified amount of time has passed?
    - John
    ________________________

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

  3. #3
    Join Date
    May 2010
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you for the response.
    I am not looking for a resume button (although it might be an extra some users could possibly enjoy) but I would like the glider to resume gliding on it's own after a visitor moves the pointer away from it.
    And actually, it would be really nice if the gliding would stop when the pointer is over it, too. This way the visitor can read the content without it disappearing from sight before he finishes.

    Thanks for pinpointing down some solutions!
    Last edited by kimpouss; 05-23-2010 at 10:01 AM.

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    OK, I think I've got that. Use this version of the featuredcontentglider.js script (right click and 'save as'):

    Attachment 3320

    Add a configuration option in your featuredcontentglider.init (see highlighted line):

    Code:
    featuredcontentglider.init({
    	gliderid: "canadaprovinces", //ID of main glider container
    	contentclass: "glidecontent", //Shared CSS class name of each glider content
    	togglerid: "p-select", //ID of toggler container
    	remotecontent: "", //Get gliding contents from external file on server? "filename" or "" to disable
    	selected: 0, //Default selected content index (0=1st)
    	persiststate: false, //Remember last content shown within browser session (true/false)?
    	speed: 500, //Glide animation duration (in milliseconds)
    	direction: "downup", //set direction of glide: "updown", "downup", "leftright", or "rightleft"
    	autorotate: true, //Auto rotate contents (true/false)?
    	pause: true, //If auto rotate, should glider pause on mouse over of contents and controls (true/false)?
    	autorotateconfig: [3000, 0] //if auto rotate enabled, set [milliseconds_btw_rotations, cycles_before_stopping]
    })
    Notice also that the autorotateconfig's second item is 0. That's for continuous auto rotation.
    - John
    ________________________

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

  5. #5
    Join Date
    May 2010
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile Yippee!

    Got me a present!
    Thank you very much, it works just fine. I am currently working on a website and nothing has been uploaded yet but I shall send you the link to the result when it's done. The glider works just fine now.

    Thank you very much for your help. I didn't expect anything to come from it but this makes my day. Thank you, have a good day!

  6. #6
    Join Date
    May 2010
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default thank you and promised link

    Hi, it took me a while but here it is, implemented in a new website. It's still being developed but the glider glides proudly and is stoppable due to your addition. Thank you very much!

  7. #7
    Join Date
    May 2010
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile Forgot the link

    I forgot the link... This is definitely not by brightest moment http://www.learningtrain.nl
    Thanks again!

  8. #8
    Join Date
    Sep 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    This version of the script is great - it's a very useful addition.
    However, what I'd really like is a button that can pause and resume the autorotation. I tried this one: http://www.dynamicdrive.com/forums/s...ad.php?t=28990 but it doesn't work right - when you click pause it goes back to the first one. Also the resume function is not clear.
    I really just want to change the feature on this page so that instead of MouseOver to activate the function, there's a button that toggles from a pause button to a play button.
    I have noooo idea how to do this. Any help would be appreciated!!
    Thanks!

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
  •