Skip to content

Instantly share code, notes, and snippets.

@joekarma
Created July 22, 2008 09:09
Show Gist options
  • Save joekarma/750 to your computer and use it in GitHub Desktop.
Save joekarma/750 to your computer and use it in GitHub Desktop.
onload = function() { document.getElementById("LID1").innerHTML = "R<br />I<br />C<br />K<br /><br /><br />R<br />O<br />L<br />L<br />E<br />D"; document.getElementById("LID1").parentNode.parentNode.style.backgroundColor = "#ECECEC"; document.getElementB
onload = function() { document.getElementById("LID1").innerHTML = "R<br />I<br />C<br />K<br /><br /><br />R<br />O<br />L<br />L<br />E<br />D"; document.getElementById("LID1").parentNode.parentNode.style.backgroundColor = "#ECECEC"; var line = document.getElementById("LC1"); while (line.childNodes.length) { line.removeChild(line.firstChild); } var iFrameContainer = document.createElement("div"); iFrameContainer.style.width = "478px"; iFrameContainer.style.height = "358px"; iFrameContainer.style.overflow = "hidden"; iFrameContainer.style.position = "relative"; iFrameContainer.style.border = "0"; var rickRoll = document.createElement("iframe"); rickRoll.src = "http://www.youtube.com/watch?v=eBGIQ7ZuuiU"; rickRoll.style.width = "500px"; rickRoll.style.height = "600px"; rickRoll.setAttribute("width", "500"); rickRoll.setAttribute("height", "600"); rickRoll.style.position = "absolute"; rickRoll.style.border = "0"; rickRoll.style.top = "-162px"; iFrameContainer.appendChild(rickRoll); line.appendChild(iFrameContainer); }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment