jquery - Calling other HTML file (hyperlink) on Swipe gesture with TouchSwipe plugin -
i'm looking @ touchswipe plugin - http://labs.rampinteractive.co.uk/touchswipe/demos/ , wondering how can call other html file on swipe gesture?
so have 1 div, touchswipe works. on swipe left browser open 1 html file hyperlink , on swipe right, other one.
so code this:
$("#swipe").swipe({ swipeleft:function(event, direction, distance, duration, fingercount) { } });
thank guys advices , help!
i think should it, assuming have id="swipe" in both 1.html, , 2.html.
// ------------ // 1.html. // ------------ $("#swipe").bind("swipeleft",function(event) { $("#div").load( "2.html"); }); // ------------ // 2.html. // ------------ $("#swipe").bind("swiperight",function(event) { $("#div").load( "1.html"); });
Comments
Post a Comment