www.pickatutorial.com Computer Tutorials
Top eBooks: C/C++ | C# | Android | Mathematics | Database | Cloud | Graphics | Networking | Oracle | Hardware | AI
Top Tutorials: C/C++ | C#.NET | PHP MySQL | Java | Java Script | jQuery | HTML | xHTML | HTML5 | VB Script| CSS
Lessons Simple Image Animation Bookmark and Share
Tutorial Home
Lesson 1
Lesson 2
Lesson 3
Lesson 4
Lesson 5
Lesson 6
Lesson 7
Lesson 8
Lesson 9
Lesson 10
Lesson 11
Lesson 12
Lesson 13
Lesson 14
Lesson 15
Lesson 16
Lesson 17
Lesson 18
Lesson 19
Lesson 20
Lesson 21
Lesson 22
Lesson 23
Lesson 24
Lesson 25
Lesson 26
Lesson 27
Lesson 28
Lesson 29
Lesson 30
Lesson 31
Lesson 32
Lesson 33
Lesson 34
Lesson 35
Lesson 36
Image marquee works in the same way as the text marquee does. The same marquee tag is used to scroll the image. However we replace the text with the 'img' tag. Let's see how it works:

Start Tag: <marquee>
End Tag: </marquee>

Simple Image scrolling:

<marquee><img src="logo.jpg"></marquee>
The above markup results in the following output:



Scrolling Image in both directions (alternatively):

<marquee behavior="alternate"><img src="logo.jpg"></marquee>
The above markup results in the following output:

The value of behavior attribute i.e. alternate causes the image to scroll in both directions, alternatively.

Changing the background color of the MARQUEE:

<marquee bgcolor="pink"><img src="logo.jpg"></marquee>
The above markup results in the following output:



The value of the bgcolor attribute determines the background color of the MARQUEE. A complete color list can be found here.
Next >>> Lesson No. 29: Advanced Image Animation







Home - Advertise - Contact - Disclaimer - About Us
© Since 2006 pickatutorial.com -- All Rights Reserved.