Хорошее утро!
Я не говорю русского, Я использую following сценарий для DCS-950:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>kamera 950 - El bueno!!!</title>
<script language="javascript">
function random_cookie()
{
Random_value=Math.floor(Math.random()*1000000000000000);
document.cookie="AGID" + "=" + Random_value;
CookieValue=document.cookie;
start=CookieValue.indexOf("=",0);
endof=CookieValue.length;
CookieValue=CookieValue.substring(start+1,endof);
if (CookieValue.length!=15)
{
random_cookie();
}
else
{
return CookieValue;
}
}
function GetCookieValue()
{
CookieValue=document.cookie;
startof=CookieValue.indexOf("=",0);
endof=CookieValue.length;
CookieValue=CookieValue.substring(startof+1,endof) + "f";
return CookieValue;
}
function start()
{
ip='192.168.0.3'; //or host
ID='user';
Pwd='123';
control='5000';
stream='5001';
document.CSViewer1.SetID(ID);
document.CSViewer1.SetPwd(Pwd);
document.CSViewer1.encode();
random_cookie();
document.CSViewer1.SetBasePortNumber(control);
document.CSViewer1.SetStreamPortNumber(stream);
document.CSViewer1.SetRemoteIP(ip);
cookievalue=GetCookieValue();
cookievalue=cookievalue.substring(0,CookieValue.length-1);
document.CSViewer1.SetClientCookie(cookievalue);
document.CSViewer1.ViewerOpen();
document.CSViewer1.AudioStart();
document.CSViewer1.ZoomIn(1);
}
function leave()
{
document.CSViewer1.ViewerClose();
}
</script>
</head>
<body onload="start()" onunload="leave()">
<OBJECT id="CSViewer1" codeBase="http://192.168.0.3:80/CSViewer.cab#version=1,81,401,2005"
height="480" width="640" classid="clsid:EFFDEEEC-F9E1-4461-91D2-DAEB8CC595F1">
</OBJECT>
</body>
</html>
Примечание: Я буду мексиканской женщиной[quote][/quote]
|