Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> JavaScript >> Snippet

Wait until page loads to animate GIF


< html >
< head >
< script >
var preload = new Image();
// Change this to the web address of your animated GIF image
preload.src = "profits.gif" ;
function doGIF() {
document[ 'button' ].src = preload.src;
}
</ script >
</ head >
< body >
< center >< BR >< BR >< BR >

<!-- Set the width and height to the dimensions of your GIF -->
<!-- And be sure to save the blank.gif image to your server !   -->

< img name = "button" src = "blank.gif" width = 130 height = 79 >

</ center >
</ BODY >
</ html >