944,118 Members | Top Members by Rank

Ad:
Jul 10th, 2007
0

Yet another Swap Image thread - with a twist

Expand Post »
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.
Similar Threads
Reputation Points: 178
Solved Threads: 15
Nearly a Posting Virtuoso
roryt is offline Offline
1,282 posts
since Oct 2005
Jul 11th, 2007
0

Re: Yet another Swap Image thread - with a twist

You can use the 'className' property of an element to change the class name on the fly.
Super Moderator
Featured Poster
Reputation Points: 3241
Solved Threads: 719
Failure as a human
~s.o.s~ is offline Offline
8,873 posts
since Jun 2006
Jul 11th, 2007
0

Re: Yet another Swap Image thread - with a twist

~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.
Reputation Points: 178
Solved Threads: 15
Nearly a Posting Virtuoso
roryt is offline Offline
1,282 posts
since Oct 2005
Jul 11th, 2007
0

Re: Yet another Swap Image thread - with a twist

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.
Super Moderator
Featured Poster
Reputation Points: 3241
Solved Threads: 719
Failure as a human
~s.o.s~ is offline Offline
8,873 posts
since Jun 2006
Jul 11th, 2007
0

Re: Yet another Swap Image thread - with a twist

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.
Reputation Points: 178
Solved Threads: 15
Nearly a Posting Virtuoso
roryt is offline Offline
1,282 posts
since Oct 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline: Default Values of Text Field
Next Thread in JavaScript / DHTML / AJAX Forum Timeline: External js + embedded js





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC