daily pastebin goal
75%
SHARE
TWEET

Untitled

a guest May 16th, 2018 108 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function imgStepper()
  2. {
  3.    var position = '';
  4.    switch( $('myform').down().id ){
  5.      case 'yearBuilt':    position = '100px 0px'; break;
  6.      case 'burglarAlarm': position = '200px 0px'; break;
  7.      case 'CVA':          position = '300px 0px'; break;
  8.      case 'deductible' :  position = '400px 0px'; break;
  9.      case 'lo':           position = '500px 0px'; break;
  10.    }
  11.  
  12.    $("myImagePlaceHolder").setStyle('background-position:' + position );
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top