I hope one of you jQuery genius’ can help me out on this. I’m trying to replicate the BBC style news items on their homepage. When you hover over a story title the accompanying image changes on the left hand side. I’ve created a test page using jQuery to run a function on hover that changes the background image of a div class.
It works when there is only one function and one command but as soon as you insert a second (or third) it won’t do anything! Ideally I’d like to tidy this up a bit by passing a variable to the function which defines the URL of the image but I wanted to get it working first!!
This is the code for a single function and command (this one works):