Here is an easy way to create a horizontal and vertical slider.
<script> function MM_effectSlide1(targetElement, duration, to, from, slide, toggle) { Spry.Effect.DoSlide(targetElement, {duration: duration, to: to, from: from, horizontal: true, toggle: true}); } function MM_effectSlide2(targetElement, duration, to, from, slide, toggle) { Spry.Effect.DoSlide(targetElement, {duration: duration, to: to, from: from, horizontal: false, toggle: true}); } </script> <body> <div id="socialmedia" class="socialcontainer" onclick="MM_effectSlide1('socialmedia', 1000, '100%', '11%', true, true)"></div>
If you look at the code, the only code to be changed is MM_effectSlide1, 2, 3, etc.
source share