Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>There are maybe ways to do this I would probably just use a div which holds an img tag and hides it or use a background-img and change it to nothing.</p> <p>i.e.</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;title&gt; a page &lt;/title&gt; &lt;script type="text/javascript"&gt; var container,img; function setup(){ img = document.getElementById('img1'); container = document.getElementById('container'); container.onclick = function(){ img.style.display = 'none'; container.innerHTML = "HERE IS SOME OTHER CODE I 'INJECTED'\n\n &lt;IMG src='http://26.media.tumblr.com/tumblr_lk0hdcDvTa1qjoblyo1_500.jpg'&gt;\n HAHA ANOTHER PUG!" + "Bacon ipsum dolor sit amet salami spare ribs jerky tenderloin pastrami sirloin andouille ham hock. Corned beef tenderloin hamburger, pig sausage chicken andouille." + "Ham hock tenderloin tri-tip brisket flank strip steak hamburger bacon pork belly shank. Rump ball tip tail, filet mignon pancetta strip steak hamburger short ribs shankle" + "bresaola pork belly venison pork loin jowl. Ham hock kielbasa frankfurter, pancetta tenderloin shankle tail leberkas venison. Spare ribs brisket pastrami chicken bacon." + "Tongue tenderloin ball tip capicola. T-bone bacon venison, fatback leberkas ball tip andouille sausage pastrami tail pork chop pig. Ground round chuck t-bone," + " tenderloin pork belly shoulder sirloin ball tip pork chop frankfurter ham. Meatloaf ribeye jowl boudin. Shoulder tri-tip andouille filet mignon capicola." + " Pancetta rump pork chop venison sausage. Tenderloin t-bone boudin, swine pastrami ribeye fatback brisket sausage venison spare ribs short loin leberkas strip steak." + "Fatback pork chop jerky short ribs andouille bacon. Meatloaf frankfurter turducken, chuck capicola hamburger jowl sausage drumstick flank tenderloin venison shoulder" + " short loin ball tip. Bacon prosciutto sirloin t-bone boudin meatloaf. Pork chop swine tail shoulder short ribs pork belly shankle pork loin filet mignon short" + " loin sausage pastrami."; } } &lt;/script&gt; &lt;style type="text/css"&gt; #container{ width: 400px; background-color: rgb(126,38,36); } &lt;/style&gt; &lt;/head&gt; &lt;body onload="setup()"&gt; &lt;div id="container"&gt; &lt;img id="img1" src="http://27.media.tumblr.com/tumblr_lhq4onW6Vg1qbcihro1_500.jpg" /&gt; &lt;/div&gt; &lt;/body&gt; ​&lt;/html&gt; </code></pre> <p>You could also adjust just the height or width of the div with the onclick event.</p> <pre><code>continater.style.height = 800px; continater.style.width = 600px; </code></pre> <p>Thanks to: baconipsum.com &amp; pugs</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload