Skip to content

Instantly share code, notes, and snippets.

@findzen
Created November 5, 2015 02:17
Show Gist options
  • Save findzen/77f99e38f6f88cd58f65 to your computer and use it in GitHub Desktop.
Save findzen/77f99e38f6f88cd58f65 to your computer and use it in GitHub Desktop.
Stop. Hammer time.
;(function(window, document, undefined) {
'use strict';
var img = document.createElement('img');
var marquee = document.createElement('marquee');
img.src = 'http://dhtmlconf.com/img/mchammer.gif';
marquee.appendChild(img);
marquee.style.position = 'absolute';
marquee.style.top = '0';
marquee.style.left = '0';
marquee.style.width = window.width;
marquee.style.zIndex = '9999999999999999';
document.body.appendChild(marquee);
})(window, document);
!function(e,t,i){"use strict";var l=t.createElement("img"),d=t.createElement("marquee");l.src="http://dhtmlconf.com/img/mchammer.gif",d.appendChild(l),d.style.position="absolute",d.style.top="0",d.style.left="0",d.style.width=e.width,d.style.zIndex="9999999999999999",t.body.appendChild(d)}(window,document);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment