Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> JavaScript >> Snippet

Image of the day-of-the-week


< html >
< head >
</ head >
< body >
Create gifs name monday.gif to sunday.gif
< script >
today = new Date ();
day = today.getDay();
arday = new Array ( "sunday.gif" , "monday.gif" , "tuesday.gif" , "wednesday.gif" , "thursday.gif" , "friday.gif" , "saturday.gif" );
document.write( "<img src='" + arday[day] + "'>" );
</ script >
</ center >
</ BODY >
</ html >