Δημοσιεύτηκε: 19 Σεπ 2011, 11:36
από zougas
Καλημερα σας υπαρχει αυτο σε αρχειο html και απο δω πηρα την ιδεα να ζητησω αυτο που θελω και εχω δει να πραγματοποιται σε ενα πρoγραμμα στα windows (http://www.h264soft.com/)
Κώδικας: Επιλογή όλων
[color=#0000FF]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
<title>FOSCAM FI8918W Control</title>
</head>

<script type="text/javascript">


//******* Edit This *******
var chrUser = 'UserName' //User name
var chrPassword = 'Password' //Password
var chrURL = 'YOUR.dyndns-mail.com:8100' // do not include "http://" in this line
//****** End of User Editing ******


function doCam(arg, chrType) {
if(document.getElementById('ifrResult')){
if(chrType == 1){ chrCGI = 'decoder_control'
}else if(chrType == 2){ chrCGI = 'videostream'
}else if(chrType == 3){ chrCGI = 'snapshot'
}else if(chrType == 4){ chrCGI = 'set_alarm'
}else if(chrType == 9){ chrCGI = 'reboot'
}else{ chrCGI = 'camera_control'
}
document.getElementById('ifrResult').src='http://'+chrURL+'/'+chrCGI+'.cgi?user='+chrUser+'&amp;pwd='+chrPassword+'&amp;'+arg;
}
}
</script>

<body>

<table> <tr>
<td>Go To:</td>
<td>
<a href="javascript:doCam('command=31',1)">1</a>
<a href="javascript:doCam('command=33',1)">2</a>
<a href="javascript:doCam('command=35',1)">3</a>
<a href="javascript:doCam('command=37',1)">4</a>
<a href="javascript:doCam('command=39',1)">5</a>
<a href="javascript:doCam('command=41',1)">6</a>
<a href="javascript:doCam('command=43',1)">7</a>
<a href="javascript:doCam('command=45',1)">8</a>
</td>
</tr>
</table></body>
</html>[/color]

Αν μπορουσαμε να κανουμε κατι εδω γιατι δεν ζηταει κωδικο τον παιρνει απο πιο πανω