dynamic visual feed

This commit is contained in:
Juti Noppornpitak 2007-03-18 17:59:35 +00:00
parent 82adf45358
commit d43498a083
1 changed files with 17 additions and 0 deletions

17
vfeed.js Normal file
View File

@ -0,0 +1,17 @@
var e = document.getElementById("vfeed");
var f = new net.core("http://caramel-colour.csclub.uwaterloo.ca:8080/singleframe", "rvf");
function callvfeed() {
f.connect("http://caramel-colour.csclub.uwaterloo.ca:8080/singleframe");
e.innerHTML = "<div class=\"vfeedmon\">"
+ "<div id=\"rvf\">Connecting...</div>"
+ "<h2>Visual Feed from the Office</h2>";
+ "<div class=\"vfeed-cmds\">Feed 1 | Feed 2 | "
+ "<a href=\"#\" onclick=\"stopvfeed()\">X</div>";
+ "</div>";
}
function stopvfeed() {
e.innerHTML = "";
}
document.write("<a href="#vfeed" onclick="callvfeed()">Visual Feed</a>");