<html> <head> <script language="JavaScript"> <!-- //Choose colours and size of effect !! var a_Colour='ff0000'; var b_Colour='00ff00'; var c_Colour='0000ff'; var Size=50; //Alter nothing below !! var YDummy=new Array(),XDummy=new Array(),xpos=0,ypos=0,ThisStep=0;step=0.03; if (document.layers){ window.captureEvents(Event.MOUSEMOVE); function nsMouse(evnt){ xpos = window.pageYOffset+evnt.pageX+6; ypos = window.pageYOffset+evnt.pageY+16; } window.onMouseMove = nsMouse; } else if (document.all) { function ieMouse(){ xpos = document.body.scrollLeft+event.x+6; ypos = document.body.scrollTop+event.y+16; } document.onmousemove = ieMouse; } function swirl(){ for (i = 0; i < 3; i++) { YDummy[i]=ypos+Size*Math.cos(ThisStep+i*2)*Math.sin((ThisStep)*6); XDummy[i]=xpos+Size*Math.sin(ThisStep+i*2)*Math.sin((ThisStep)*6); } ThisStep+=step; setTimeout('swirl()',10); } var amount=10; if (document.layers){ for (i = 0; i < amount; i++) { document.write('<layer name=nsa'+i+' top=0 left=0 width='+i/2+' height='+i/2+' bgcolor='+a_Colour+'></layer>'); document.write('<layer name=nsb'+i+' top=0 left=0 width='+i/2+' height='+i/2+' bgcolor='+b_Colour+'></layer>'); document.write('<layer name=nsc'+i+' top=0 left=0 width='+i/2+' height='+i/2+' bgcolor='+c_Colour+'></layer>'); } } else if (document.all){ document.write('<div id="ODiv" style="position:absolute;top:0px;left:0px">' +'<div id="IDiv" style="position:relative">'); for (i = 0; i < amount; i++) { document.write('<div id=x style="position:absolute;top:0px;left:0px;width:'+i/2+';height:'+i/2+';background:'+a_Colour+';font-size:'+i/2+'"></div>'); document.write('<div id=y style="position:absolute;top:0px;left:0px;width:'+i/2+';height:'+i/2+';background:'+b_Colour+';font-size:'+i/2+'"></div>'); document.write('<div id=z style="position:absolute;top:0px;left:0px;width:'+i/2+';height:'+i/2+';background:'+c_Colour+';font-size:'+i/2+'"></div>'); } document.write('</div></div>'); } function prepos(){ var ntscp=document.layers; var msie=document.all; if (document.layers){ for (i = 0; i < amount; i++) { if (i < amount-1) { ntscp['nsa'+i].top=ntscp['nsa'+(i+1)].top;ntscp['nsa'+i].left=ntscp['nsa'+(i+1)].left; ntscp['nsb'+i].top=ntscp['nsb'+(i+1)].top;ntscp['nsb'+i].left=ntscp['nsb'+(i+1)].left; ntscp['nsc'+i].top=ntscp['nsc'+(i+1)].top;ntscp['nsc'+i].left=ntscp['nsc'+(i+1)].left; } else { ntscp['nsa'+i].top=YDummy[0];ntscp['nsa'+i].left=XDummy[0]; ntscp['nsb'+i].top=YDummy[1];ntscp['nsb'+i].left=XDummy[1]; ntscp['nsc'+i].top=YDummy[2];ntscp['nsc'+i].left=XDummy[2]; } } } else if (document.all){ for (i = 0; i < amount; i++) { if (i < amount-1) { msie.x[i].style.top=msie.x[i+1].style.top;msie.x[i].style.left=msie.x[i+1].style.left; msie.y[i].style.top=msie.y[i+1].style.top;msie.y[i].style.left=msie.y[i+1].style.left; msie.z[i].style.top=msie.z[i+1].style.top;msie.z[i].style.left=msie.z[i+1].style.left; } else { msie.x[i].style.top=YDummy[0];msie.x[i].style.left=XDummy[0]; msie.y[i].style.top=YDummy[1];msie.y[i].style.left=XDummy[1]; msie.z[i].style.top=YDummy[2];msie.z[i].style.left=XDummy[2]; } } } setTimeout("prepos()",10); } function Start(){ swirl(),prepos() } window.onload=Start; // --> </script> </head> <body> </body> </html>
</center> <script>var mynick=''; var myid='';</script> <script> farbbibliothek = new Array(); farbbibliothek[0] = new Array("#FF0000","#FF1100","#FF2200","#FF3300","#FF4400","#FF5500","#FF6600","#FF7700","#FF8800","#FF9900","#FFaa00","#FFbb00","#FFcc00","#FFdd00","#FFee00","#FFff00","#FFee00","#FFdd00","#FFcc00","#FFbb00","#FFaa00","#FF9900","#FF8800","#FF7700","#FF6600","#FF5500","#FF4400","#FF3300","#FF2200","#FF1100"); farbbibliothek[1] = new Array("#00FF00","#000000","#00FF00","#00FF00"); farbbibliothek[2] = new Array("#00FF00","#FF0000","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00","#00FF00"); farbbibliothek[3] = new Array("#FF0000","#FF4000","#FF8000","#FFC000","#FFFF00","#C0FF00","#80FF00","#40FF00","#00FF00","#00FF40","#00FF80","#00FFC0","#00FFFF","#00C0FF","#0080FF","#0040FF","#0000FF","#4000FF","#8000FF","#C000FF","#FF00FF","#FF00C0","#FF0080","#FF0040"); farbbibliothek[4] = new Array("#FF0000","#EE0000","#DD0000","#CC0000","#BB0000","#AA0000","#990000","#880000","#770000","#660000","#550000","#440000","#330000","#220000","#110000","#000000","#110000","#220000","#330000","#440000","#550000","#660000","#770000","#880000","#990000","#AA0000","#BB0000","#CC0000","#DD0000","#EE0000"); farbbibliothek[5] = new Array("#000000","#000000","#000000","#FFFFFF","#FFFFFF","#FFFFFF"); farbbibliothek[6] = new Array("#0000FF","#FFFF00"); /* 0 - Rood-Geel-overgang -Standaard 1 - Matrix-Effect 2 - Scanner 3 - Regenboog-effect 4 - Rood-Zwart-overgang 5 - Zebra 6 - Geel-Blauw-Stroboskoop */ farben = farbbibliothek[0]; // Geef hier aan ( met een getal tussen [0] zie voor uitleg hierboven ) welke kleur-overgang gebruiktmoet worden function farbschrift() { for(var i=0 ; i<Buchstabe.length; i++) { document.all["a"+i].style.color=farben[i]; } farbverlauf(); } function string2array(text) { Buchstabe = new Array(); while(farben.length<text.length) { farben = farben.concat(farben); } k=0; while(k<=text.length) { Buchstabe[k] = text.charAt(k); k++; } } function divserzeugen() { for(var i=0 ; i<Buchstabe.length; i++) { document.write("<span id='a"+i+"' class='a"+i+"'>"+Buchstabe[i] + "</span>"); } farbschrift(); } var a=1; function farbverlauf() { for(var i=0 ; i<farben.length; i++) { farben[i-1]=farben[i]; } farben[farben.length-1]=farben[-1]; setTimeout("farbschrift()",30); } // Zu Demonstrationszwecken***************** var farbsatz=1; function farbtauscher() { farben = farbbibliothek[farbsatz]; while(farben.length<text.length) { farben = farben.concat(farben); } farbsatz=Math.floor(Math.random()*(farbbibliothek.length-0.0001)); } setInterval("farbtauscher()",5000); //******************************************* </script> <p> <center> <p style="font-size: 20pt;"> <script> text= "Welcome 😀 "; //verander hier de tekst string2array(text); divserzeugen(); </script> </a> </p> </center>
<SCRIPT LANGUAGE="JavaScript"> <!-- Begin fCol = 'red'; //face colour. sCol = 'fred'; //seconds colour. mCol = 'red'; //minutes colour. hCol = 'red'; //hours colour. H = '....'; H = H.split(''); M = '.....'; M = M.split(''); S = '......'; S = S.split(''); Ypos = 0; Xpos = 0; Ybase = 8; Xbase = 8; dots = 12; ns = (document.layers)?1:0; if (ns) { dgts = '1 2 3 4 5 6 7 8 9 10 11 12'; dgts = dgts.split(' '); for (i = 0; i < dots; i++) { document.write('<layer name=nsDigits'+i+' top=0 left=0 height=30 width=30><center><font face=Arial,Verdana size=1 color='+fCol+'>'+dgts[i]+'</font></center></layer>'); } for (i = 0; i < M.length; i++) { document.write('<layer name=ny'+i+' top=0 left=0 bgcolor='+mCol+' clip="0,0,2,2"></layer>'); } for (i = 0; i < H.length; i++) { document.write('<layer name=nz'+i+' top=0 left=0 bgcolor='+hCol+' clip="0,0,2,2"></layer>'); } for (i = 0; i < S.length; i++) { document.write('<layer name=nx'+i+' top=0 left=0 bgcolor='+sCol+' clip="0,0,2,2"></layer>'); } } else { document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (i = 1; i < dots+1; i++) { document.write('<div id="ieDigits" style="position:absolute;top:0px;left:0px;width:30px;height:30px;font-family:Arial,Verdana;font-size:10px;color:'+fCol+';text-align:center;padding-top:10px">'+i+'</div>'); } document.write('</div></div>') document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (i = 0; i < M.length; i++) { document.write('<div id=y style="position:absolute;width:2px;height:2px;font-size:2px;background:'+mCol+'"></div>'); } document.write('</div></div>') document.write('</div></div>') document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (i = 0; i < H.length; i++) { document.write('<div id=z style="position:absolute;width:2px;height:2px;font-size:2px;background:'+hCol+'"></div>'); } document.write('</div></div>') document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (i = 0; i < S.length; i++) { document.write('<div id=x style="position:absolute;width:2px;height:2px;font-size:2px;background:'+sCol+'"></div>'); } document.write('</div></div>') } function clock() { time = new Date (); secs = time.getSeconds(); sec = -1.57 + Math.PI * secs/30; mins = time.getMinutes(); min = -1.57 + Math.PI * mins/30; hr = time.getHours(); hrs = -1.57 + Math.PI * hr/6 + Math.PI*parseInt(time.getMinutes())/360; if (ns) { Ypos = window.pageYOffset+window.innerHeight-60; Xpos = window.pageXOffset+window.innerWidth-80; } else { Ypos = document.body.scrollTop + window.document.body.clientHeight - 60; Xpos = document.body.scrollLeft + window.document.body.clientWidth - 60; } if (ns) { for (i = 0; i < dots; ++i){ document.layers["nsDigits"+i].top = Ypos - 5 + 40 * Math.sin(-0.49+dots+i/1.9); document.layers["nsDigits"+i].left = Xpos - 15 + 40 * Math.cos(-0.49+dots+i/1.9); } for (i = 0; i < S.length; i++){ document.layers["nx"+i].top = Ypos + i * Ybase * Math.sin(sec); document.layers["nx"+i].left = Xpos + i * Xbase * Math.cos(sec); } for (i = 0; i < M.length; i++){ document.layers["ny"+i].top = Ypos + i * Ybase * Math.sin(min); document.layers["ny"+i].left = Xpos + i * Xbase * Math.cos(min); } for (i = 0; i < H.length; i++){ document.layers["nz"+i].top = Ypos + i * Ybase * Math.sin(hrs); document.layers["nz"+i].left = Xpos + i * Xbase * Math.cos(hrs); } } else{ for (i=0; i < dots; ++i){ ieDigits[i].style.pixelTop = Ypos - 15 + 40 * Math.sin(-0.49+dots+i/1.9); ieDigits[i].style.pixelLeft = Xpos - 14 + 40 * Math.cos(-0.49+dots+i/1.9); } for (i=0; i < S.length; i++){ x[i].style.pixelTop = Ypos + i * Ybase * Math.sin(sec); x[i].style.pixelLeft = Xpos + i * Xbase * Math.cos(sec); } for (i=0; i < M.length; i++){ y[i].style.pixelTop = Ypos + i * Ybase * Math.sin(min); y[i].style.pixelLeft = Xpos + i * Xbase * Math.cos(min); } for (i=0; i < H.length; i++){ z[i].style.pixelTop = Ypos + i * Ybase*Math.sin(hrs); z[i].style.pixelLeft = Xpos + i * Xbase*Math.cos(hrs); } } setTimeout('clock()', 50); } if (document.layers || document.all) window.onload = clock; // End --> </script> <!-- HEAD END HERE --> </head> <body bgcolor="#EDEDED" text="##EDEDED" link="#EDEDED" topmargin="0" leftmargin="0"> <center>
<html> <head> <title>ваш урл - ваша реклама (bjs)</title> <Style> A:Link{ Color: white; Text-decoration: underline} A:Visited{ Color: white; Text-decoration: underline} A:Hover{ Color: white; Text-decoration: none} td, body {font-family: verdana, arial, helvetica; font-size:11px;} </Style> <!-- HEAD START HERE --> <SCRIPT LANGUAGE="JavaScript"><!-- document.onmouseover = domouseover; document.onmouseout = domouseout; function domouseover() { if(document.all){ srcElement = window.event.srcElement; if (srcElement.className.indexOf("fade") > -1) { var linkName = srcElement.name; fadein(linkName); } } } function domouseout() { if (document.all){ srcElement = window.event.srcElement; if (srcElement.className.indexOf("fade") > -1) { var linkName = srcElement.name; fadeout(linkName); } } } function makearray(n) { this.length = n; for(var i = 1; i <= n; i++) this[i] = 0; return this; } hexa = new makearray(16); for(var i = 0; i < 10; i++) hexa[i] = i; hexa[10]="a"; hexa[11]="b"; hexa[12]="c"; hexa[13]="d"; hexa[14]="e"; hexa[15]="f"; function hex(i) { if (i < 0) return "00"; else if (i > 255) return "ff"; else return "" + hexa[Math.floor(i/16)] + hexa[i%16];} function setbgColor(r, g, b, element) { var hr = hex(r); var hg = hex(g); var hb = hex(b); element.style.color = "#"+hr+hg+hb; } function fade(sr, sg, sb, er, eg, eb, step, direction, element){ for(var i = 0; i <= step; i++) { setTimeout("setbgColor(Math.floor(" +sr+ " *(( " +step+ " - " +i+ " )/ " +step+ " ) + " +er+ " * (" +i+ "/" +step+ ")),Math.floor(" +sg+ " * (( " +step+ " - " +i+ " )/ " +step+ " ) + " +eg+ " * (" +i+ "/" +step+ ")),Math.floor(" +sb+ " * ((" +step+ "-" +i+ ")/" +step+ ") + " +eb+ " * (" +i+ "/" +step+ ")),"+element+");",i*step); } } function fadeout(element) { fade(255,150,0, 255,255,255, 30, 1, element); } function fadein(element) { fade(255,255,255, 255,150,0, 23, 1, element); } //--></SCRIPT> <!-- HEAD END HERE -->
<html> <head> <script language="JavaScript"> <!-- Trio 2 Script by kurt.grigg@virgin.net //Choose colours and size of effect !! var a_Colour='ff0000'; var b_Colour='00ff00'; var c_Colour='0000ff'; var Size=50; //Alter nothing below !! var YDummy=new Array(),XDummy=new Array(),xpos=0,ypos=0,ThisStep=0;step=0.03; if (document.layers){ window.captureEvents(Event.MOUSEMOVE); function nsMouse(evnt){ xpos = window.pageYOffset+evnt.pageX+6; ypos = window.pageYOffset+evnt.pageY+16; } window.onMouseMove = nsMouse; } else if (document.all) { function ieMouse(){ xpos = document.body.scrollLeft+event.x+6; ypos = document.body.scrollTop+event.y+16; } document.onmousemove = ieMouse; } function swirl(){ for (i = 0; i < 3; i++) { YDummy[i]=ypos+Size*Math.cos(ThisStep+i*2)*Math.sin((ThisStep)*6); XDummy[i]=xpos+Size*Math.sin(ThisStep+i*2)*Math.sin((ThisStep)*6); } ThisStep+=step; setTimeout('swirl()',10); } var amount=10; if (document.layers){ for (i = 0; i < amount; i++) { document.write('<layer name=nsa'+i+' top=0 left=0 width='+i/2+' height='+i/2+' bgcolor='+a_Colour+'></layer>'); document.write('<layer name=nsb'+i+' top=0 left=0 width='+i/2+' height='+i/2+' bgcolor='+b_Colour+'></layer>'); document.write('<layer name=nsc'+i+' top=0 left=0 width='+i/2+' height='+i/2+' bgcolor='+c_Colour+'></layer>'); } } else if (document.all){ document.write('<div id="ODiv" style="position:absolute;top:0px;left:0px">' +'<div id="IDiv" style="position:relative">'); for (i = 0; i < amount; i++) { document.write('<div id=x style="position:absolute;top:0px;left:0px;width:'+i/2+';height:'+i/2+';background:'+a_Colour+';font-size:'+i/2+'"></div>'); document.write('<div id=y style="position:absolute;top:0px;left:0px;width:'+i/2+';height:'+i/2+';background:'+b_Colour+';font-size:'+i/2+'"></div>'); document.write('<div id=z style="position:absolute;top:0px;left:0px;width:'+i/2+';height:'+i/2+';background:'+c_Colour+';font-size:'+i/2+'"></div>'); } document.write('</div></div>'); } function prepos(){ var ntscp=document.layers; var msie=document.all; if (document.layers){ for (i = 0; i < amount; i++) { if (i < amount-1) { ntscp['nsa'+i].top=ntscp['nsa'+(i+1)].top;ntscp['nsa'+i].left=ntscp['nsa'+(i+1)].left; ntscp['nsb'+i].top=ntscp['nsb'+(i+1)].top;ntscp['nsb'+i].left=ntscp['nsb'+(i+1)].left; ntscp['nsc'+i].top=ntscp['nsc'+(i+1)].top;ntscp['nsc'+i].left=ntscp['nsc'+(i+1)].left; } else { ntscp['nsa'+i].top=YDummy[0];ntscp['nsa'+i].left=XDummy[0]; ntscp['nsb'+i].top=YDummy[1];ntscp['nsb'+i].left=XDummy[1]; ntscp['nsc'+i].top=YDummy[2];ntscp['nsc'+i].left=XDummy[2]; } } } else if (document.all){ for (i = 0; i < amount; i++) { if (i < amount-1) { msie.x[i].style.top=msie.x[i+1].style.top;msie.x[i].style.left=msie.x[i+1].style.left; msie.y[i].style.top=msie.y[i+1].style.top;msie.y[i].style.left=msie.y[i+1].style.left; msie.z[i].style.top=msie.z[i+1].style.top;msie.z[i].style.left=msie.z[i+1].style.left; } else { msie.x[i].style.top=YDummy[0];msie.x[i].style.left=XDummy[0]; msie.y[i].style.top=YDummy[1];msie.y[i].style.left=XDummy[1]; msie.z[i].style.top=YDummy[2];msie.z[i].style.left=XDummy[2]; } } } setTimeout("prepos()",10); } function Start(){ swirl(),prepos() } window.onload=Start; // --> </script> </head> <body> </body> </html>
<meta http-equiv = "content-type" content = "text/html; charset = Windows-1251"> <SCRIPT LANGUAGE="JavaScript"> function signs() { var start = 1901, birthyear = document.zodiac.year.value, date=document.zodiac.date.value, month=document.zodiac.month.selectedIndex; with (document.zodiac.sign){ if (month == 1 && date >=20 || month == 2 && date <=18) {value = "Водолей";} if (month == 1 && date > 31) {value = "Ошибка!";} if (month == 2 && date >=19 || month == 3 && date <=20) {value = "Рыбы";} if (month == 2 && date > 29) {value = "Ошибка!";} if (month == 3 && date >=21 || month == 4 && date <=19) {value = "Овен";} if (month == 3 && date > 31) {value = "Ошибка!";} if (month == 4 && date >=20 || month == 5 && date <=20) {value = "Телец";} if (month == 4 && date > 30) {value = "Ошибка!";} if (month == 5 && date >=21 || month == 6 && date <=21) {value = "Близнецы";} if (month == 5 && date > 31) {value = "Ошибка!";} if (month == 6 && date >=22 || month == 7 && date <=22) {value = "Рак";} if (month == 6 && date > 30) {value = "Ошибка!";} if (month == 7 && date >=23 || month == 8 && date <=22) {value = "Лев";} if (month == 7 && date > 31) {value = "Ошибка!";} if (month == 8 && date >=23 || month == 9 && date <=22) {value = "Дева";} if (month == 8 && date > 31) {value = "Ошибка!";} if (month == 9 && date >=23 || month == 10 && date <=22) {value = "Весы";} if (month == 9 && date > 30) {value = "Ошибка!";} if (month == 10 && date >=23 || month == 11 && date <=21) {value = "Скорпион";} if (month == 10 && date > 31) {value = "Ошибка!";} if (month == 11 && date >=22 || month == 12 && date <=21) {value = "Стрелец";} if (month == 11 && date > 30) {value = "Ошибка!";} if (month == 12 && date >=22 || month == 1 && date <=19) {value = "Козерог";} if (month == 12 && date > 31) {value = "Ошибка!";} } x = (start - birthyear) % 12 with (document.zodiac.csign){ if (x == 1 || x == -11) {value = "Крыса";} if (x == 0) {value = "Бык";} if (x == 11 || x == -1) {value = "Тигр";} if (x == 10 || x == -2) {value = "Кролик";} if (x == 9 || x == -3) {value = "Дракон";} if (x == 8 || x == -4) {value ="Змея";} if (x == 7 || x == -5) {value = "Лошадь";} if (x == 6 || x == -6) {value = "Овца";} if (x == 5 || x == -7) {value = "Обезьяна";} if (x == 4 || x == -8) {value = "Петух";} if (x == 3 || x == -9) {value = "Собака";} if (x == 2 || x == -10) {value = "Кабан";} }} </script> <form name="zodiac"> <center> <table bgcolor="#60d4ff" border="2" bordercolor="#000000" rules="none" cellspacing="0" cellpadding="4"> <tr><td><b><i>Year</i></b></td> <td><div align="right"><input type="text" size="10" name="year" value="Год" onClick=value=""></div></td> <td> </td> <tr><td><b><i>Месяц</i></b></td> <td><div align="right"> <select name="month"> <option value="x">Месяц</option> <option value="1">Январь</option> <option value="2">Февраль</option> <option value="3">Март</option> <option value="4">Апрель</option> <option value="5">Май</option> <option value="6">Июнь</option> <option value="7">Июль</option> <option value="8">Август</option> <option value="9">Сентябрь</option> <option value="10">Октябрь</option> <option value="11">Ноябрь</option> <option value="12">Декабрь</option> </select></div></td> <td> </td></tr> <tr><td><b><i>День</i></b></td> <td><div align="right"><input type="text" name="date" value="День" size="3" onClick=value=""></td> <td><input type="button" value="Расчет" onClick="signs()"></div></td></tr> <tr><td><b><i>Знак Зодиака:</i></b></td> <td><div align="right"><input type="text" name="sign" size="12" value="" align="right"></div</td></tr> <td> </td></tr> <tr><td><b><i>Восточный календарь:</i></b></td> <td><div align="right"><input type="text" name="csign" size="12"></div></td> <td> </td></tr> </table> </center> </form>
<HTML> <HEAD> <script> <!-- /* Поменяйте варианты правильных ответов */ var ans = new Array; var done = new Array; var score = 0; ans[1] = "c"; ans[2] = "a"; ans[3] = "b"; ans[4] = "b"; ans[5] = "d"; ans[6] = "c"; ans[7] = "c"; ans[8] = "c"; ans[9] = "d"; ans[10] = "a"; function Engine(question, answer) { if (answer != ans[question]) { if (!done[question]) { done[question] = -1; alert("Ошибка!\n\nВаш счет: " + score); } else { alert("Вы уже отвечали на этот вопрос!"); } } else { if (!done[question]) { done[question] = -1; score++; alert("Правильно!\n\nВаш счет: " + score); } else { alert("Вы уже отвечали на этот вопрос!"); } } } function NextLevel () { if (score > 10) { alert("Cheater!"); } /* Если у вас другое количество вопросов измените цифры на свои */ if (score >= 7 && score <= 11) /* Измените адрес страницы на свой собственный */ { self.location="http://www.cgi.ru" } else { alert("Доступ закрыт! Вы должны были правильно ответить на 7 вопросов.") } } //--> </script> </HEAD> <style type="text/css"> A:link { color: #003399; text-decoration: underline } A:visited { color:#003399; text-decoration: underline } A:hover { color:#003399; text-decoration: none } .copy { font: 8pt/normal Verdana, Arial, Helvetica, sans-serif; text-transform: super; text-decoration: none; color: #333333} .copy1 { font: bold 10pt/normal Verdana, Arial, Helvetica, sans-serif; text-transform: super; text-decoration: none; color: #333333 } .copy2 { font: 9pt/normal Verdana, Arial, Helvetica, sans-serif; text-transform: super; text-decoration: none; color: #333333 } </style> <BODY> <table border="0" width="500" cellspacing="2" cellpadding="2"> <tr> <td class="copy2" valign="top"> <br><br><br> <form> <b>1. Кто разработал игру <i>WarCraft 2</i>?</b><p> <input type=radio value="a" onClick="Engine(1, this.value)">Sierra On-Line<br> <input type=radio value="b" onClick="Engine(1, this.value)">BlueByte<br> <input type=radio value="c" onClick="Engine(1, this.value)">Blizzard Entertainment<br> <input type=radio value="d" onClick="Engine(1, this.value)">Microsoft<p> <b>2. Эта игра получили награду журнала <i>PC Gamer</i> в 1994 году.</b><p> <input type=radio value="a" onClick="Engine(2, this.value)">Doom<br> <input type=radio value="b" onClick="Engine(2, this.value)">Hexen<br> <input type=radio value="c" onClick="Engine(2, this.value)">Descent<br> <input type=radio value="d" onClick="Engine(2, this.value)">Wolfenstein 3D<p> <b>3. Первая игра о сражениях в галактике называется...</b><p> <input type=radio value="a" onClick="Engine(3, this.value)">Master of Orion<br> <input type=radio value="b" onClick="Engine(3, this.value)">Star Control<br> <input type=radio value="c" onClick="Engine(3, this.value)">StarCraft<br> <input type=radio value="d" onClick="Engine(3, this.value)">Star Trek<p> <b>4. Эта игра признана классикой графического оформления.</b><p> <input type=radio value="a" onClick="Engine(4, this.value)">King's Quest<br> <input type=radio value="b" onClick="Engine(4, this.value)">Mystery House<br> <input type=radio value="c" onClick="Engine(4, this.value)">Time Zone<br> <input type=radio value="d" onClick="Engine(4, this.value)">Mission: Asteriod<p> <b>5. Первой real-time стратегией была: </b><p> <input type=radio value="a" onClick="Engine(5, this.value)">WarCraft: Orcs & Humans<br> <input type=radio value="b" onClick="Engine(5, this.value)">Command & Conquer<br> <input type=radio value="c" onClick="Engine(5, this.value)">Dune<br> <input type=radio value="d" onClick="Engine(5, this.value)">Dune 2<p> <b>6. В 1996 году Quake получил награду за что: </b><p> <input type=radio value="a" onClick="Engine(6, this.value)">Лучшая игра. Лучшая Action игра<br> <input type=radio value="b" onClick="Engine(6, this.value)">Лучшая Action игра, Лучшая многопользовательская<br> <input type=radio value="c" onClick="Engine(6, this.value)">Лучшие звуковые эффекты, Лучшая многопользовательская<br> <input type=radio value="d" onClick="Engine(6, this.value)">Все вместе<p> <b>7. Самая продаваемая игра за все время: </b><p> <input type=radio value="a" onClick="Engine(7, this.value)">WarCraft 2<br> <input type=radio value="b" onClick="Engine(7, this.value)">C&C: Red Alert<br> <input type=radio value="c" onClick="Engine(7, this.value)">Sim City<br> <input type=radio value="d" onClick="Engine(7, this.value)">King's Quest 5<p> <b>8. Самая обоснованная стратегическая игра: </b><p> <input type=radio value="a" onClick="Engine(8, this.value)">C&C: Red Alert<br> <input type=radio value="b" onClick="Engine(8, this.value)">Might and Magic 3<br> <input type=radio value="c" onClick="Engine(8, this.value)">Heroes of Might and Magic<br> <input type=radio value="d" onClick="Engine(8, this.value)">Daggerfall: The Elder Scrolls<p> <b>9. В 1996 году лучшей игрой стала: </b><p> <input type=radio value="a" onClick="Engine(9, this.value)">C&C: Red Alert<br> <input type=radio value="b" onClick="Engine(9, this.value)">Tomb Raider<br> <input type=radio value="c" onClick="Engine(9, this.value)">Quake<br> <input type=radio value="d" onClick="Engine(9, this.value)">Civilization 2<p> <b>10. Игра <i>Diablo</i> это: </b><p> <input type=radio value="a" onClick="Engine(10, this.value)">Ролевая игра<br> <input type=radio value="b" onClick="Engine(10, this.value)">2D Action игра<br> <input type=radio value="c" onClick="Engine(10, this.value)">3D Action игра<br> <input type=radio value="d" onClick="Engine(10, this.value)">Симулятор<p> <center> <input type=button onClick="NextLevel()" value="Перейти на следующий уровень"> </center> </form> <br><br><br> </td> </tr> </table> </BODY> </HTML>
<html> <head> <style> body{font-family:arial;} table{background:black;position:absolute;} a{color:black;text-decoration:none;font:bold} a:hover{color:#606060} td.menu{background:lightblue} table.topnav { font-size:80%; top:0; left:0; } table.menu { font-size:100%; bottom:0; z-index:-1; } </style> <script type="text/javascript"> var i=0 var intHide function show() { if (i>-100) { i=i-1 document.all("menu").style.bottom=i } } function showmenu() { clearInterval(intHide) intShow=setInterval("show()",10) } function hide() { if (i<0) { i=i+1 document.all("menu").style.bottom=i } } function hidemenu() { clearInterval(intShow) intHide=setInterval("hide()",10) } </script> </head> <body> <table class="topnav" width="150"> <tr bgcolor="#FF8080"> <td onmouseover="showmenu()" onmouseout="hidemenu()"> <a href="javascript:if(confirm('http://www.w3schools.com/default.asp \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://www.w3schools.com/default.asp'" tppabs="http://www.w3schools.com/default.asp"> MENU</a><br /> <table class="menu" id="menu" width="100%"> <tr><td class="menu"><a href="javascript:if(confirm('http://www.w3schools.com/html/default.asp \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://www.w3schools.com/html/default.asp'" tppabs="http://www.w3schools.com/html/default.asp">HTML</a></td></tr> <tr><td class="menu"><a href="javascript:if(confirm('http://www.w3schools.com/xhtml/default.asp \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://www.w3schools.com/xhtml/default.asp'" tppabs="http://www.w3schools.com/xhtml/default.asp">XHTML</a></td></tr> <tr><td class="menu"><a href="javascript:if(confirm('http://www.w3schools.com/css/default.asp \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://www.w3schools.com/css/default.asp'" tppabs="http://www.w3schools.com/css/default.asp">CSS</a></td></tr> <tr><td class="menu"><a href="javascript:if(confirm('http://www.w3schools.com/xml/default.asp \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://www.w3schools.com/xml/default.asp'" tppabs="http://www.w3schools.com/xml/default.asp">XML</a></td></tr> <tr><td class="menu"><a href="javascript:if(confirm('http://www.w3schools.com/xsl/default.asp \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://www.w3schools.com/xsl/default.asp'" tppabs="http://www.w3schools.com/xsl/default.asp">XSL</a></td></tr> </table> </td> </tr> </table> <br /> <p>Mouse over MENU to see the menu options</p> </body> </html>
<!-- JavaScript that demonstrates primitive pasword-protection for a web page --> <!-- USAGE: Put the script in the begining of the BODY section --> <script language="JavaScript"> <!-- This Script And Over 400 Others Found At --!> <!-- Java City 2000 ********** --!> <!-- //The page they go to if they get it right. var goodURL = "correct.html"; alert("Доступ на страницу ограничен! " + "Чтобы просмотреть информацию от этого веб-узла, " + "выдолжны ввести логин и пароль."); var username = prompt("Введите Ваш логин -",""); var password = prompt("Введите ваш пароль - ",""); if (username == null || password == null) { alert("Ошибка доступа: Введите логин и пароль") history.back(); } else { var combo = username + password var total = combo.toLowerCase() //Тут введиите правльные логины и пароли if (total == "Правльный логин и пароль 1" || total == "Параильный логин и пароль 2" || total == "Правильный логин и пароль 3") { alert("Доступ открыт"); location = goodURL; } else { alert("Ошибка доступа: Неправильный логин или пароль"); history.back(); } } //--> </script>
<!-- JavaScript that displays last modification date of the page --> <!-- USAGE: Put the script anywhere in the BODY section --> <script language="JavaScript" type="text/javascript"> <!-- document.write("Последнее использование страницы" + document.lastModified) // --> </script>
<html> <head> <title>След за курсором.</title> </head> <body> <div id="trailSprite1" style="height: 28px; POSITION: absolute; width: 36px; z-index: 100"><img border="0" height="28" name="trailSprite1img" src="../img/blank.gif" width="36"></div> <div id="trailSprite2" style="height: 28px; POSITION: absolute; width: 26px; z-index: 10"><img border="0" height="28" name="trailSprite2img" src="../img/blank.gif" width="36"></div> <div id="trailSprite3" style="height: 28px; POSITION: absolute; width: 36px; z-index: 10"><img border="0" height="28" name="trailSprite3img" src="../img/blank.gif" width="36"></div> <div id="trailSprite4" style="height: 28px; POSITION: absolute; width: 36px; z-index: 10"><img border="0" height=28 name="trailSprite4img" src="../img/blank.gif" width="36"></div> <div id="trailSprite5" style="height: 28px; POSITION: absolute; width: 36px; z-index: 10"><img border="0" height="28" name="trailSprite5img" src="../img/blank.gif" width="36"></div> <script language="Javascript1.2"> var isNS = (navigator.appName == "Netscape"); layerRef = (isNS) ? "document" : "document.all"; styleRef = (isNS) ? "" : ".style"; var queue = new Array(); var NUM_OF_TRAIL_PARTS = 5 for (x=1; x < 6; x++) { eval("trailSpriteFrame" + x + " = new Image(28,36);"); eval("trailSpriteFrame" + x + ".src = '../img/jpg" + x + ".gif';"); } function trailSpriteObj(anID) { this.trailSpriteID = "trailSprite" + anID; this.imgRef = "trailSprite" + anID + "img"; this.currentFrame = 1; this.animateTrailSprite = animateTrailSprite; } function animateTrailSprite() { if (this.currentFrame <6 ) { if (isNS) { eval("document." + this.trailSpriteID +".document['"+ this.imgRef + "'].src = trailSpriteFrame" + this.currentFrame + ".src"); } else { eval("document['" + this.imgRef + "'].src = trailSpriteFrame" + this.currentFrame + ".src"); } this.currentFrame ++; } else { eval(layerRef + '.' + this.trailSpriteID + styleRef + '.visibility = "hidden"'); } } function processAnim() { for(x=0; x < NUM_OF_TRAIL_PARTS; x++) queue[x].animateTrailSprite(); } function processMouse(e) { currentObj = shuffleQueue(); if (isNS) { eval("document." + currentObj + ".left = e.pageX - 10 ;"); eval("document." + currentObj + ".top = e.pageY + 10;"); } else { eval("document.all." + currentObj + ".style.pixelLeft = event.clientX + document.body.scrollLeft - 10 ;"); eval("document.all." + currentObj + ".style.pixelTop = event.clientY + document.body.scrollTop + 10;"); } } function shuffleQueue() { lastItemPos = queue.length - 1; lastItem = queue[lastItemPos]; for (i = lastItemPos; i>0; i--) queue[i] = queue[i-1]; queue[0] = lastItem; queue[0].currentFrame = 1; eval(layerRef + '.' + queue[0].trailSpriteID + styleRef + '.visibility = "visible"'); return queue[0].trailSpriteID; } function init() { for(x=0; x<NUM_OF_TRAIL_PARTS; x++) queue[x] = new trailSpriteObj(x+1) ; if (isNS) { document.captureEvents(Event.MOUSEMOVE); } document.onmousemove = processMouse; setInterval("processAnim();",5); } window.onload = init; </script> </body> </html>
<html> <head> <title>Санта Клаус с оленями скользят за курсором.</title> </head> <body> <div id="span0" style="position:absolute;visibility:hidden;"> <img src="../img/elch.gif"></div> <div id="span1" style="position:absolute;visibility:hidden;"> <img src="../img/elch.gif"></div> <div id="span2" style="position:absolute;visibility:hidden;"> <img src="../img/elch.gif"></div> <div id="span3" style="position:absolute;visibility:hidden;"> <img src="../img/elch.gif"></div> <div id="span4" style="position:absolute;visibility:hidden;"> <img src="../img/elch.gif"></div> <div id="span5" style="position:absolute;visibility:hidden;"> <img src="../img/elch.gif"></div> <div id="span6" style="position:absolute;visibility:hidden;"> <img src="../img/zuegel.gif"></div> <div id="span7" style="position:absolute;visibility:hidden;"> <img src="../img/santaclaus.gif"></div> <div id="span8" style="position:absolute;visibility:hidden;"> </div> <script language="JavaScript">var step=8 var stepbasic=8 var numberofimages=8 var spacebetweenimgs=32 var x,y var flag=0 var xpos=new Array() for (i=0;i<=8;i++) { xpos[i]=-100 } var ypos=new Array() for (i=0;i<=numberofimages;i++) { ypos[i]=-100 } function handlerMM(e) { x = (document.layers) ? e.pageX : document.body.scrollLeft+event.clientX y = (document.layers) ? e.pageY : document.body.scrollTop+event.clientY flag=1 } function initiatetracker() { if (document.all) { for (i=0; i<numberofimages; i++) { var thisspan=eval("span"+(i)+".style") thisspan.posLeft=xpos[i] thisspan.posTop=ypos[i] thisspan.visibility="visible" } makesnake() } if (document.layers) { for (i=0; i<numberofimages; i++) { var thisspan=eval("document.span"+i) thisspan.left=xpos[i] thisspan.top=ypos[i] thisspan.visibility="visible" } makesnake() } } function makesnake() { if (flag==1 && document.all) { for (i=numberofimages; i>=1; i--) { xpos[i]=xpos[i-1]+spacebetweenimgs ypos[i]=ypos[i-1] } xpos[0]=x+stepbasic ypos[0]=y for (i=0; i<numberofimages; i++) { var thisspan = eval("span"+(i)+".style") thisspan.posLeft=xpos[i] thisspan.posTop=ypos[i] } } else if (flag==1 && document.layers) { for (i=numberofimages; i>=1; i--) { xpos[i]=xpos[i-1]+spacebetweenimgs ypos[i]=ypos[i-1] } xpos[0]=x+stepbasic ypos[0]=y for (i=0; i<numberofimages; i++) { var thisspan = eval("document.span"+i) thisspan.left=xpos[i] thisspan.top=ypos[i] } } var timer=setTimeout("makesnake()",30) } if (document.layers){ document.captureEvents(Event.MOUSEMOVE); } document.onmousemove=handlerMM; window.onload=initiatetracker </script> </body> </html>
<html> <head> <title>Часы круглые</title> </head> <body> <SCRIPT language=JavaScript> dCol='0099FF';//Цвет календаря. fCol='00FF00';//Цвет цифреблата. sCol='FF0000';//Цвет секундной стрелки. mCol='FFFF00';//Цвет минутной стрелки. hCol='FFFF00';//Цвет часовой стрелки. ClockHeight=40; ClockWidth=40; ClockFromMouseY=0; ClockFromMouseX=100; /*Календарь дни недели месяца, при необходимости можно задать другой язык и другой текст*/ d=new Array("Сегодня воскресенье","Сегодня понедельник","Сегодня вторник","Сегодня среда","Сегодня четверг","Сегодня пятница","Сегодня субота"); m=new Array("января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"); date=new Date(); day=date.getDate(); year=date.getYear(); if (year < 2000) year=year+1900; TodaysDate=" "+d[date.getDay()]+" "+day+" "+m[date.getMonth()]+" "+year; D=TodaysDate.split(''); H='...'; H=H.split(''); M='....'; M=M.split(''); S='.....'; S=S.split(''); Face='1 2 3 4 5 6 7 8 9 10 11 12'; //font='Arial'; font='Verdana'; size=1; speed=0.6; ns=(document.layers); ie=(document.all); Face=Face.split(' '); n=Face.length; a=size*10; ymouse=0; xmouse=0; scrll=0; props="<font face="+font+" size="+size+" color="+fCol+"><B>"; props2="<font face="+font+" size="+size+" color="+dCol+"><B>"; Split=360/n; Dsplit=360/D.length; HandHeight=ClockHeight/4.5 HandWidth=ClockWidth/4.5 HandY=-7; HandX=-2.5; scrll=0; step=0.06; currStep=0; y=new Array();x=new Array();Y=new Array();X=new Array(); for (i=0; i < n; i++){y[i]=0;x[i]=0;Y[i]=0;X[i]=0} Dy=new Array();Dx=new Array();DY=new Array();DX=new Array(); for (i=0; i < D.length; i++){Dy[i]=0;Dx[i]=0;DY[i]=0;DX[i]=0} if (ns){ for (i=0; i < D.length; i++) document.write('<layer name="nsDate'+i+'" top=0 left=0 height='+a+' width='+a+'><center>'+props2+D[i]+'</font></center></layer>'); for (i=0; i < n; i++) document.write('<layer name="nsFace'+i+'" top=0 left=0 height='+a+' width='+a+'><center>'+props+Face[i]+'</font></center></layer>'); for (i=0; i < S.length; i++) document.write('<layer name=nsSeconds'+i+' top=0 left=0 width=15 height=15><font face=Arial size=3 color='+sCol+'><center><b>'+S[i]+'</b></center></font></layer>'); for (i=0; i < M.length; i++) document.write('<layer name=nsMinutes'+i+' top=0 left=0 width=15 height=15><font face=Arial size=3 color='+mCol+'><center><b>'+M[i]+'</b></center></font></layer>'); for (i=0; i < H.length; i++) document.write('<layer name=nsHours'+i+' top=0 left=0 width=15 height=15><font face=Arial size=3 color='+hCol+'><center><b>'+H[i]+'</b></center></font></layer>'); } if (ie){ document.write('<div id="Od" style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (i=0; i < D.length; i++) document.write('<div id="ieDate" style="position:absolute;top:0px;left:0;height:'+a+';width:'+a+';text-align:center">'+props2+D[i]+'</B></font></div>'); document.write('</div></div>'); document.write('<div id="Of" style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (i=0; i < n; i++) document.write('<div id="ieFace" style="position:absolute;top:0px;left:0;height:'+a+';width:'+a+';text-align:center">'+props+Face[i]+'</B></font></div>'); document.write('</div></div>'); document.write('<div id="Oh" style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (i=0; i < H.length; i++) document.write('<div id="ieHours" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+hCol+';text-align:center;font-weight:bold">'+H[i]+'</div>'); document.write('</div></div>'); document.write('<div id="Om" style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (i=0; i < M.length; i++) document.write('<div id="ieMinutes" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+mCol+';text-align:center;font-weight:bold">'+M[i]+'</div>'); document.write('</div></div>') document.write('<div id="Os" style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (i=0; i < S.length; i++) document.write('<div id="ieSeconds" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+sCol+';text-align:center;font-weight:bold">'+S[i]+'</div>'); document.write('</div></div>') } (ns)?window.captureEvents(Event.MOUSEMOVE):0; function Mouse(evnt){ ymouse = (ns)?evnt.pageY+ClockFromMouseY-(window.pageYOffset):event.y+ClockFromMouseY; xmouse = (ns)?evnt.pageX+ClockFromMouseX:event.x+ClockFromMouseX; } (ns)?window.onMouseMove=Mouse:document.onmousemove=Mouse; function ClockAndAssign(){ time = new Date (); secs = time.getSeconds(); sec = -1.57 + Math.PI * secs/30; mins = time.getMinutes(); min = -1.57 + Math.PI * mins/30; hr = time.getHours(); hrs = -1.575 + Math.PI * hr/6+Math.PI*parseInt(time.getMinutes())/360; if (ie){ Od.style.top=window.document.body.scrollTop; Of.style.top=window.document.body.scrollTop; Oh.style.top=window.document.body.scrollTop; Om.style.top=window.document.body.scrollTop; Os.style.top=window.document.body.scrollTop; } for (i=0; i < n; i++){ var F=(ns)?document.layers['nsFace'+i]:ieFace[i].style; F.top=y[i] + ClockHeight*Math.sin(-1.0471 + i*Split*Math.PI/180)+scrll; F.left=x[i] + ClockWidth*Math.cos(-1.0471 + i*Split*Math.PI/180); } for (i=0; i < H.length; i++){ var HL=(ns)?document.layers['nsHours'+i]:ieHours[i].style; HL.top=y[i]+HandY+(i*HandHeight)*Math.sin(hrs)+scrll; HL.left=x[i]+HandX+(i*HandWidth)*Math.cos(hrs); } for (i=0; i < M.length; i++){ var ML=(ns)?document.layers['nsMinutes'+i]:ieMinutes[i].style; ML.top=y[i]+HandY+(i*HandHeight)*Math.sin(min)+scrll; ML.left=x[i]+HandX+(i*HandWidth)*Math.cos(min); } for (i=0; i < S.length; i++){ var SL=(ns)?document.layers['nsSeconds'+i]:ieSeconds[i].style; SL.top=y[i]+HandY+(i*HandHeight)*Math.sin(sec)+scrll; SL.left=x[i]+HandX+(i*HandWidth)*Math.cos(sec); } for (i=0; i < D.length; i++){ var DL=(ns)?document.layers['nsDate'+i]:ieDate[i].style; DL.top=Dy[i] + ClockHeight*1.5*Math.sin(currStep+i*Dsplit*Math.PI/180)+scrll; DL.left=Dx[i] + ClockWidth*1.5*Math.cos(currStep+i*Dsplit*Math.PI/180); } currStep-=step; } function Delay(){ scrll=(ns)?window.pageYOffset:0; Dy[0]=Math.round(DY[0]+=((ymouse)-DY[0])*speed); Dx[0]=Math.round(DX[0]+=((xmouse)-DX[0])*speed); for (i=1; i < D.length; i++){ Dy[i]=Math.round(DY[i]+=(Dy[i-1]-DY[i])*speed); Dx[i]=Math.round(DX[i]+=(Dx[i-1]-DX[i])*speed); } y[0]=Math.round(Y[0]+=((ymouse)-Y[0])*speed); x[0]=Math.round(X[0]+=((xmouse)-X[0])*speed); for (i=1; i < n; i++){ y[i]=Math.round(Y[i]+=(y[i-1]-Y[i])*speed); x[i]=Math.round(X[i]+=(x[i-1]-X[i])*speed); } ClockAndAssign(); setTimeout('Delay()',20); } if (ns||ie)window.onload=Delay; </SCRIPT> </body> </html>
<html> <head> <title>Время в разных городах.</title> <style type="text/css"> <!-- .timestyle { position:absolute; left:100px; top:100px; font-size:8pt; color:#ffff00; background-color:#006600; } --> </style> <script language=javaScript> <!--// Beginning of JavaScript - var worldtime = new Array() worldtime[0]="London,0" worldtime[1]="Berlin,1" worldtime[2]="Paris,1" worldtime[3]="Johannesburg,2" worldtime[4]="Kairo,2" worldtime[5]="Baghdad,3" worldtime[6]="Moscow,4" worldtime[7]="Beijing,8" worldtime[8]="Hong Kong,8" worldtime[9]="Perth,8" worldtime[10]="Tokyo,9" worldtime[11]="Sydney,11" worldtime[12]="Azores,-1" worldtime[13]="Rio de Janheiro,-2" worldtime[14]="Buenos Aires,-3" worldtime[15]="Lima,-5" worldtime[16]="New York,-5" worldtime[17]="Chicago,-6" worldtime[18]="Mexico City,-6" worldtime[19]="Denver,-7" worldtime[20]="San Francisco,-8" worldtime[20]="Honolulu,-10" var hours var shifthours var minutes var seconds var localhours var pause=2000 var thisplace var thisline="" var showmenu=1 function showtime() { for (i=0; i<=worldtime.length-1;i++) { thisplace=worldtime[i].split(",") thistime= new Date() hours=thistime.getUTCHours() hours=eval(hours) shifthours=eval(thisplace[1]) localhours=eval(shifthours+hours) if (localhours <0) {localhours=24+localhours} if (localhours >=24) {localhours=localhours-24} minutes=thistime.getUTCMinutes() seconds=thistime.getUTCSeconds() if (thisplace[0]=='Delhi') { minutes=eval(minutes+30) if (minutes>=60) { minutes=eval(minutes-60) localhours=eval(localhours+1) } } if (eval(minutes) < 10) {minutes="0"+minutes} if (eval(seconds) < 10) {seconds="0"+seconds} if (eval(localhours) < 10) {localhours="0"+localhours} thisline+=localhours+":"+minutes+":"+seconds+" "+thisplace[0]+"<br>" } if (document.all) { timediv.innerHTML=thisline thisline="" var timer=setTimeout("showtime()",1000) } if (document.layers) { document.timediv.document.write("<span id='nn' class='timestyle'>") document.timediv.document.write(thisline) document.timediv.document.write("</span>") document.timediv.document.close() thisline="" } } function dblclick() { if (document.all && showmenu==1) { document.all.timediv.style.visibility="visible" document.all.timediv.style.posLeft=x document.all.timediv.style.posTop=y showtime() } if (document.layers && showmenu==1) { document.timediv.visibility="visible" document.timediv.left=x-40 document.timediv.top=y-80 showtime() } if (document.all && showmenu!=1) { document.all.timediv.style.visibility="hidden" } if (document.layers && showmenu!=1) { document.timediv.visibility="hidden" } showmenu=showmenu*-1 } if (document.layers) { document.captureEvents(Event.ONDBLCLICK); } document.ondblclick=dblclick; if (document.layers){ document.captureEvents(Event.MOUSEMOVE); } document.onmousemove = handlerMM; function handlerMM(e){ x = (document.layers) ? e.pageX : event.clientX y = (document.layers) ? e.pageY : event.clientY } // - End of JavaScript - --> </script> </head> <body> <div id="timediv" class="timestyle"></div> </body> </html>
<html> <head> <title>Часы фоном. Можно менять размер, расположение и цветовую гамму часов.</title> </head> <script language=javaScript> <!-- function clockon() { thistime= new Date() var hours=thistime.getHours() var minutes=thistime.getMinutes() var seconds=thistime.getSeconds() if (eval(hours) <10) {hours="0"+hours} if (eval(minutes) < 10) {minutes="0"+minutes} if (seconds < 10) {seconds="0"+seconds} thistime = hours+":"+minutes+":"+seconds if(document.all) { bgclocknoshade.innerHTML=thistime bgclockshade.innerHTML=thistime } if(document.layers) { document.bgclockshade.document.write('<div id="bgclockshade" style="position:absolute;visibility:visible;font-family:Verdana;color:FFAAAAA;font-size:120px;top:10px;left:12px">'+thistime+'</div>') document.bgclocknoshade.document.write('<div id="bgclocknoshade" style="position:absolute;visibility:visible;font-family:Verdana;color:DDDDDD;font-size:120px;top:10px;left:10px">'+thistime+'</div>') document.close() } var timer=setTimeout("clockon()",200) } // - End of JavaScript - --> </script> </head> <body onLoad=""> <div id="bgclockshade" style="position:absolute; visibility:visible; font-family:Verdana; color:#006600; font-size:36px; top:10px; left:290px"></div> <div id="bgclocknoshade" style="position:absolute; visibility:visible;font-family:Verdana; color:#009900; font-size:36px; top:9px; left:287px"></div> <div id="mainbody" style="position:absolute; visibility:visible"></div> </body> </html>
<html> <head> <script language="JavaScript1.2"><!--// self.focus(); var travel=true var hotkey=108 var destination="http://логин чата.mpchat.com" if (document.layers) document.captureEvents(Event.KEYPRESS) function backhome(e){ if (document.layers){ if (e.which==hotkey&&travel) window.location=destination } else if (document.all){ if (event.keyCode==hotkey) window.location=destination } } document.onkeypress=backhome //--></script> </head> <body> Для перехода на главную страницу сайта нажмите клавишу "L" . </body> </html>