A revolving earth (earthani.gif--64x64) Beaverland Net
Net Art
 
Japanese Version (japanv.gif--100x36)

Beaverland Net Art logo (netart2.gif--140x365)

Beaverland Net HTML Made Easy! logo (html02.gif--140x160)

Beaverland Net JavaScript Made Easy! logo (javascrx.gif--140x233)

Beaverland Unlisted Slang logo (slangs2.gif--140x260)

Beaverland Historica logo (histbanr.jpg--140x360)

Beaverland Mythology logo (mythbanr.jpg--140x255)

Beaverland Stries logo (stories.jpg--140x276)

Beaverland Webs & Internet Secrets logo (web100.jpg--140x250)

Beaverland Cleopatra Gallery logo (galleryt.gif--177x275)

Beaverland Ciold War Years logo (coldwrbn.jpg--140x320)


onstore.gif (140x93)

beavbook.gif (120x160)

beavcomp.gif (120x160)

beavmovi.gif (120x160)

beavgift.gif (120x160)

beavtrav.gif (120x160)

music.gif (50x50) Beaverland Music
 
How to Present
a GIF Animation
August 22, 2003
 

Move your mouse over her.
Then, click the picture.
To stop, move your mouse
out of the picture.

June Adams as a Jayne Mansfield lookalike (june091.gif--425x499)

 

The code is as follows:

<a href="javascript:void(document.myGal.src=
        '../eroshist/images/juneache.gif');"
  onMouseOver="document.myGal.src=
        '../eroshist/images/june092.gif'"
  onMouseOut="document.myGal.src=
        '../eroshist/images/june091.gif'">
<img border="0" name="myGal"
    src="../eroshist/images/june091.gif"
    alt="June Adams as a Jayne Mansfield lookalike"
    width="425" height="499"></a>

The above code uses two HTML tags—an anchor (<A HREF= ...> </A>) tag and an IMG tag. If you don’t know how to use an IMG tag, please visit this page: How to Use an IMG Tag.

 

When you move your mouse over the picture, . . .

When you move your mouse over the picture, an event handler (onMouseOver) will replace the current picture with the following image (june092.jpg):

June Adams as a ditsy blonde (june092.gif--425x499)

This is done by the following code:

  onMouseOver="document.myGal.src=
        '../eroshist/images/june092.gif'"

 

When you move your mouse out of the picture, . . .

When you move your mouse out of the picture, an event handler (onMouseOut) will replace the current picture with the following image (june091.jpg):

June Adams as a Jayne Mansfield lookalike (june091.gif--425x499)

This is done by the following code:

  onMouseOut="document.myGal.src=
        '../eroshist/images/june091.gif'"

The display area at the top of this page is coded as:

document.myGal.src

The document means this page. The myGal is the name given to the picture defined by the IMG tag. And the src stands for “source”.

Therefore, the above code will instruct your browser so that

when you move your mouse out of the picture, your browser will replace the display area defined by document.myGal.src with the picture stored originally in the memory (../eroshist/images/june091.gif) of the hard disk at the remote site.

 

When you click the picture, . . .

<a href="javascript:void(document.myGal.src=
        '../eroshist/images/juneache.gif');"

The href attribute of the anchor tag will instruct your browser to execute javascript void() method, which will evaluate its parameter or invoke the statement if it is an instruction.

In this case, your browser will simply replace the current picture with the GIF animation (juneache.gif).

For more information on the void() method, please visit this page: I am a chimp in love with you, but have a problem to fix with void(0).

If you want to know more about event handlers, please visit this page: How To Use an Event Handler

If you wonder what those double dots are, please visit this page: What the heck is this double-dot?

Unfortunately, the above presentation is slow because of the size of each picture. There is a way to get around. I will explain it in the following page:

How to Speed Up a Presentation

A new window will pop up.

 

How did you create a transparent GIF image in the first place?

I will explain it in the next page. Click the following link:

How to Create a Transparent GIF Image

 

Related Links





Rate article:
Excellent Good Neutral Poor Worst

Your Name:
Your Email Address:
Comments:


  Comments
 
How did you create the GIF animation above?
    - Terry

Please visit this page: Ditzy Blonde or How to Create a Transparent GIF animation.
    - Akira
 
 
Copyright Akira Kato
About this author:
  • Educated both in Canada and Japan
  • Traveled extensively in Europe, Far East, and North America
  • Worked as management consultant, computer systems analyst, college instructor and freelance writer.
Akira Kato


Wanna Thank Your Girlfriend,
Sister, or Mother
With a Touch of Difference?

A woman in a black leotard (208x355)   A woman in nice langerie (208x353)

She deserves the Best,
doesn’t she?
Find it out for yourself here!

A banner for surpriseyourwoman.com


Beaverland Forum
Featuring thought-provoking
columns and stories
inserted by FC2 system