Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function imgStepper()
- {
- var position = '';
- switch( $('myform').down().id ){
- case 'yearBuilt': position = '100px 0px'; break;
- case 'burglarAlarm': position = '200px 0px'; break;
- case 'CVA': position = '300px 0px'; break;
- case 'deductible' : position = '400px 0px'; break;
- case 'lo': position = '500px 0px'; break;
- }
- $("myImagePlaceHolder").setStyle('background-position:' + position );
- }
Add Comment
Please, Sign In to add comment