Animated Bars, selectable colors
Create animated bars fading through a set of selectable colors. Add as many horizontal or vertical bars as you like. Easy configuration of colors, width, length, speed and type of gradient-effect. Two different gradient-effects for IE5x. Standard effect for NS6x/7x and Opera7x. Brought to you by
www.fabulant.com
Animated Bars, random colors
Click here
if you prefer to apply random colors.
Configuration:
Step 1:
Open your web page. Paste the following code between the <head> and </head> tags of your web page:
Step 2:
Open your web
page. Go to the top of the script-code and configure the fade-effect and speed.
Step 3:
Open your web page. Paste the code inside the yellow box where you wish to add an animated bar (add as many as you like). Then set the 4 attributes inside the brackets according to the colorized explanations:
<script>addbar(
500
,
3
,"
horizontal
","
yes
")</script>
red attribute:
the width of the bar (pixels).
blue attribute:
the height of the bar (pixels).
green attribute:
the type of gradient effect for IE 5x/6x. Acceptable values are "horizontal" or "vertical" or "none".
brown attribute:
color switcher. Acceptable values are "yes" or "no".
Step 4:
Save the small rectangle on the left as "empty.gif".
Put it into the same folder as the web page
that contains your animated bar(s).
Like this code snippet? Why not share it with others by copying this page URL: