I just got set a research thing in class, I was wondering how you set the day of the week in HTML so it changes automatically to the day of the week.
Any Help Will Be Great
Thanks
Dboy ^^
Edited by dboy, 07 October 2008 - 07:43 AM.
Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!
Edited by dboy, 07 October 2008 - 07:43 AM.
Edited by lem.rar, 07 October 2008 - 09:05 AM.
function dayOfWeekImage() { var dow = new Array('sunday','monday','tuesday','wednesday','thursday','friday','saturday'); var now = new Date; var dayNow = now.getDay(); var img = dow[dayNow]; document.write('<img src="graphics\/'+img+'.gif" width="200" height="80" alt="'+img+'\'s image" title="'+img+'\'s image">'); }
<script type="text/javascript" src="Js_file_name.js"></script>
<script type="text/javascript">dayOfWeekImage();</script>
0 members, 0 guests, 0 anonymous users
Community Forum Software by IP.Board
Licensed to: Geeks to Go, Inc.