Unicrown
02-17-2003, 08:58 PM
I'm planning my website (again....), and I wanted to have a different style for each day of the week!
'Simple!' I thought! So I entered the code... then it struck me. I was going to have so many different styles. Lemme list a few
WednesdayTitle, sundaybackgroung, mondaytext,tuesdayalttext, etc.
Why not just take 7 different .css stylesheets, each with the same name for the styles, so instead of having to use javascript to change EVERY single tag to a different style depending of the day of the week, I could just change the stylesheet used.
So I tried javascript.
<link rel = "stylesheet" href = "" type = "text/css" id = "dayofweek">
document.dayofweek.href = "sunday.css".
I tried that, the stylesheet didn't come up! It was just a plain boring page.
Is there anyway I can change the stylesheet or do I have to proceed with my first method!
'Simple!' I thought! So I entered the code... then it struck me. I was going to have so many different styles. Lemme list a few
WednesdayTitle, sundaybackgroung, mondaytext,tuesdayalttext, etc.
Why not just take 7 different .css stylesheets, each with the same name for the styles, so instead of having to use javascript to change EVERY single tag to a different style depending of the day of the week, I could just change the stylesheet used.
So I tried javascript.
<link rel = "stylesheet" href = "" type = "text/css" id = "dayofweek">
document.dayofweek.href = "sunday.css".
I tried that, the stylesheet didn't come up! It was just a plain boring page.
Is there anyway I can change the stylesheet or do I have to proceed with my first method!