Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- var panCenter = -50;
- var tiltCenter = 10;
- function activate(action, movement) {
- // document.write("rambot.php?action=" + action + "&movement=" + movement);
- xmlhttp = new XMLHttpRequest();
- xmlhttp.open("GET","cgi-bin/pantilt.py?action=" + action + "&movement=" + movement,true);
- xmlhttp.send();
- if(action=="startstream" || action=="stopstream") {
- setTimeout('location.reload()', 5000);
- }
- }
- function centerView() {
- document.getElementById('panslider').value = panCenter;
- document.getElementById('tiltslider').value = tiltCenter;
- activate("pan", panCenter);
- activate("tilt", tiltCenter);
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement