Results 1 to 4 of 4

Thread: Need help activating slideshow navigation with arrow keys

  1. #1
    Join Date
    May 2012
    Posts
    5
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Need help activating slideshow navigation with arrow keys

    1) Script Title:
    Ultimate Fade-in slideshow (v2.4)

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...nslideshow.htm

    3) Describe problem:
    I would like to active the 'prev' and 'next' links when a visitor to my site types the left or right arrow key. Any idea how to do this? Thanks!

  2. #2
    Join Date
    Jan 2011
    Location
    Southeastern CT
    Posts
    594
    Thanks
    43
    Thanked 28 Times in 28 Posts

    Default

    please post the url of your page.Otherwise nobody knows know what to do to help you.
    Thanks,

    Bud

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,926
    Thanks
    43
    Thanked 3,192 Times in 3,155 Posts
    Blog Entries
    12

    Default

    Add the highlighted as shown after the on page init:

    Code:
    	 	 . . . 30.tinypic.com/531q3n.jpg"],
    		["http://i31.tinypic.com/119w28m.jpg", "", "", "What a beautiful scene with everything changing colors."] //<--no trailing comma after very last image element!
    	],
    	displaymode: {type:'manual', pause:2500, cycles:0, wraparound:false},
    	persist: false, //remember last viewed slide and recall within same session?
    	fadeduration: 500, //transition duration (milliseconds)
    	descreveal: "always",
    	togglerid: "fadeshow2toggler"
    })
    
    jQuery(document).keydown(function(e){
    	e.keyCode === 37 && jQuery('.prev').trigger('click');
    	e.keyCode === 39 && jQuery('.next').trigger('click');
    });
    
    </script>
    - John
    ________________________

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

  4. The Following User Says Thank You to jscheuer1 For This Useful Post:

    MamaGeek (11-25-2012)

  5. #4
    Join Date
    May 2012
    Posts
    5
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Fantastic! Thank you!

Similar Threads

  1. Replies: 0
    Last Post: 12-23-2010, 12:59 AM
  2. Locate arrow-down.gif, and arrow-up.gif in 1 place
    By alanleaf in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 12-07-2008, 08:04 PM
  3. Activating PHP code with Javascript - Help Please...
    By mbrown174 in forum JavaScript
    Replies: 6
    Last Post: 01-10-2007, 01:06 PM
  4. Activating Form
    By Waterbottle in forum Other
    Replies: 1
    Last Post: 12-14-2006, 06:21 AM
  5. activating with mouseover
    By kakero in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 10-16-2004, 04:39 PM

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
  •