How do I create my own webcam for Deviant.ART?

How do I create a website link that appears when my webcam is on, and disappears when the webcam is offline?

  • I have a webcam and want to create a link or image that appears on my website when the webcam is online, and disappears when the webcam is offline. The webcam creates a page called webcam.html on a dynamic IP address, when the webcam is off, the site webcam.html is also offline. I wanted to find a java code to check the link first and say whether the link is active or not, or to remove the link completely if it is inactive.

  • Answer:

    make an iframe that opens that page. Test the iframe's URL to see if it's webcam.html { print the link } else { don't } or if you care about people with JS turned off if(iframe.src="http://404page") { o = document.getElementByID('idOFlink'); o.style.display = "none" } these are kind of rough ideas...but it's hard to do this on the client-side...

Robert S at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.