Best Download Sites Login
Site Login

Image Fails To Load

Description
Notifies the user is an image on your site fails to load properly or if it is aborted when loading. Definitely an excellent example of the onAbort and onError image event handlers in use. Please note that in the script example we intentionally included a broken image that fails to load properly to display the script in use....View A Script Demo


Do you find it confusing setting up these script?
Java Scripts Magic can do all the hard work for you all At The Touch Of A Button.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="Generator" CONTENT="TextPad 4.4">
<LINK href="general.css" rel="stylesheet" type="text/css">
<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
function imageError(theImage) {
msg = 'Error: The ' + theImage.name + ' image did not load properly.\n\n' +
'The image failed to load from URL:\n' + theImage.src + '\n\nPlease hit ' +
'click reload in your browser to try again.';
alert(msg);
}
//  End -->
</script>

</HEAD>

<BODY Background=../graphics/grayback.jpg>
<center><BR>
Please note that in the script example we intentionally included a 'broken image' that fails to load properly to display the script in use.


 <BR><BR>
<img name="logo" src="missing-logo.jpg" border=2 onError="imageError(this)" onAbort="imageError(this)"><br>
(We caused this image not to load on purpose!)

</center>
</BODY>
</HTML>
 

Business Proposal If you have a Business Proposal that you think may be of interest to us here at Best Download Sites please contact us to discuss the matter in further detail