I'm writing a website for a client, for which the most important aspect is a niftalicious menu bar at the top.
This menu bar is all set to be pretty standard, but effective nontheless, with different links set in individual cells in a table. The goal is to make it so that when you hover over a link, the background of the cell changes color.
So the question is this: is it better to A) Use the CSS and :hover to change the background, B) Use javascript and the onMouseover function, or C) Give up because it's impossible?
Although I wouldn't say no to some nice code and a thoughfully written tutorial, all I really need is to know whether it's better to use CSS or Javascript, keeping in mind ease, reliability, and cross-platform compatibility. THANKS!
Oh, and as an added incentive, there might be some FRIH$ to be made...
This menu bar is all set to be pretty standard, but effective nontheless, with different links set in individual cells in a table. The goal is to make it so that when you hover over a link, the background of the cell changes color.
So the question is this: is it better to A) Use the CSS and :hover to change the background, B) Use javascript and the onMouseover function, or C) Give up because it's impossible?
Although I wouldn't say no to some nice code and a thoughfully written tutorial, all I really need is to know whether it's better to use CSS or Javascript, keeping in mind ease, reliability, and cross-platform compatibility. THANKS!
Oh, and as an added incentive, there might be some FRIH$ to be made...
