The idea is that i would like to be able to write it in html or css to ping an address or IP every 10 minutes to check if it bounces back a signal, and if yes, then the status on my website says its ‘online’, or if it doesn’t receive a signal, then it changes the text on my webpage to say ‘offline’. I would have no idea how to make it Interchangeable to work with several servers, so far i have only found a way to do it with cron jobs, but i’m running windows 7 and have no idea how to script it in the emulators i found. Also i’m fairly new to html and css or i would probably already know how to do this :/
Any help is much appreciated, Thanks in advance.
Can you write a file on the external server?
If so, add a small stylesheet there which alters the following HTML:
from this CSS (on your server):
to this:
Make sure you link them so that the external server’s stylesheet is listed last in your HTML header.
However, this pure-CSS method can not be repeated every ten minutes — for that, you need JavaScript.
Make a JSON-P request to the external server, make the text default to “offline” in your HTML, and change it to “online” if the JSON-P request is successful. (JSON-P will never return an error.) However, this also requires that you have a page of your own making on that external server to return the JSON, even if it’s empty.
If you don’t have access to write to the external server, then there’s probably not much you can do.