Results 1 to 3 of 3

Thread: Addition of 'swipe' functionality to Side Push Menu

  1. #1
    Join Date
    May 2014
    Posts
    32
    Thanks
    16
    Thanked 0 Times in 0 Posts

    Default Addition of 'swipe' functionality to Side Push Menu

    1) Side Push Menu

    2) http://www.dynamicdrive.com/dynamicindex1/pushmenu.htm

    3) Is it possible to add a 'swipe' functionality to close the menu for mobile / touchscreen users?

    Thanks

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Sure, try the below attached modified version of pushmenu.js. Also, download the touchswipe library (located here), and on you page, add the reference in red to your original initialization code:

    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
    <script type="text/javascript" src="jquery.touchSwipe.min.js"></script>


    <script src="pushmenu.js">

    /***********************************************
    * Side Push Menu- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
    * This notice MUST stay intact for legal use
    * Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
    ***********************************************/

    </script>


    That should do the trick- swiping left on the opened menu now closes it.
    Attached Files Attached Files
    DD Admin

  3. The Following User Says Thank You to ddadmin For This Useful Post:

    Neil1 (09-20-2014)

  4. #3
    Join Date
    May 2014
    Posts
    32
    Thanks
    16
    Thanked 0 Times in 0 Posts

    Default

    Awesome, works perfectly... Thank-you

Similar Threads

  1. Custom image for 'Toggle Menu' event in Side Push Menu
    By Neil1 in forum Dynamic Drive scripts help
    Replies: 4
    Last Post: 05-28-2014, 04:08 PM
  2. Smooth Navigational Menu (v1.5) want to display as dropline side by side
    By jqdesigner in forum Dynamic Drive scripts help
    Replies: 19
    Last Post: 01-30-2013, 03:35 PM
  3. Replies: 1
    Last Post: 10-04-2011, 02:49 AM
  4. Chrome CSS Drop Down Menu (v2.0) eliminating the swipe effect?
    By nreb10 in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 04-19-2007, 04:55 AM
  5. Drop down menu with a swipe effect from bottom to top?
    By nreb10 in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 04-18-2007, 02:34 AM

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
  •