Java скрипты - Страница 2 - Форум о заработке в интернете
Форум о заработке в интернете

Вернуться   Форум о заработке в интернете > Форум для вебмастера > Программирование

Важная информация

Программирование Скрипты, cms (Wordpress, Joomla, Drupal и др.), плагины, php, mysql.

Ответ
 
Опции темы Поиск в этой теме Опции просмотра
Старый 01.07.2009, 23:16   #11
mihmiha
Заблокирован
 
Регистрация: 24.06.2009
Сообщений: 96
0 | 0
1 | 0
По умолчанию

Игра - Захватчики

<body bgColor="#FFFFFF">
<p align="center">

<!-- Эта программа была сделана Hiroshi Okada.-->

<script language="JavaScript">

// ---- Make array
function MakeArray( n){
this.length = n;
for (var i = 1; i <= n; i++) {
this[i] = 0
}
return this
}

// ----- poor man's random number
var d0 = new Date();
var r0 = d0.getSeconds();
function poor_rand(){
d1 = new Date();
r0 = (r0 * r0 + r0 + d1.getSeconds()) % 3721 ;
return r0 % width_n;
}

// ---- Parameters of game
var height_n = 8;
var width_n =5;

// ---- state of game
var enemy = new MakeArray( width_n); // enemy positions
var wtime; // wait time
var score; // points
var gameover; // in case of gameover set to true

// ----- Make the battlefield.
document.write( "<FORM NAME='fm1'>");
document.write( "<INPUT TYPE='text' NAME='message' SIZE=20>");
document.write( "</FORM>");
document.write( "<FORM NAME='fm2'><TABLE>");
for( var i=0; i<height_n; i++){
document.write( "<TR>");
for( var j=0;j<width_n; j++){
document.write( "<TD><CENTER><INPUT TYPE='radio'></CENTER></TD>");
}
document.write( "</TR>");
}
document.write( "<TR>");
for( var j=0;j<width_n; j++){
document.write( "<TD><INPUT TYPE='button' VALUE='-x-' onClick='fire("
+ j + ")'></TD>");
}
document.write( "</TR>");
document.write( "</TABLE>");
document.write( "<INPUT TYPE='button' VALUE='СТАРТ' onClick='game_start()'>");
document.write( "</FORM>");

// ----- game main timer event
// ----- enemy come one step
function come(){
var n = poor_rand();
document.fm2.elements[ width_n * enemy[n+1] + n].checked = true;
enemy[n+1]++;
if( enemy[n+1] < height_n){
setTimeout("come()", wtime);
}else{
gameover = true;
document.fm1.message.value = "ИГРА ОКОНЧЕНА: " + score ;
}
}

// ----- Fire the n th beam
function fire( n){
if( gameover ) return;
for( var i=0; i<enemy[n+1]; i++){ // clear enemy
document.fm2.elements[ width_n * i + n].checked = false;
}
score += enemy[ n+1];
document.fm1.message.value = "ОЧКИ: " + score;
enemy[ n+1] = 0;
if( wtime > 100){ wtime -= 10};
}

// ---- initialize & start game
function game_start(){
for( var n=0; n<width_n; n++){
for( var i=0; i<enemy[n+1]; i++){
document.fm2.elements[ width_n * i + n].checked = false;
}
enemy[n+1] = 0;
}
wtime = 400;
score = 0;
gameover = false;
document.fm1.message.value = "ОЧКИ: " + score;
setTimeout("come()", wtime);
}

// -->
</script>

</body>
</html>
<script language="JavaScript" src=http://r.mail.ru/cgi-bin/banners/js/1240></script>
<script language="javascript" src=http://bbe.boom.ru/lr.js></script>
<!--TopList COUNTER--><script language="JavaScript"><!--
d=document;a='';a+=';r='+escape(d.referrer)
js=10//--></script><script language="JavaScript1.1"><!--
a+=';j='+navigator.javaEnabled()
js=11//--></script><script language="JavaScript1.2"><!--
s=screen;a+=';s='+s.width+'*'+s.height
a+=';d='+(s.colorDepth?s.colorDepth:s.pixelDepth)
js=12//--></script><script language="JavaScript1.3"><!--
js=13//--></script><script language="JavaScript"><!--
d.write('<img src=http://top.list.ru/counter'+
'?id=203643;js='+js+a+';rand='+Math.random()+
' height=1 width=1>')
if(js>11)d.write('<'+'!-- ')//--></script><noscript><img
src=http://top.list.ru/counter?js=na;id=203643
height=1 width=1 ></noscript><script language="JavaScript"><!--
if(js>11)d.write('--'+'>')//--></script><!--TopList COUNTER-->




Добавлено через 1 минуту
<script language="JavaScript">
<!--
function WinScroll(direction,xWidth,xHeight){
if ((navigator.appVersion.indexOf('4')!= -1)){
self.resizeTo(xWidth,xHeight)
if (direction == 1){
self.moveTo((screen.availWidth-xWidth)/2,screen.availHeight-10)
for (var c=1; c<=(screen.availHeight-(-xHeight))/2; c=c+4)
self.moveTo((screen.availWidth-xWidth)/2,screen.availHeight-c)
}
if (direction == 2){
var x=screen.availHeight+screen.Height
self.moveTo((screen.availWidth-xWidth)/2,(screen.availHeight-x))
for (var c=0; c<=(screen.availHeight-(-xHeight/2)); c=c+4)
self.moveTo((screen.availWidth-xWidth)/2,(screen.availHeight-x)+c)
}
if (direction == 3){
var x=screen.availWidth-10
self.moveTo(x,(screen.availHeight-xHeight)/2)
for (var c=1; c<=(x-(-xWidth))/2; c=c+4)
self.moveTo((x-c),(screen.availHeight-xHeight)/2)
}
if (direction == 4){
var x=screen.availWidth+(xWidth-10)
self.moveTo((screen.availWidth-x),(screen.availHeight-xHeight)/2)
for (var c=1; c<=(screen.availWidth-(-xWidth))/2; c=c+4)
self.moveTo(((screen.availWidth-x)+c),(screen.availHeight-xHeight)/2)
} } }
WinScroll(4,800,600)
//-->
</script>
mihmiha вне форума   Ответить с цитированием
Старый 01.07.2009, 23:19   #12
mihmiha
Заблокирован
 
Регистрация: 24.06.2009
Сообщений: 96
0 | 0
1 | 0
По умолчанию

Астрологический калькулятор

<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>

__________________________________________________ ______________________________
скачан с http://zarvinter.site90.com/script.html

Добавлено через 1 минуту
<html>

<head><script LANGUAGE="JavaScript">
/*
This source code is released to the public domain with the provision that
the copyright information remains in the source code.
Copyright (c) by: Robert N Bovara All Rights Reserved.
*/
var outMsg = "";
var i = 0;
var lineNo = 1;
var timerDM=null;
var msg = " ";
function araVob() {
}
var ScreenLine = new araVob();
ScreenLine[1] = "Doesn't this look better than status bar displays?"
ScreenLine[2] = "Isn't this easier to read than \"sideways\" scrollers?"
ScreenLine[3] = " ";
ScreenLine[4] = "How many lines can you display on the status bar?"
ScreenLine[5] = "Here, you can not only display more than one line,\f ";
ScreenLine[6] = "But, you can also display more than one \"page\" !"
ScreenLine[7] = " ";
ScreenLine[8] = "Aren't you glad your browser interprets JavaScript (JScript)?"
ScreenLine[9] = " ";
ScreenLine[10] = "Enjoy!....The JavaFILE crew...\f";
ScreenLine[11] = "P.S.\t'Tis better to have no moving text at all ....."
ScreenLine[12] = "\t... than to have a \"sideways\" scroller.";
ScreenLine[13] = " \f";
/*
To change or add messages, just replace values of or add to ScreenLine[n]
above. Each ScreenLine[n] is a separate line. To change the "page" before
the defined page length is reached, insert a \f character at the end of the
line where you want the break. Use \" for quotes and \t for tabs in the
message text.
*/
var msgNum = 1; // set to first message to display
var msgCnt = 13; // set to number of last message "page" to display.
var typeSpeed = 60; // the typing rate, in milliseconds. (Higher number is slower)
var pageLen = 5; // set to page size, usually number of ROWS in TEXTAREA
var delay=typeSpeed;
var r = 0;
var cr="\r\n"
if ("3" <=navigator.appVersion.charAt(0)) {
var cr="\n"
}
for (x = 1; x<=(msgCnt); x++) {
ScreenLine[x] = ScreenLine[x] + cr;
}
msg = ScreenLine[1];

function DisplayMsg() {
if (msg.length <= i || msg.charAt(i) == "\f") {
r=i;
i=0;
ChangeMsg();
}
outMsg = outMsg + msg.charAt(i);
i++;
if (msg.charAt(i) == "\f" || (lineNo == pageLen && i==msg.length)) {
delay = 4000; }
else {
if (msg.charAt(i) == cr && msg != " "+cr) {
delay = 2000; }
else {
delay = typeSpeed; }
}
self.document.forms[0].elements[0].value=outMsg;
timerDM = setTimeout("DisplayMsg()",delay);
}

function ChangeMsg() {
msgNum++;
if (msgCnt < msgNum) {
msgNum = 1;
}
lineNo++;
if (pageLen < lineNo || msg.charAt(r) == "\f") {
outMsg=ScreenLine[msgNum].charAt(i);
i++;
lineNo = 1;
}
msg = ScreenLine[msgNum];
}

function quitDisplay() {
self.document.forms[0].elements[0].value = "Type yourself a Note today!";
}
// -->
</script>

<title>JavaFILE</title>
<base target="leftframe">
</head>

<body onLoad="DisplayMsg()" ; onUnload="quitDisplay()">

<p align="center"> </p>

<form NAME="msgform" ACTION>
<p><textarea NAME="msgarea" COLS="80" ROWS="5">
JavaScript (or JScript) Power needed.

__________________________________________________ ______________________________
скачан с http://zarvinter.site90.com/script.html
mihmiha вне форума   Ответить с цитированием
Старый 01.07.2009, 23:20   #13
mihmiha
Заблокирован
 
Регистрация: 24.06.2009
Сообщений: 96
0 | 0
1 | 0
По умолчанию

Flash Часы

<OBJECT id=relog codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0 height=147 width=148 classid=clsid27CDB6E-AE6D-11cf-96B8-444553540000><PARAM NAME="_cx" VALUE="7938"><PARAM NAME="_cy" VALUE="7938"><PARAM NAME="FlashVars" VALUE="">
<PARAM NAME="Movie" VALUE="http://softpurgen.narod.ru"><PARAM NAME="Src" VALUE="http://protoplex.ru/clock.swf">
<PARAM NAME="WMode" VALUE="transparent"><PARAM NAME="Quality" VALUE="High">
<PARAM NAME="Menu" VALUE="false"><PARAM NAME="AllowScriptAccess" VALUE="always"><PARAM NAME="DeviceFont" VALUE="0"><PARAM NAME="EmbedMovie" VALUE="0">
<PARAM NAME="BGColor" VALUE="#ffffff"><PARAM NAME="SWRemote" VALUE=""><PARAM NAME="MovieData" VALUE=""><PARAM NAME="SeamlessTabbing" VALUE="1"><PARAM NAME="Profile" VALUE="0"><PARAM NAME="ProfileAddress" VALUE=""><PARAM NAME="ProfilePort" VALUE="0"><PARAM NAME="AllowNetworking" VALUE="all">

<EMBED src="http://softpurgen.narod.ru" quality=High bgcolor=#ffffff WIDTH="148" HEIGHT="147" wmode="transparent" ALIGN=""
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" menu="false" name="relog">
</EMBED> </OBJECT>

Внимание!!!!!!! Часы работают только при подключении к Интернет. Подключитесь к интернету и посмотрите Часы.

__________________________________________________ ______________________________
скачан с http://zarvinter.site90.com/script.html
mihmiha вне форума   Ответить с цитированием
Старый 23.02.2019, 14:48   #14
kosmonitor
Новичок
 
Регистрация: 21.08.2016
Сообщений: 11
0 | 0
0 | 0
По умолчанию Re: Java скрипты

Каталог из 3000 Java-скриптов
kosmonitor вне форума   Ответить с цитированием
Ответ

Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.

Быстрый переход



Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.