- This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- The forum ‘JavaScript’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › JavaScript › JQuery link hovering fading colour change
Hiya.
I’ve got basically no experience with JQuery and I’m wondering how I could get, on hover, the colour of a link to fade to another.
Any recommended articles or code samples would be great, thanks all :3
The cool thing (for me at least) about Jquery is how similar to CSS it is (esp the use of selectors).
Here’s the example code from the above link:
This part: $(‘.fade’). selects all elemets with the class="fade" using the basic CSS class selector.
If you change this to: $(‘.fade a’). it will select all <a> inside an element #listID (again, just like CSS). Here’s the code:
I haven’t tested this, but I’m 90% sure it works. ;) I’m still on the Jquery learning curve.
Hope that helps.