horse*chica
04-05-2004, 04:07 AM
I ran across this neat script that tells the visitor the current date here: http://wdt.silent-aurora.net/js03.php
I modified it slightly so the text would be the same size, and so it would say "Today:" instead of "Today's date is"...this is my code now for the date insert half:
<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="text/javascript">
<!-- hide from old browsers
document.write("<b>Today: " + dayName[now.getDay()] + ", " + monName[now.getMonth()] + " " + now.getDate() + "<\/b>")
//done hiding script --></SCRIPT></P>
Well, my problem is that it makes the whole thing (Today: and the date) be bold, when I only want the "Today:" part in bold, so it will fit in with the rest of my sidebar's looks. Is there any way to do this? Thanks :)
EDIT: Oh, and I also tried putting the <\/b> right after Today:, but that made the whole script not show up.
I modified it slightly so the text would be the same size, and so it would say "Today:" instead of "Today's date is"...this is my code now for the date insert half:
<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="text/javascript">
<!-- hide from old browsers
document.write("<b>Today: " + dayName[now.getDay()] + ", " + monName[now.getMonth()] + " " + now.getDate() + "<\/b>")
//done hiding script --></SCRIPT></P>
Well, my problem is that it makes the whole thing (Today: and the date) be bold, when I only want the "Today:" part in bold, so it will fit in with the rest of my sidebar's looks. Is there any way to do this? Thanks :)
EDIT: Oh, and I also tried putting the <\/b> right after Today:, but that made the whole script not show up.