Dark-Talon
03-16-2003, 09:27 AM
Okay.. I wrote the following simple code to specify whether or not my personal server is online. It appears to work perfectly on IE for Windows, but I wrote this in Simpletext on my girlfriend's Mac, so I was able to test it there as well. Unfortunately, things didn't work out quite so well. Mac IE will display offline.gif even if the server is online. Safari will not display either image regardless of whether or not the server is online. This is exceptionally frustrating, as you might imagine, since this is a very simple function. I don't even really know what to do about this problem, but I don't suppose it's all that important, as my personal server is only available to my friends (for now).
function imageError()
{
document.serverstatus.src = "offline.gif";
}
...
<img name="serverstatus" onerror="imageError()" src="http://111.111.111.111/online.gif" border="0">
Why, oh why can't we establish standards for something as useful as javascript? :(
Dark-Talon
function imageError()
{
document.serverstatus.src = "offline.gif";
}
...
<img name="serverstatus" onerror="imageError()" src="http://111.111.111.111/online.gif" border="0">
Why, oh why can't we establish standards for something as useful as javascript? :(
Dark-Talon