View Single Post
Old 03-07-2005, 08:28 PM   #1 (permalink)
mio
Registered User
 
Join Date: Mar 2005
Posts: 2
mio is on a distinguished road
how do I add a stylesheet to this script?

Okay I found this script to work with font type and color...

Now My question is how can I add a stylesheet to the code and where should I put it..

the name of my stylesheet name is stylesheet.css and is in the same directory that this script is in.

I don't want people to be able to change the text size on the view drop down menu.

Thanks for your help!

__________________________________________________ ___________________________

<script>

var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thu rsday","Friday","Saturday")
var montharray=new Array("January","February","March","April","May"," June","July","August","September","October","Novem ber","December")
document.write("<small><font size='3' font color='CCCCCC' face='Arial'><strong><b>///Welcome to The Office: " +dayarray[day]+", "+montharray[month]+" "+daym+", "+year+"</b></font></small>")

</script>
mio is offline   Reply With Quote