1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <html><head><style>div {
width: 2000px;
height: 2000px;
}</style></head><body><input id="link" type="button" value="FullScreen" onclick="javascript:Bug()"><br /><input /><div></div><script>
function Bug() {
var img = document.createElement("img")
img.src="BLANK.PNG"
img.style.height="200%";
img.style.width="200%";
img.style.position=(window.ActiveXObject)?"absolute":"fixed";
img.style.top="0px";
img.style.left="0px";
document.body.appendChild(img)
img.timer=setInterval(function() {
if (window.ActiveXObject) {
document.body.scrollTop=0
document.body.scrollLeft=0
}
}, 1);
// Après 10 secondes
setTimeout(function() {
clearInterval(img.timer);
img.parentNode.removeChild(img);
img=null;
}, 10000)
}
</script></body></html> |