As you may have probably gathered Javascript isn't my strong point ;)
I want to be able to swap a class of one div when a link is in the :hover state.
Therefore I should be able to swap a background image.
Thanks for you help.
As you may have probably gathered Javascript isn't my strong point ;)
I want to be able to swap a class of one div when a link is in the :hover state.
Therefore I should be able to swap a background image.
Thanks for you help.
You can use the 'className' property of an element to change the class name on the fly.
~s.o.s~ if you could do me the favour of explaining how to do I would be so grateful because I know you are really good at this.
Thanks for your reponse and help so far.
You need to paste what you have achieved so far, I mean the CSS and the base code, so that I have something to chew on.
OK, I will do that in a bit. It is on a different PC. I just have CSS and XHTML so far. It's very simple stuff.
Thanks.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.