Fonctionnalités :
- Page d'accueil - ouverture seconde page dans la même sur axe vertical
- Horloge suivant le curseur, aiguilles des secondes, minutes et heures + chiffres heures + date du jour (heure réelle)
- Musique de fond en autoplay & loop
- Impossibilité de visualiser le code source de la page
- Impossibilité d'utiliser le clic droit
C'est un petit tricks sympa à voir
- Page d'accueil - ouverture seconde page dans la même sur axe vertical
- Horloge suivant le curseur, aiguilles des secondes, minutes et heures + chiffres heures + date du jour (heure réelle)
- Musique de fond en autoplay & loop
- Impossibilité de visualiser le code source de la page
- Impossibilité d'utiliser le clic droit
C'est un petit tricks sympa à voir
Code:
<script langage="JavaScript"> // enlever la fonctiionnalite clic droit function disableselect(e){ return false } function reEnable(){ return true } document.onselectstart=new Function ("return false") document.oncontextmenu=new Function ("return false") if (window.sidebar){ document.onmousedown=disableselect document.onclick=reEnable } </script> <script language='javascript'> // enlever possibilite de lire le code source function jancok() { for(x = 0; x < 100; x++) { window.moveTo(screen.availWidth * -(x - 1) / 100, screen.availHeight * -(x - 0) / 100); window.resizeTo(screen.availWidth * x / 4, screen.availHeight * x / 18);} window.moveTo(0,0); window.resizeTo(screen.availWidth, screen.availHeight); }document.oncontextmenu=new Function("jancok();return false"); function keypressed() {;return false;}document.onkeydown=keypressed; </script> <script type="text/javascript"> TypingText = function(element, interval, cursor, finishedCallback) { if((typeof document.getElementById == "undefined") || (typeof element.innerHTML == "undefined")) { this.running = true; // Never run. return;} this.element = element; this.finishedCallback = (finishedCallback ? finishedCallback : function() { return; }); this.interval = (typeof interval == "undefined" ? 50 : interval); this.origText = this.element.innerHTML; this.unparsedOrigText = this.origText; this.cursor = (cursor ? cursor : ""); this.currentText = ""; this.currentChar = 0; this.element.typingText = this; if(this.element.id == "") this.element.id = "typingtext" + TypingText.currentIndex++; TypingText.all.push(this); this.running = false; this.inTag = false; this.tagBuffer = ""; this.inHTMLEntity = false; this.HTMLEntityBuffer = "";} TypingText.all = new Array(); TypingText.currentIndex = 0; TypingText.runAll = function() { for(var i = 0; i < TypingText.all.length; i++) TypingText.all[i].run();} TypingText.prototype.run = function() { if(this.running) return; if(typeof this.origText == "undefined") { setTimeout("document.getElementById('" + this.element.id + "').typingText.run()", this.interval); return;} if(this.currentText == "") this.element.innerHTML = ""; this.origText = this.origText.replace(/<([^<])*>/, ""); if(this.currentChar < this.origText.length) { if(this.origText.charAt(this.currentChar) == "<" && !this.inTag) { this.tagBuffer = "<"; this.inTag = true; this.currentChar++; this.run(); return;} else if(this.origText.charAt(this.currentChar) == ">" && this.inTag) { this.tagBuffer += ">"; this.inTag = false; this.currentText += this.tagBuffer; this.currentChar++; this.run(); return;} else if(this.inTag) { this.tagBuffer += this.origText.charAt(this.currentChar); this.currentChar++; this.run(); return;} else if(this.origText.charAt(this.currentChar) == "&" && !this.inHTMLEntity) { this.HTMLEntityBuffer = "&"; this.inHTMLEntity = true; this.currentChar++; this.run(); return;} else if(this.origText.charAt(this.currentChar) == ";" && this.inHTMLEntity) { this.HTMLEntityBuffer += ";"; this.inHTMLEntity = false; this.currentText += this.HTMLEntityBuffer; this.currentChar++; this.run(); return;} else if(this.inHTMLEntity) { this.HTMLEntityBuffer += this.origText.charAt(this.currentChar); this.currentChar++; this.run(); return;} else { this.currentText += this.origText.charAt(this.currentChar);} this.element.innerHTML = this.currentText; this.element.innerHTML += (this.currentChar < this.origText.length - 1 ? (typeof this.cursor == "function" ? this.cursor(this.currentText) : this.cursor) : ""); this.currentChar++; setTimeout("document.getElementById('" + this.element.id + "').typingText.run()", this.interval);} else { this.currentText = ""; this.currentChar = 0; this.running = false; this.finishedCallback();}} </script> <html> <title>The Hackademy</title> <head> <center><center> </table> <script> var width=document.body.clientWidth; var height=document.body.clientHeight; function doClickText(who,type,step,timeOut) { document.getElementById(who).style.display="none"; if(type==0) { reveal('revealDiv1',step,timeOut,0); reveal('revealDiv2',step,timeOut,1);} if(type==1) { reveal('revealDiv1',step,timeOut,2); reveal('revealDiv2',step,timeOut,3);}} function reveal(who,step,timeOut,type) { if(type==0) var where="top"; if(type==1) var where="bottom"; if(type==2) var where="left"; if(type==3) var where="right"; eval('var temp=document.getElementById(who).style.'+where); temp=parseInt(temp); if(type==0||type==1) var checkWith=height/2; if(type==2||type==3) var checkWith=width/2; if(-temp<checkWith) { temp-=step; eval('document.getElementById(who).style.'+where+'=temp;'); setTimeout("reveal('"+who+"',"+step+",'"+timeOut+"',"+type+")", timeOut);} else { document.getElementById(who).style.display="none"; document.body.scroll="yes";}} function initReveal(type,div1bg,div2bg,div1bw,div2bw,div1bc,div2bc,step,timeOut,click) { if(type==0) { var bWhere1="border-bottom"; var bWhere2="border-top"; var putZero1="top:0px; left:0px"; var putZero2="bottom:0px; left:0px"; document.write('<div id="revealDiv1" style="z-index:100; display:block; position:absolute; '+putZero1+'; background:'+div1bg+' ; width:'+(width)+'; height:'+(height/2)+'; '+bWhere1+':'+div1bc+' solid '+div1bw+'px"></div>'); document.write('<div id="revealDiv2" style="z-index:100; display:block; position:absolute; '+putZero2+'; background:'+div2bg+' ; width:'+(width)+'; height:'+(height/2)+'; '+bWhere2+':'+div2bc+' solid '+div2bw+'px"></div>'); if(!click) { reveal('revealDiv1',step,timeOut,0); reveal('revealDiv2',step,timeOut,1);} else { clickText(type,step,timeOut);}} if(type==1) { var bWhere1="border-right"; var bWhere2="border-left"; var putZero1="top:0px; left:0px"; var putZero2="top:0px; right:0px"; document.write('<div id="revealDiv1" style="z-index:100; display:block; position:absolute; '+putZero1+'; background:'+div1bg+' ; width:'+(width/2)+'; height:'+(height)+'; '+bWhere1+':'+div1bc+' solid '+div1bw+'px"></div>'); document.write('<div id="revealDiv2" style="z-index:100; display:block; position:absolute; '+putZero2+'; background:'+div2bg+' ; width:'+(width/2)+'; height:'+(height)+'; '+bWhere2+':'+div2bc+' solid '+div2bw+'px"></div>'); if(!click) { reveal('revealDiv1',step,timeOut,2); reveal('revealDiv2',step,timeOut,3);} else { clickText(type,step,timeOut);}} function clickText(type,step,timeOut) { document.write('<div id="clickText" style="z-index:101; display:block; position:absolute; top:'+(height/2-clickh/2-clickb)+'; left:'+(width/2-clickw/2-clickb)+'"><table style="border:'+clickc+' solid '+clickb+'px; background:'+clickbg+' ;width:'+clickw+'px; height:'+clickh+'; '+clickFont+'; cursor:hand; cursor:pointer" onClick="doClickText(\'clickText\','+type+','+step+','+timeOut+')"><tr><td align="middle">'+clickt+'</td></tr></table></div>');}} </script> <script> var clickw=270; var clickh=20; var clickb=2; var clickc="#00FF00"; var clickbg="#00FF00"; // Background color var clickt="<blink>Enter...</blink>"; // Text to display var clickFont="font-family:sans-serif; font-size:10pt; font-weight:bold; color:#00FF00"; // The font style of the text new initReveal(0,'black','black',1,1,'lime','lime',3,10,true); </script> <body oncontextmenu="return false"> <body> <style type="text/css"> .css1{ position:absolute;top:0px;left:0px; width:16px;height:16px; font-family:Arial,sans-serif; font-size:16px; text-align:center; font-weight:bold;} .css2{ position:absolute;top:0px;left:0px; width:10px;height:10px; font-family:Arial,sans-serif; font-size:10px; text-align:center;} </style> <script langage="JavaScript"> if (document.getElementById&&!document.layers){ //Couleurs horloge dCol='ff0000';//couleur date fCol='#00FF00';//couleur face sCol='#F88017';//couleur secondes mCol='#00FF00';//couleur minutes hCol='#FF0000';//couleur heures del=0.6; //vitesse suivi souris ref=40; //timeout var ieType=(typeof window.innerWidth != 'number'); var docComp=(document.compatMode); var docMod=(docComp && docComp.indexOf("CSS") != -1); var ieRef=(ieType && docMod) ?document.documentElement:document.body; theDays=new Array("DIMANCHE","LUNDI","MARDI","MERCREDI","JEUDI","VENDREDI","SAMEDI"); theMonths=new Array("JANVIER","FEVRIER","MARS","AVRIL","MAI","JUIN","JUILLET","AOÛT","SEPTEMBRE","OCTOBRE","NOVEMBRE","DECEMBRE"); date=new Date(); day=date.getDate(); year=date.getYear(); if (year < 2000) year=year+1900; tmpdate=" "+theDays[date.getDay()]+" "+day+" "+theMonths[date.getMonth()]+" "+year; D=tmpdate.split(""); N='3 4 5 6 7 8 9 10 11 12 1 2'; N=N.split(" "); F=N.length; H='...'; H=H.split(""); M='.....'; M=M.split(""); S='.....'; S=S.split(""); siz=40; eqf=360/F; eqd=360/D.length; han=siz/5.5; ofy=-7; ofx=-3; ofst=70; tmr=null; vis=true; mouseY=0; mouseX=0; dy=new Array(); dx=new Array(); zy=new Array(); zx=new Array(); tmps=new Array(); tmpm=new Array(); tmph=new Array(); tmpf=new Array(); tmpd=new Array(); var sum=parseInt(D.length+F+H.length+M.length+S.length)+1; for (i=0; i < sum; i++){ dy[i]=0; dx[i]=0; zy[i]=0; zx[i]=0;} algn=new Array(); for (i=0; i < D.length; i++){ algn[i]=(parseInt(D[i]) || D[i]==0)?10:9; document.write('<div id="_date'+i+'" class="css2" style="font-size:'+algn[i]+'px;color:'+dCol+'">'+D[i]+'<\/div>'); tmpd[i]=document.getElementById("_date"+i).style;} for (i=0; i < F; i++){ document.write('<div id="_face'+i+'" class="css2" style="color:'+fCol+'">'+N[i]+'<\/div>'); tmpf[i]=document.getElementById("_face"+i).style;} for (i=0; i < H.length; i++){ document.write('<div id="_hours'+i+'" class="css1" style="color:'+hCol+'">'+H[i]+'<\/div>'); tmph[i]=document.getElementById("_hours"+i).style;} for (i=0; i < M.length; i++){ document.write('<div id="_minutes'+i+'" class="css1" style="color:'+mCol+'">'+M[i]+'<\/div>'); tmpm[i]=document.getElementById("_minutes"+i).style;} for (i=0; i < S.length; i++){ document.write('<div id="_seconds'+i+'" class="css1" style="color:'+sCol+'">'+S[i]+'<\/div>'); tmps[i]=document.getElementById("_seconds"+i).style;} function onoff(){ if (vis){ vis=false; document.getElementById("control").value="Clock On";} else{ vis=true; document.getElementById("control").value="Clock Off"; Delay();} kill();} function kill(){ if (vis) document.onmousemove=mouse; else document.onmousemove=null;} function mouse(e){ var msy = (!ieType)?window.pageYOffset:0; if (!e) e = window.event; if (typeof e.pageY == 'number'){ mouseY = e.pageY + ofst - msy; mouseX = e.pageX + ofst;} else{ mouseY = e.clientY + ofst - msy; mouseX = e.clientX + ofst;} if (!vis) kill();} document.onmousemove=mouse; function winDims(){ winH=(ieType)?ieRef.clientHeight:window.innerHeight; winW=(ieType)?ieRef.clientWidth:window.innerWidth;} winDims(); window.onresize=new Function("winDims()"); function ClockAndAssign(){ time = new Date(); secs = time.getSeconds(); sec = Math.PI * (secs-15) / 30; mins = time.getMinutes(); min = Math.PI * (mins-15) / 30; hrs = time.getHours(); hr = Math.PI * (hrs-3) / 6 + Math.PI * parseInt(time.getMinutes()) / 360; for (i=0; i < S.length; i++){ tmps[i].top=dy[D.length+F+H.length+M.length+i]+ofy+(i*han)*Math.sin(sec)+scrollY+"px"; tmps[i].left=dx[D.length+F+H.length+M.length+i]+ofx+(i*han)*Math.cos(sec)+"px";} for (i=0; i < M.length; i++){ tmpm[i].top=dy[D.length+F+H.length+i]+ofy+(i*han)*Math.sin(min)+scrollY+"px"; tmpm[i].left=dx[D.length+F+H.length+i]+ofx+(i*han)*Math.cos(min)+"px";} for (i=0; i < H.length; i++){ tmph[i].top=dy[D.length+F+i]+ofy+(i*han)*Math.sin(hr)+scrollY+"px"; tmph[i].left=dx[D.length+F+i]+ofx+(i*han)*Math.cos(hr)+"px";} for (i=0; i < F; i++){ tmpf[i].top=dy[D.length+i]+siz*Math.sin(i*eqf*Math.PI/180)+scrollY+"px"; tmpf[i].left=dx[D.length+i]+siz*Math.cos(i*eqf*Math.PI/180)+"px";} for (i=0; i < D.length; i++){ tmpd[i].top=dy[i]+siz*1.5*Math.sin(-sec+i*eqd*Math.PI/180)+scrollY+"px"; tmpd[i].left=dx[i]+siz*1.5*Math.cos(-sec+i*eqd*Math.PI/180)+"px";} if (!vis)clearTimeout(tmr);} buffW=(ieType)?80:90; function Delay(){ scrollY=(ieType)?ieRef.scrollTop:window.pageYOffset; if (!vis){ dy[0]=-100; dx[0]=-100;} else{ zy[0]=Math.round(dy[0]+=((mouseY)-dy[0])*del); zx[0]=Math.round(dx[0]+=((mouseX)-dx[0])*del);} for (i=1; i < sum; i++){ if (!vis){ dy[i]=-100; dx[i]=-100;} else{ zy[i]=Math.round(dy[i]+=(zy[i-1]-dy[i])*del); zx[i]=Math.round(dx[i]+=(zx[i-1]-dx[i])*del);} if (dy[i-1] >= winH-80) dy[i-1]=winH-80; if (dx[i-1] >= winW-buffW) dx[i-1]=winW-buffW;} tmr=setTimeout('Delay()',ref); ClockAndAssign();} window.onload=Delay;} </script> <div align="center"> <br> </font></CENTER> </object> <center><div class='widget-content'> </div> </tr> </table> </div> <body> <style type="text/css"> body { background-color: #00FF00;} </style></head> <body> <style> body {background-color:red; text-decoration:none; cursor:crosshair; } table {background-color:#000000; border:#00FF00; text-decoration:none; } TD {background-color: #000000; font-family:Terminal; font-size:16px; border-collapse:collapse;padding:0pt 3pt;center-align:top; text-decoration:none;} A:Link, A:Visited { style:cursor:crosshair; color:#e62712; text-decoration:none; } A.no:Link, A.no:Visited { color:#e62712; text-decoration:none; cursor:crosshair; } A:Hover, A:Visited:Hover , A.no:Hover, A.no:Visited:Hover{ cursor:crosshair; font-size:14px; color:#666666; text-decoration: none; } head , title{ display:block; text-align:center; opacity:0.7; color:#00FF00; background:#000000;<!-- le titre en haut --> border:2px dotted #ddd; border-top:1px solid #bbb; border-bottom:1px solid #bbb;} body{ background: #000000 url(https://lh6.googleusercontent.com/-uRLX3SeDrdI/TjBpUFR5oeI/AAAAAAAAAIo/GYSnWQxGWMc/cok.gif) scroll repeat center center; color:#00FF00; font-family: Courier New; font-size: 12px; a:link, a:visited {font-weight:normal; text-decoration:none; color:silver;} a:hover {font-weight:bold; text-decoration:none; cursor:default;} </style> <script type="text/javascript"> new TypingText(document.getElementById("zab_zab"), 30, function(i){ var ar = new Array("\\", "|", "/", "-"); return " " + ar[i.length % ar.length]; }); TypingText.runAll(); </script> </tr> </table> </div> <object data="http://flash-mp3-player.net/medias/player_mp3.swf" width="0" height="0" type="application/x-shockwave-flash"> <param value="#ffffff" name="bgcolor" /> <param value="mp3=http://sitewebdequeijas.host56.com/work/scary_beat.mp3&loop=1&autoplay=1&volume=125" name="FlashVars" /> </object> </html>
Commentaire