We are working on a website where we have a Flash element that shows a couple of movies, and some HTML elements of video thumbs, of some other videos.
When viewing the next video, we want to highlight the thumb below, with a function that the Flash can call.
I’m thinking something like this: (This obviously doesn’t work)
function highlightMovie(4) {
$(".thumb-wrapper div").removeClass("active");
//The "4" in the below line, comes from the "4" in the Function
$(".thumb-wrapper div:nth-child(4)").addClass("active");
}
How do I do this? How can I call a function that doesn’t have a predefined selector, but can select a nth-child??
Thank you in advance.
not sure if that is this what you’re asking?
what does not work?