Building an array from text selections
I have several <img> lines in my markup that contain an onmouseover attribute, as shown below:
<img id="flowersPic" class="queue" class="queue" src="media/flowers.jpg" onmouseover="playVideo('flowers.flv'); "/>
.
.
<img id="animalsPic" class="queue" src="media/animals.jpg" onmouseover="playVideo('animals.flv'); "/>
.
.
<img id="waterPic" class="queue" src="media/water.jpg" onmouseover="playVideo('water.flv'); "/>
.
.
</body>
I want to use jQuery to build a standard JavaScript array of just the video names in the onmouseover attribute. So for the markup above the array would be the strings
flowers.flv
animals.flv
water.flv
I expect the jQuery will be something like
v=$(img.queue).??????.get();
but I'm really not sure what should go in the ?????? area.
Thanks for any help.