Posted: October 25, 2012 in Uncategorized

Live Stream
// 0) x = Math.round((x * 400) / width_array[currentCamera1]);
if (height_array[currentCamera1] > 0) y = Math.round((y * 300) / height_array[currentCamera1]);
//alert(x + ” :: ” + y);
if (myifr != null) myifr.src = “http://ARIL-PC:8080/ptz?src=” + currentCamera1 + “&moveto_x=” + x + “&moveto_y=” + y +””;
return true;
}
function getElPos1()
{
el = document.images.webcam1;
x = el.offsetLeft;
y = el.offsetTop;
elp = el.offsetParent;
while(elp!=null)
{ x+=elp.offsetLeft;
y+=elp.offsetTop;
elp=elp.offsetParent;
}
return new Array(x,y);
}
// ]]>

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s