1.

Solve : Change background colour with hovering mouse?

Answer»

Sorry if the title makes no sense but I am not sure how to put this in few words.

Basically what I am trying to find out is the HTML code to allow the background COLOUR of a box change (or highlight) when the mouse is moved over it. Similar to what happens on some forums when you hover over a category.

JKHTML links will usually change colour/style when you hover over them.  Here are a couple of useful links/tutorials concerning using CSS to do this: >1< >2<.

Note that the CSS :hover psuedoclass is not SUPPORTED by all browsers for all elements.  Styling hyperlinks usually works, but styling other HTML elements may not.

The other way would be using JAVASCRIPT and the "onMouseOver"/"onMouseOut" events.  A bit more complicated than the CSS method, but that's how it used to be done before CSS really took off, and is still often used for rollover image effects (buttons that change when you hover over them, etc).Thanks, I am using frontpage for the most part and I am not sure I can use CSS in the HTML coding.You should be able to...  But in any case if you HANG around here long enough you'll quickly pick up how much I hate FrontPage.    I recommend the free program NVu, which you'll find if you follow the link in my signature to the software FAQ.Why is this post a sticky? Quote

Thanks, I am using frontpage for the most part and I am not sure I can use CSS in the HTML coding.
You can use CSS with FrontPage.  Open FrontPage Help, select the Index tab, and enter CSS in the keywords box.
Quote
You should be able to...  But in any case if you hang around here long enough you'll quickly pick up how much I hate FrontPage.    I recommend the free program NVu, which you'll find if you follow the link in my signature to the software FAQ.


Admittedly, this is all new to me, I am just learning but seeing what can be done I want to try everything. Just not all in one go.

Thanks for the advice Rob, I haven't had the chance to get into Frontpage fully so I haven't found the BAD parts. Just out of curiosity, where do I find NVu amongst the list from that link.Bring up the software FAQ, then press Ctrl+F (find) and type NVu.  Your browser will find it on the page for you.


Discussion

No Comment Found