Image Animation : Image Img « HTML « JavaScript DHTML

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


<html>
<head>
<script language="JavaScript">
<!--
 var alternate = 0;
 var timerId;
 var images = new Array("yb.gif""rb.gif");        // Image URLs 
 function startAnimation() {
    alternate = (alternate == 00;           // Alternate images
    document.images[0].src = images[alternate];     // Update image
    timerId = setTimeout("startAnimation()"1000)// 1 second update
 }
//-->
</script>
</head>
<body>
<img border=hspace=width=10 src="http://www.java2s.com/style/logo.png">Hover over 
<a href="#" onMouseOver="startAnimation()" onMouseOut="clearTimeout(timerId)">
this</a> link to start the animation.<p>
</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 array
15. Replace image
16. An animating image
17. Mouse in image and out
18. Scrolling Image
19. Change the height of an image
20. Change image
21. Change image width
22. Count images in a document
23. Image Event Handling
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
w__w__w__._jav__a__2___s.__c___om_ | Contact Us
Copyright 2003 - 08 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.