showjumpers66
05-06-2004, 02:03 AM
I am having issues with CoffeeCup pop-up webcam script. My refresh is set for 16 seconds but during traffic it is only refreshing every 2 minutes. I have checked with my ISP (cable) and there is not a problem with the images loading every 16 seconds to the host. I checked with the host, BlueDomino, and there is not an issue with my bandwidth. The CoffeeCup support agent said that it may be a conflict with the no right click script that I was told to add and that I need an onload script. I reviewed the FAQs and previous topics here, but I do not understand how to use it. Could someone explain it in laymans terms? Is it really necessary to have the no right click script to prevent WCW? Thanks!
Pop-up Webcam Window (http://www.quantumleapfarm.com/webcam.html)
<script language="Javascript">
<!--
function refreshCam(){
rfsh = new Date() ; rfsh = "?"+rfsh.getTime()
document.images["webcam"].src = "webcam.jpg"+rfsh
setTimeout("refreshCam()", 16000) // 16 Secs
}
//-->
</script>
<script language="Javascript1.2">
am = "No WCW, please!";
bV = parseInt (navigator.appVersion)
bNS = navigator.appName=="Netscape"
bIE = navigator.appName=="Microsoft Internet Explorer"
function nrc(e) {
if (bNS && e.which > 1) {
alert(am)
return false
} else if (bIE && (event.button >1)) {
alert(am)
return false;
}
}
document.onmousedown = nrc;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (bNS && bV<5) window.onmousedown = nrc;
</script>
Pop-up Webcam Window (http://www.quantumleapfarm.com/webcam.html)
<script language="Javascript">
<!--
function refreshCam(){
rfsh = new Date() ; rfsh = "?"+rfsh.getTime()
document.images["webcam"].src = "webcam.jpg"+rfsh
setTimeout("refreshCam()", 16000) // 16 Secs
}
//-->
</script>
<script language="Javascript1.2">
am = "No WCW, please!";
bV = parseInt (navigator.appVersion)
bNS = navigator.appName=="Netscape"
bIE = navigator.appName=="Microsoft Internet Explorer"
function nrc(e) {
if (bNS && e.which > 1) {
alert(am)
return false
} else if (bIE && (event.button >1)) {
alert(am)
return false;
}
}
document.onmousedown = nrc;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (bNS && bV<5) window.onmousedown = nrc;
</script>