|
what is IS? if you mean the style that would be just simple 10 px arial black font. I use it else where on the some document, so it would match with rest of the document.
I tried to select the words, but there is just simiply nothing there, so it shouldn't be the font color issue.
The reason why I want this in CSS is because it won't change the font size when viewers change the text size in the browser window.
Anyone knows how to do make this work?
The actual working script is this
-------------------------------------
<SCRIPT language=JavaScript>
<!-- var today = new Date() var month = today.getMonth()+1 var year = today.getYear() var day = today.getDate() if(day<10) day = "0" + day if(month<10) month= "0" + month if(year<1000) year+=1900
var TimezoneOffset = -5 var localTime = new Date() var ms = localTime.getTime() + (localTime.getTimezoneOffset() * 60000) + TimezoneOffset * 3600000 var time = new Date(ms) var hour = time.getHours() var minute = time.getMinutes() var second = time.getSeconds() var curTime = "" + ((hour > 12) ? hour - 12 : hour) if(hour==0) curTime = "12" curTime += ((minute < 10) ? ":0" : ":") + minute curTime += (hour >= 12) ? "pm" : "am" document.write("<FONT FACE='Arial, Helvetica, sans-serif' SIZE='1' COLOR='black'>") document.write("Currently - " + year + " / " + month + " / " + day + " " + " " + " " + curTime + " US Central Time") document.write("</FONT>") //--> </SCRIPT>
------------------------------
And, this is the inline style that I did that doesn't work. If the inline style works, it shouldn't be too hard to do the external.
-----------------------------------------
<SCRIPT language=JavaScript> <!-- var today = new Date() var month = today.getMonth()+1 var year = today.getYear() var day = today.getDate() if(day<10) day = "0" + day if(month<10) month= "0" + month if(year<1000) year+=1900
var TimezoneOffset = -5 var localTime = new Date() var ms = localTime.getTime() + (localTime.getTimezoneOffset() * 60000) + TimezoneOffset * 3600000 var time = new Date(ms) var hour = time.getHours() var minute = time.getMinutes() var second = time.getSeconds() var curTime = "" + ((hour > 12) ? hour - 12 : hour) if(hour==0) curTime = "12" curTime += ((minute < 10) ? ":0" : ":") + minute curTime += (hour >= 12) ? "pm" : "am" document.write("<p style="font-family: arial; font-size: 20px; color: black">") document.write("Currently - " + year + " / " + month + " / " + day + " " + " " + " " + curTime + " US Central Time") document.write("</p>") //--> </script>
--------------------------------------
|