Dominicanvictor
Delta
Social Media
Usuário com poucas negociações! Use sempre o saldo do ForoBeta!
Tengo este código que resulta ser el anuncio invisible que se muestra sobre el video de YouTube. Al hacer click para reproducirlo se hace click en el anuncio y luego se reproduce el video, Como lo puedo colocar? Al hacer click me manda a otra pagina y no al anuncio
<script src="//code.jquery.com/jquery-latest.min.js" type="text/javascript">
<script src="//code.jquery.com/jquery-latest.min.js" type="text/javascript">
PHP:
<script type='text/javascript'>
// aca el link de la publicidad
var url = 'http://www.seriousdeals.net/Cemn2';
//<![CDATA[
$(document).ready(function() {
$('iframe').each(function() {
$('<div class="linkpub" onclick="window.open(\''+url+'\');$(this).remove() ">
</div>
').insertAfter($(this));
$('.linkpub').css({
display: 'block',
position: 'absolute',
background: 'transparent',
zIndex: '9999',
cursor: 'pointer',
width: $(this).attr('width'),
height: $(this).attr('height'),
marginTop: '-'+$(this).attr('height')+'px'
});
});
});
//]]>
</script>