1 | ||
Editor: sse
Time: 2009/02/16 12:42:57 GMT+1 |
||
Note: |
changed: - <h1>Is your installation of AbelCam Online?</h1><br>To determine if your AbelCam installation is online, you may use the following Java Script code:<p><script src="http://www.abelcam.com/en/uidlid/online.js?uid=UID&lid=LID&cam=CAMNR&offline=OFFLINEIMGURL" type="text/javascript" ></script></p><h2>Variables</h2> <ul> <li>UID<br>User ID, this number is listed in the About Form once you have a AbelCam License<br></li><li>LID<br>License ID, this number is listed in the About Form once you have a AbelCam License</li><li>CAMNR<br>Camera Number, first camera is number 0</li> <li>OFFLINEIMGURL<br><i>optional</i> Image URL to use when the camera is offline</li></ul><p>The script sets two variables:<br> </p><ul> <li>online<br>when the camera is online, this variable is set to 'y', otherwise to 'n' </li><li>imgurl<br>URL for the image if the camera is online, to the offline image URL if the camera is offline</li></ul>Sample Usage:<br><br><script src="http://www.abelcam.com/en/uidlid/online.js?uid=99999&lid=999&cam=0&offline=http://www.abelcam.com/img/offline.jpg" type="text/javascript"></script><br><br><script> <br>if (online == 'n') {<br> document.write("The Camera is offline")<br>} else {<br> document.write('<img src="' + imgurl + '">');<br>}<br></script><br><br>
<script src="http://www.abelcam.com/en/uidlid/online.js?uid=UID&lid=LID&cam=CAMNR&offline=OFFLINEIMGURL" type="text/javascript" ></script>
The script sets two variables: