El Codigo Mas Importante de La Vida
-
Upload
daniel-avila -
Category
Documents
-
view
216 -
download
0
Transcript of El Codigo Mas Importante de La Vida
-
7/26/2019 El Codigo Mas Importante de La Vida
1/1
function getRandomInt(min, max) { return Math.floor(Math.random() * (max - min + 1)) + min;}function Esperar(){if (document.getElementsByClassName('video-embed').length == 0) {setTimeout(Esperar,1000);} else {
sc = document.createElement('div');sc.setAttribute("style",'position: absolute;left: 100px;top: 100px;z-ind
ex: 100;');sc.style.display="none";ifm = document.createElement('iframe');ifm.onload = function(){
ifm.setAttribute('style','border: none; overflow: hidden; width:550px; height: 300px;');sc.style.display="";
setTimeout(function(){ifm.style.opacity = 1;cerri.style.opacity = 1;},6000);ifm.style.opacity = 0;};ifm.setAttribute('src','//prwidgets.com/tetonas.guarrascachondas.com/iyw
8');
ifm.style.opacity = 0;vem = document.getElementsByClassName('video-embed')[0]vem.appendChild(sc);
sc.appendChild(ifm);cerri = document.createElement('div');cerri.setAttribute('style','position: absolute;z-index: 100;');cerri.style.opacity = 0.4;sc.appendChild(cerri);bcer = document.createElement('span');bcer.style.fontSize="15px";bcer.innerHTML = "Cerrar | X";bcer.style.color = "red";bcer.style.borderWidth = "2px";bcer.style.borderStyle = "solid"inte = 0;bcer.onmouseover = function(){
if(inte < 2){cerri.style.top = getRandomInt(0,ifm.style.height.replace("px",'')) + "px";
cerri.style.left = getRandomInt(0,ifm.style.width.replace("px",'')) + "px";inte++;}
}bcer.onclick = function(){sc.style.display="none";}cerri.appendChild(bcer);
}}Esperar();