Окно камеры
(custom)
<div>
<label for="scale"><b>Качество, %:</b></label>
<select id="scale" onchange="SR_change()">
<option selected>100</option>
<option>90</option>
<option>80</option>
<option>70</option>
<option>60</option>
<option>50</option>
<option>40</option>
<option>30</option>
</select>
<label for="refresh"><b>Скорость обновления, c:</b></label>
<select id="refresh" onchange="SR_change()">
<option>10</option>
<option>5</option>
<option>3</option>
<option>2</option>
<option selected>1</option>
<option>0.5</option>
</select>
</div>
<div id="camera" >
</div>
<script type="text/javascript">
var t = setInterval( function () {
$("#camera").load("/camera.php?num=8&scale=100");
}, 1000);
function SR_change()
{
clearInterval(t);
t = setInterval( function () {
$("#camera").load("/camera.php?num=8&scale="+$("#scale").val());
}, $("#refresh").val()*1000);
}
</script>