hey everybody!
i'm about to put together a "mini cms" for my site (using flat text/html files - no time to learn mysql 🙂 ).
i already have a pretty good idea on how to accomplish this but one point has me stumped a bit - i would very much like to create the site navigation only once and load the content from the text file dynamically into a div in my template page.
each navigation item is supposed to have three states:
1 - normal (gif w/black text)
2 - mouseover (gif w/green text)
3 - active (gif w/grey text)
the first two are plain rollovers and are easily accomplished with a simple javascript - the third one however, is supposed to become grey after a user has clicked the link and the content loads - as an indicator that the user is in that particular content area. also, i want that link to become inactive (= not clickable).
i'm a bit at a loss here - is this something i should do in php or in javascript?
any tips and/or links on how to do this would be very much appreciated! 🙂
thanks a bunch,
kubik