how to check if a server is online code example
Example: check if web server is online
<img src="http://site-to-check.com/online.png" alt="status" onerror="this.src='files/offline.png'" />
<img src="http://site-to-check.com/online.png" alt="status" onerror="this.src='files/offline.png'" />