<html> <title>Semantic Designs: ECMAScript (JavaScript) Obfuscator Example: MouseClock <i>Unobfuscated</i></title> <body><!-- the JavaScript 'global' and initialization values					-->  <script language="JavaScript"> ='0\06000\060\x30'; ='\060\0600\060\x300'; U='000\0600\060'; ='\060\x30\x30\x300\060'; ='0\0600\0600\060'; =050; =050; =0; =0144; var ; =new Array("\123U\x4eD\x41Y","M\117\116D\101Y","T\125\105S\x44\101\131","\127\105D\x4e\105\123DA\131","\124H\x55\x52\x53D\101Y","\106RI\104A\x59","\123\101T\x55\x52D\101Y"); =new Array("\112\x41\116U\x41R\131","\106\105B\x52\125\101\x52\131","\115\101R\x43\110","\101\120R\x49\114","\115AY","\112\125N\x45","\112\125L\x59","A\125\107U\x53\124","S\105PT\105M\x42E\122","\117CT\117B\x45\x52","N\117\126EM\102E\122","\104E\x43\105M\x42E\122"); =new Date(); =.getDate(); =.getYear(); if (<03720)=+03554; =" "+[.getDay()]+"\x20"++"\040"+[.getMonth()]+" "+; =.split(''); ='\056.\x2e'; =.split(''); ='\x2e.\x2e.'; =.split(''); ='\056.\056\x2e\056'; =.split(''); ='1\040\062\x20\063 \064\040\065 \066\040\067 8 9\x2010\x2011 12'; font='\101r\x69\x61\x6c'; =1; speed=.6; =(document.layers); =navigator.userAgent.toLowerCase().indexOf("\155si\145")!=-1;=(navigator.userAgent.toLowerCase().indexOf("\155\x6f\172i\154l\141")!=-1) && !;=.split('\040'); O=.length; a=*012; =0; =0; =0; Z="\x3c\x66\x6fn\164\040f\141\x63\145="+font+"\040\x73\151z\x65="++" \143\157l\x6f\x72="++">\074\x42\076"; z="\x3c\146\157n\x74 \146\x61\143\x65\075"+font+"\040\x73i\x7ae\075"++" \143\157l\x6f\162\075"++"\076\x3c\x42>"; =0550/O; =0550/.length; =/.45e1;=/.45e1;=-7; A=-.25e1; =0; =.6e-1; =0; y=new Array(); x=new Array(); =new Array(); =new Array(); for (i=0; i<O; i++){y[i]=0; x[i]=0; [i]=0; [i]=0;}Dy=new Array(); Dx=new Array(); =new Array(); e=new Array(); for (i=0; i<.length; i++){Dy[i]=0; Dx[i]=0; [i]=0; e[i]=0;}if (){document.write('\x3cd\151v\x20\x69d\075\x22'+((''))+'\042 s\164y\154e=\042p\157\163\x69\164ion:\141bsolu\x74\x65;top:\060px;lef\164:0px\x22>\x3c\144i\166 st\171le=\042\160osit\151o\156\072\x72e\154at\151ve\042\076'); for (i=0; i<.length; i++)document.write('\x3c\144\x69v\040\151d=\x22'+((''))+'\042\040\x73\164\171\154e=\042\160osi\164ion:a\142solute;top:0px\073\154eft\0720\073h\145ight\072'+a+'\073w\151d\164h\x3a'+a+';\164\145xt\055\141\154\x69g\156:\143en\164er\x22\x3e'+z+[i]+'\074/\x42\076\x3c/\146\x6f\156\164>\x3c\057\144\151v\076'); document.write('\x3c\057d\151v\x3e\x3c\x2f\144\151v\076'); document.write('\074\x64i\x76\x20i\144=\x22'+((''))+'\x22\040s\164y\154e\075\042\160ositi\157\156:\x61bs\x6f\x6cute;to\160\072\060\160x;\154eft:0\160x\x22>\x3c\144i\166 sty\154e=\042po\163\151\164io\156:\162el\141t\151ve\042\076'); for (i=0; i<O; i++)document.write('\x3cd\151\166 \151\144\x3d\042'+((''))+'\042 s\164y\x6c\145=\x22\160\157si\164ion:\141bsolute;to\x70:0px\x3bleft:\060\073\150eight\072'+a+';\167\151dt\150:'+a+'\073t\145x\x74\x2da\154\x69\147\156:\143ente\x72\042\076'+Z+[i]+'\x3c/\x42\x3e\x3c/\146\157\156\x74\076\x3c/div>'); document.write('\074\057\x64\151v\076\074\057\144iv>'); document.write('\x3cd\x69\x76 \151\x64\075\042'+((''))+'\042\040\x73\x74y\154\145=\042p\157sit\151on:a\142\163olute;top:0\x70x;left:\060\160x\x22>\x3c\144i\166 s\164yl\145=\x22p\157si\164\151o\156:\162e\154at\151v\145\x22\076'); for (i=0; i<.length; i++)document.write('\074d\151v\x20i\x64=\042'+((''))+'\x22 \163\x74y\154\145\075\042p\157si\164ion:absolut\x65;width:16px;height:\061\066\160x\073\146on\164-fa\155il\171:Ar\151a\154\073\146ont\055\163i\172e\072\0616px\073\143\157\154o\162\072'++'\073\x74\145x\x74-\141li\147\x6e\072ce\156ter;fo\x6e\x74-weight:\142old\x22\076'+[i]+'\x3c\057d\151v\076'); document.write('\074/\x64\x69\166\x3e\074/d\151\166>'); document.write('\074d\151v\040\x69\144\075\042'+((''))+'\x22 \x73t\171\x6ce=\x22\160\157sit\151on:\141bsol\x75te\x3btop:\060px;lef\164:0px\x22>\074d\151\166 styl\145=\x22\160os\151ti\157n:r\145l\141t\151ve\x22\076'); for (i=0; i<.length; i++)document.write('\x3cd\151v \151d=\042'+((''))+'\x22 \x73\x74\x79l\145\075\042p\157\163\151tion:absol\x75te;widt\150:1\066\160x;heigh\164:16\160x;fon\164-fa\155ily\072\101r\151\141\154;\146o\156t-\163i\172e\072\x316p\170;\143\157l\157r\072'++';\164\145x\x74\055a\154\x69\147\156:c\145nt\145r;font-\x77eight:b\157ld\x22>'+[i]+'\074\057\x64\151\166\076'); document.write('\x3c\x2f\x64i\166>\x3c/\144\x69v>');document.write('\x3cd\x69\x76 \151\x64\075\x22'+((''))+'\x22 \x73\x74y\154e\075\042p\157sit\151on\072\141bs\157lute;t\157\160\072\060\160x;le\146t:0p\170\x22>\x3c\144i\166 s\164yl\145=\x22po\163it\151o\156:r\145la\164i\166e\x22\076'); for (i=0; i<.length; i++)document.write('\074d\x69v\040\x69d\075\042'+((''))+'\042 \x73\164y\x6ce\075\042\160o\163iti\157n:a\x62\x73\x6flute;w\151dth\072\0616p\170;heig\150t:16\160x;fo\156t-\146ami\154y:\101\162\151a\154;\146on\164-\163i\172e:\061\066px\073\143\157l\157\162:'+U+'\073t\145x\x74\055a\154ig\156:c\145nt\145r;\146ont-w\x65ight:bold\x22\076'+[i]+'\x3c\x2fdi\x76\x3e'); document.write('\x3c/\144\151v\x3e\x3c\057d\151v>');}else if (){for (i=0; i<.length; i++)document.write('\074\144i\166 \x69\144\x3d\042'+(('W'))+i+'\042 \x73\164y\x6ce=\x22\160\157\163\151ti\157n:absolut\x65;top:\x30\160x;l\145ft:0px\x22 \150ei\147ht=\x22'+a+'\x22 \x77i\144\x74h\075\042'+a+'\042\076\x3c\x63e\156\x74\145\x72\076'+z+[i]+'\074\057\x66\x6fnt\x3e\074\057c\145nter\076\074/div>'); for (i=0; i<O; i++)document.write('\074d\151v\040\x69\x64\075\042'+(('w'))+i+'\042 \x73\164y\x6ce\075\042p\157siti\157n:abs\157lute;top:0px;left:0px\x22\040\150e\151ght=\042'+a+'\x22 \x77i\144\x74h\075\042'+a+'\x22\076\x3cc\145\156\x74\145\162>'+Z+[i]+'\074\057\146o\156\164\076\074\057\143en\164er>\x3c\057di\166>'); for (i=0; i<.length; i++)document.write('\x3cdi\166\040\x69d=\x22'+(('V'))+i+'\040s\x74\171l\x65=\042\160\157\163it\151\157n:absolute;top:0p\170\073\154ef\164:0px\x22\040\167i\144th=\042\061\065\042\040\150ei\147\150t\075\042\061\x35\x22\076\074\146\157n\164 \146\141\143e\075\x41r\151\141\154 \163\151\172\145\0753 \143\x6fl\157\162\x3d'+U+'\076\x3c\143e\x6et\145\x72\076\074\142\076'+[i]+'\074\057\x62\076\x3c\x2f\143\145nte\162>\x3c\x2ffont>\x3c/div>'); for (i=0; i<.length; i++)document.write('\074d\151v\040\x69\144=\x22'+(('v'))+i+'\x20\x73t\171l\145=\042po\163\x69\164i\157n:abso\x6c\x75te;top:0\160\170\073\154eft:0px\042 \167idth=\0421\065\042\040\150ei\147h\164=\x22\0615\x22>\074\146o\156t\040\146a\143e\075\101\162\151\141l\040\x73\151z\145\075\x33 \143\157\154\157\162\075'++'\076\x3c\143e\x6et\145\x72\076\074\142>'+[i]+'\074\057\142>\x3c/\143\145\x6e\164er>\074\057\146ont>\x3c/div>'); for (i=0; i<.length; i++)document.write('\074d\x69v\040\151\144\075\042'+(('T'))+i+'\040\163t\171l\x65\075\042p\157\163iti\157n:absol\165te;top:0p\170;\154eft:0\160x\x22 wid\164h=\0421\065\x22\040\150e\151g\150t\075\x22\x315\042\076\074\146\157n\164 \146a\143e\075\101\162\151\141l\040si\172e\075\x33 \143\157\154\157\162\x3d'++'\076\x3c\143e\156\164er\076\074b>'+[i]+'\074\057\x62\076\074/\143\145\x6e\164\145r>\x3c\x2ffont>\x3c/div\076'); }else if (){for (i=0; i<.length; i++)document.write('\x3cl\141y\x65\x72\040na\155\x65\075\x22'+(('t'))+i+'\042\x20\164o\160\0750\040\154\145f\164=0\040\150eight='+a+'\040w\151d\x74\150\075'+a+'>\x3c\143\145n\x74e\162>'+z+[i]+'\x3c/\x66\x6f\x6et\076\x3c\057c\145nter>\074\057layer>'); for (i=0; i<O; i++)document.write('\x3cl\x61y\145\x72 \156\x61\155\145=\042'+(('R'))+i+'\042 t\157p\0750 l\x65f\164\0750\040\150\145ight='+a+'\040\x77id\x74\150='+a+'\076\074\x63\145\156t\145r>'+Z+[i]+'\x3c\x2f\x66\x6fn\164>\074/\143\x65\156ter\x3e\x3c/layer>'); for (i=0; i<.length; i++)document.write('\x3cl\141\171e\x72\x20\156\x61\155e=\x22'+(('r'))+i+' \164\157p\x3d\060 l\x65\146\164=0\040\167\151dth=15 \x68eight=1\x35\076\074\146ont \146ace=\101rial \163ize=\063\040\143o\154o\162='+U+'\076\x3c\143e\x6et\145\x72\076\074\142>'+[i]+'\x3c/b\076\x3c/\143\145\156te\162>\x3c/\146ont>\x3c/layer>'); for (i=0; i<.length; i++)document.write('\074la\171e\162 \156\141\x6de\075\042'+(('Q'))+i+'\x20t\x6fp\0750\x20l\145\146\x74\0750 \167idt\x68\x3d15 \x68eight\075\061\065\076\074\146ont\040\146ace=\101ri\141l s\151ze\075\063 col\157\162='++'>\074\x63\145nt\145r\076\074b\076'+[i]+'\074\057\142>\x3c\x2f\143\145\156ter\076\074/font>\x3c/layer>'); for (i=0; i<.length; i++)document.write('\074\154a\171e\x72\x20\156\141me=\x22'+(('P'))+i+' t\x6f\160\x3d\x30 \154\x65\146\164=\x30\040\167idth=15 height=1\065>\x3cfo\156t face=A\162ial\040\163ize\075\063\040\143\157l\157\162\075'++'>\074\x63\145n\x74e\162\x3e\074b\x3e'+[i]+'\074\057\x62\x3e\x3c\x2f\143\145nt\145r>\074\057\146ont>\x3c/l\141\171er>'); } ()?window.captureEvents(N.MOUSEMOVE): 0; </script> <!-- Include the JS functions -->  <script language="JavaScript" src="ObfuscatedJavaScriptMouseClock.js.txt" type="text/javascript"> </script> <!-- Clear the initial values, all piled up on top of each other in the   --><!-- top left corner of the display browser.				  -->  <script> (); </script> <!-- the HTML page itself						  --><h2>Obfuscating web pages containing HTML and ECMASCript (JavaScript)</h2><p> This page has mouse clicks to run a JavaScript (ECMAScript) program that shows a clever little dynamic time-of-day clock around the current mouse position. After you've played with it, click BACK to continue with Obfuscation example.</p><p> <b>Be sure to view the source of this page.</b></p><p> <input type="button" value="Start" onclick=" if ( ||  || )(); "> <input type="button" value="Stop" onclick="();"> <input type="button" value="Clear" onclick=" if ( ||  || )(); "></p></body></html>