css & javascript?
- Started
- Last post
- 3 Responses
- waks
i just created this:
but i actually want that blue headers to have a random color, that is including the little blue squares in that calendar-thing.
well, not entirely random, but just another (selected by me) color every time you refresh the page.
is there a way to integrate javascript in css or something? does anyone know any other way to do this?
- gelund0
Jeffrey Zeldman has a user-selectable style switcher at:
http://www.zeldman.com/
- gabriel_pc0
The link comes up as broken but changing the color of the headers shouldn't be that difficult. You can set just about any property of it through DOM and you can use JavaScript to generate the random number. If I were doing it I'd make an array of the colors that I want it to be, then select a random number with JavaScript and set the color of the header to the corresponding color value in the array. Email me if that doesn't make sense.
- waks0
wow that's A LOT of text.
i used some very simple javascript, wich is still not perfect because it works for only one page, not for the entire website.
but thanks!