View Full Version : Online/Offline Message?

09-22-2002, 11:32 AM
Hello, i was wondering whether there is any code available to display an 'Offline' image when one of my mirrors for my site is offline and an 'online' image when they are online.
Here (www.gtamoddingcity.web1000.com) is the page so far, as you can see the 'online' image is stored on that server, so when its offline the image doesnt show.

I think this isnt very professional though

Any help would be great, cheers

09-22-2002, 12:05 PM
What you're asking require server side interaction (to connect to the server), which JavaScript cannot do. I'm transfering this thread to the appropriate forum.

09-25-2002, 09:36 PM
you could try this:

<img src="file on the other server.jpg" onerror="this.src='offline.gif';">...

might be helpful:thumbsup: