Link transfers attribute content to player
<a href="#" data-url="http://stackoverflow.com">
And the player is already displayed as
$('.jp-image').html('<a href="'+$(this).data('url')+'">' + '<img src="'+$(this).data('image')+'" alt=""></a>');
Also the link with an excess slash in the beginning of the address turns out
<a href="/http://stackoverflow.com">
How to remove this slash? The address is incorrect.
http://stackoverflow.com/http://stackoverflow.com
<div class="jp-image"></div>
- steep