Eru auglýsingastofur ekki með einhver takmörk? Eða vefirnir sem birta þetta, er þeim alveg sama um að auglýsingar böggi gesti í drasl þannig að þeir loki glugganum um leið?
http://auglysingar.pipar.is/html5/ellin ... index.html
Kóði: Velja allt
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Ellingsen</title>
<style type="text/css">
<!--
body {
background-color: #ffffff;
margin: 0;
padding: 0;
}
.container {
position: relative;
width: 310;
margin: 0 auto; /* the auto value on the sides, coupled with the width, centers the layout */
height: 400;
border: 0;
}
.play_controls {
position: absolute;
margin: 0 auto;
left: 0px;
top: 0px;
z-index: 2;
}
-->
</style></head>
<body>
<div class="container">
<div class="play_controls" id="playbutton" onclick=""><a href="http://www.ellingsen.is/verslun/vorur/flokkur/6821?utm_source=dv.is-B2Forsida-veidi&utm_medium=html&utm_term=310*400Veidi&utm_content=16.-20.des&utm_campaign=dv.is-Ellingsen-Veidivorur" target="_blank"><img src="myndir/blank.gif" type="button" width="310" height="400" onclick=""></a></div>
<video autoplay="" width="310" height="400px" id="theVideo" loop>
<source src="ellingsen_310x400_veidivorur.mp4" type="video/mp4">
<source src="ellingsen_310x400_veidivorur.ogv" type="video/ogg">
Your browser does not support HTML5 video.
</video>
</div>
<script async="" src="//www.google-analytics.com/analytics.js"></script><script>
myVid = document.getElementById("theVideo");
myVid.autoplay=true;
myVid.loop=true;
// Event listener for the start video button (for iPad)
playbutton.addEventListener('click', function() {
myVid.play();
});
// Event listener for the play event
myVid.addEventListener('play', function() {
if (myVid.play) {
playbutton.innerHTML = "<a href='http://www.ellingsen.is/verslun/vorur/flokkur/6821?utm_source=dv.is-B2Forsida-veidi&utm_medium=html&utm_term=310*400Veidi&utm_content=16.-20.des&utm_campaign=dv.is-Ellingsen-Veidivorur' target='_blank'><img src='myndir/blank.gif' type='button' width='310' height='400' onClick=''></a>";
}
});
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-45752609-1', 'pipar.is');
ga('send', 'pageview');
</script>
</body></html>