JSFiddle - React, Tailwind, and code Playground
by jasper
HTML
<div class="box">
<img src="http://www.prelovac.com/vladimir/wp-content/uploads/2008/03/example.jpg" />
<img class="logo" src="http://www.prelovac.com/vladimir/wp-content/uploads/2008/03/example.jpg" />
<img src="http://www.prelovac.com/vladimir/wp-content/uploads/2008/03/example.jpg" />
<img src="http://www.prelovac.com/vladimir/wp-content/uploads/2008/03/example.jpg" />
</div>
CSS
img {
height : 50px;
width : 50px;
}
JavaScript
var b = $('.box'), //Box
urls = [
'http://player.vimeo.com/video/34969501',
'http://player.vimeo.com/video/35036115',
'http://player.vimeo.com/video/35033574'
],
index = 0;
b.find('img').wrap(function () {
if ($(this).hasClass('logo')) { return '' } else { return '<a href="' + urls[(index++)] + '" />' }
});