dynamic animation script
 

SimplytheBest
Scripts

ASP scripts
PERL scripts
PHP scripts
JavaScripts & Ajax
Snippets
Online scripts

Ajax, DHTML
& JavaScripts

Animation
Background
Bookmarks
Buttons
Calculators
Cookies
Data handling
E-mail
Enhancements
Forms
Image rotation
Menus
Messages
Miscellaneous
Music
Password protection
Redirection
Scrollers
Tables
Time & date
Windows

Publishers
Add script
Account login
Publisher list



 

Home > Scripts > DHTML scripts & JavaScripts > Animation > Dynamic animation script

 

Dynamic animation script

AUTHOR: Unknown
TYPE: Freeware
BROWSERS: IE 4+, IE 5+, IE 6+

This script can be used to fly text or images onto the browser screen from different directions.


EXAMPLE

This header will fly in as a spiral.


1)
Insert the following script between the </HEAD> and <BODY> tags in your HTML.

then copy (CTRL-C) & paste (CTRL-V)

2) Insert the onload event handler inside the <BODY> tag as follows:

<body onload="mydynAnimation()", followed by other tags such as bgcolor, etc..

copy (CTRL-C) & paste (CTRL-V)

3) Include the following tag inside a <span>, <p> or other element tag:

<span><a href="page1.htm"><font size="2" face="Verdana" mydynamicanimation="flyRight" 
style="position: relative !important; left: 10000 !important"><img name="whatever" src="images/whatever.gif" 
border="0" width="146"
height="23"></font></a></span>

This example will fly the image in as specified in the action "flyRight". You can use the same statement

copy (CTRL-C) & paste (CTRL-V)

with a text, an image or any other defined element. This is the piece you must insert into a divider tag such as <span>, <div> or <p>. Other actions can be deducted from reading through the script itself, such as TopdownLeft, TopRight, and so forth.

You can use more than one items to animate from different directions. Be reminded though, that whatever you animate will be the last item loaded by the browser.

GOOD LUCK!


[BACK] [TOP]

 


Copyright © 1997-2009 SimplytheBest Inc. Terms of Use and Legal Disclaimer.
All copyrights are acknowledged. All rights reserved.