UPDATE: included JavaScript and updated HTML
JS
$(document).ready(function() {
$('#dyna').change(function() {
$('#myBox').attr('class', 'box quad' + $('#dyna').val());
});
});
HTML
<select id="dyna">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
<div id="myBox" class="box quad1"></div>
<!-- manually change the "quad" class number as needed-->
CSS
.box{
background:url('https://i.sstatic.net/HQaif.jpg');
width:512px;
height:512px;
background-size: 200%;
background-repeat:no-repeat;
}
.quad1{
background-position: 0% 0%;
}
.quad2{
background-position: 100% 0;
}
.quad3{
background-position: 0 100%;
}
.quad4{
background-position: 100% 100%;
}
You can use JavaScript to dynamically change the "quad" class (quad1 to quad4)
View it in action: http://jsfiddle.net/EMKHJ/3/