script for "day of the week"?

halifax123

Power Member
Joined
Aug 5, 2008
Messages
594
Reaction score
66
hi roomies :)

I'm trying to find a script that when someone visits my site it say something
like hope your friday is good ...

trying to find a script that only has the specifc name
monday tuesday ...etc,.,.. I don't want the full date

only the "name" of the day for the week, no month, nothing numeric

anyone know of such a script?


thank you so much!

your roomie hali~!:)
 
HTML:
<script type="text/javascript">

var mydate=new Date()
var day=mydate.getDay()
var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
document.write("<strong>"+dayarray[day]+"</strong>")

</script>

Hope that helps,
Lynn.
 
Basically that outputs just the day in <strong></strong> Tags - make sure you put it in between your statement or phrase - and it will work nicely.
 
oh thank you so much!!!!

thank you thank you thank you!!!!

about to head to bed but will test them in the am
I really appreciate it !!! :30:

hali ~! !!! :)~~
 
lynhs

that worked fantastic !!
thank you thank thank you!!!

big smiles!!!!

hali~!:)
 
Back
Top