Jump to content

HOW TO: Smooth Slider


Recommended Posts

I've been messing around with the slider order form template, and wanted a bit smoother slider, so here's how to do it.

 

Open up main.js in the folder templates/orderforms/slider/js

 

Add this RIGHT AFTER the top DOCUMENT READY function.

 

jQuery('#productslider').slider({
   range: "min",
   animate: true,
   value: 1,
   min: 0,
   max: 9,
   step: 1,
   orientation: "horizontal"
});

 

SO IT SHOULD LOOK LIKE THIS:

 

jQuery(document).ready(function(){
   jQuery("#existingcust").click(function(){
       if (jQuery(this).hasClass('active')!=true) {
           jQuery(".signuptype").removeClass('active');
           jQuery(this).addClass('active');
           jQuery("#signupfrm").fadeToggle('fast',function(){
               jQuery("#loginfrm").fadeToggle('fast');
           });
           jQuery("#custtype").val("existing");
       }
   });


jQuery('#productslider').slider({
   range: "min",
   animate: true,
   value: 1,
   min: 0,
   max: 9,
   step: 1,
   orientation: "horizontal"
});

 

This is to modify it right out of the box. If you managed to edit the code previously, the same rules should apply.

 

Let me know if you have any questions.

Link to comment
Share on other sites

  • 1 year later...
  • 1 month later...
  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated