Image Event Handling : Image Img « HTML « JavaScript DHTML

JavaScript DHTML
1. Ajax Layer
2. Data Type
3. Date Time
4. Development
5. Document
6. Dojo toolkit
7. Event
8. Event onMethod
9. Form Control
10. GUI Components
11. HTML
12. Javascript Collections
13. Javascript Objects
14. Javascript Properties
15. jQuery
16. Language Basics
17. Node Operation
18. Object Oriented
19. Page Components
20. Security
21. Style Layout
22. Table
23. Utilities
24. Window Browser
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorial
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
JavaScript DHTML » HTML » Image Img 
Image Event Handling
 

<HTML>
<HEAD>
<TITLE>Image Event Handling</TITLE>
<SCRIPT LANGUAGE="JavaScript"><!--
function imageLoaded() {
 document.bgColor="#FFFFFF"
 alert(document.images[0].src+" has been loaded.")
}
function imageAborted() {
 alert("imageAborted")
}
function imageError() {
 alert("Error loading image!")
}
//-->
</SCRIPT>
</HEAD>
<BODY>
<H1>Image Event Handling</H1>
<P>An image is loaded after this paragraph.</P>
<IMG SRC="http://www.java2s.com/style/logo.png"
 onLoad="imageLoaded()"
 onAbort="imageAborted()"
 onError="imageError()">
</BODY>
</HTML>

           
         
  
Related examples in the same category
1. Get the file name specified in the href or src property
2. Image dynsrc
3. Low resolution Image src
4. Image Long Description
5. Image width Example
6. Does image download completely
7. Alternative Information Example
8. Image align Example
9. Image 'src' Property
10. 'height' Example
11. 'readyState' Example
12. 'galleryImg' Example
13. Monitors the load process and the display of pictures
14. Image Animation
15. Image array
16. Replace image
17. An animating image
18. Mouse in image and out
19. Scrolling Image
20. Change the height of an image
21. Change image
22. Change image width
23. Count images in a document
24. Methods and Properties of the Image Object
25. Testing an Image's align Property
26. A Scripted Image Object and Rotating Images
27. Scripting image.complete
28. Changing Between Still and Motion Images
29. Simple Image Replacement
30. Image Error Finder
31. Image element
32. Image Roller Machine
33. Change image in mouse in and out event
34. Use array to store the image names
w__w___w.__ja___va___2_s___.__co__m_ | |Contact Us
Copyright 2003 - 08 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.