I'm using jquery to avoid cross-browser problems (I hate you IE). Here's the code I'm currently using.
var playControls = $(that.element).find('.controls')[0];
$(playControls).find('img[title="Play"]')
.attr({ src: 'images/icons/stopNew.png', title: 'Stop' })
.unbind('click')
.unbind('mouseover')
.unbind('mouseout')
.click(that.stopVideo)
.mouseover(function(){ $(this).attr({ src: 'images/icons/stopNewOver.png' }) })
.mouseout(function(){ $(this).attr({ src: 'images/icons/stopNew.png' }) });
I'm finding the controls within that.element (which is just an element reference stored in my class). Then I'm using another jquery selector to find an image element with the name play and doing some manipulation on it. Is there some way to string together those two selectors? I have to start from within that.element as there may be multiple elements with a class of .controls.

New Topic/Question
Reply



MultiQuote


|