[ snip ]
>> <head>
>> <title>My test page</title>
[quoted text clipped - 11 lines]
>> onClick="document.getElementById('C').className='two'">
>> </body>
> Thanks. My problem is this. I have a index.cfm in which
> I have all the <link rel="....") statements which define
> the various stylesheets.
No problem; you could use my second code example (with the CSS-
classes) and load the styles using
<link rel="stylesheet" href="profile.css" type="text/css">
> Then, I have the <script> tag for the styleswitcher
> javascript function. This index.cfm refers to modHeader.cfm
> in which I have the call to the javascript function based on
> an onClick() event. I think the javascript function is not
> being recognized, since the styles are not changing though
> everything seems alright.
It could be many things. I'm guessing at a typo, errorneous CSS/js
call, ...
Every page that uses the javascript and the CSS must load it
separately (so, both index.cfm and modHeader.cfm).
Could you post the (shortened) code that causes the problem ?
--
Bart