update initializing variables onclick and re-run the script...

update initializing variables onclick and re-run the script...

.. well is it even possible and how could i do that?!

i'll try to explain better:


i run a carousel plugin which has initializing variables on my index page, which looks like:

      1. $(function() {
      2.     $(".jMyCarousel").jMyCarousel({
      3.         visible: '100%',
      4.         speed: 275,
      5.         start: -2146,
      6. mouseWheel: false
      7.     });
      8. });
      now what i need is an onclick event which tells the script to update the variable 'start' to '500' and then re-run the script without a complete page-reloading....


      any ideas please ...