Geri Dön   Forum Ti > Programlama Dilleri ve İnternet > Web Tasarım
Üye Ol Üye Listesi Takvim Forumları Okundu İşaretle

Web Tasarım İnternet sitesi ile ilgili kodlar, kaynaklar, ipuçları, uygulamalar ve diğer herşey.

Cevap
 
Konu Araçları
Eski 24.09.2007   #31 (permalink)
 
Katılma Tarihi: Şub 2006
Nereden: Bursa/es-es
Yaş: 23
Mesajlar: 1,780
Varsayılan

Tetris oyunu

Kod:
<html><head><title> Tanıtım</title></head><body bgcolor=ffff00 background=gri2.jpg text=ffffff link=0000ff

hlink=ff0000 vlink=ff00ff topmargin=5 leftmargin=5 marginheight=5 marginwidth=5>



<HEAD>



<SCRIPT LANGUAGE="JavaScript">



var t=''; t1=''; qul=0; xazi=0; done=1; sackisidone=1; sur=true; ldd=false;

var best=0; dav=false; m1=0; m2=0; m3=0; m4=0; xazidoneze=10;

var qulebi=0; n1=0; n2=0; n3=0; n4=0; strt=false; gacherdi=false;

var i=0; j=0; l=0; shua=540; shuabiji=50; shuavardna=20;

var dro, dro2, shemdegi;

var qvebi = new Array();

var ferebi = new Array('white','magenta','red','chocolate','blue',' green','gold','coral');

var suruch=ferebi[0];

var tx='Click Start \n Use Arrow keys to Play.\n Left Arrow - Move left; \n Up Arrow - Rotate; \n Right Arrow - Move right; \n Down Arrow - Drop Down;';

var txabo='Scriptris - Javascript Tetris \n Game idea by Alexey Pajitnov. \n Script by Alex-Soft.net. 2002.';



function bruni()

{

axali(i1,j1,suruch,0); axali(i2,j2,suruch,0); axali(i3,j3,suruch,0); axali(i4,j4,suruch,0);

i1=m1; j1=n1; i2=m2; j2=n2; i3=m3; j3=n3; i4=m4; j4=n4;

axali(i1,j1,sur,sh); axali(i2,j2,sur,sh); axali (i3,j3,sur,sh); axali(i4,j4,sur,sh);

}



function brunva()

{

if((strt)&&(!gacherdi))

{

if (sh == 7) {sh=14;}

else

if (sh == 14) {sh=21;}

else

if (sh == 21) {sh=28;}

else

if (sh == 28) {sh=7;}

else

if (sh == 6)

{

m2=i2+1; n2=j2+1;

m1=i1; n1=j1;

m3=i3-1; n3=j3-1;

m4=i4-2; n4=j4-2;

if (kiara()) {

sh=13;

bruni();

}

}

else

if (sh == 13)

{

m1=i1; n1=j1;

m2=i2+1; n2=j2-1;

m3=i3-1; n3=j3+1;

m4=i4-2; n4=j4+2;

if (kiara()){

sh=20;

bruni();

}

}

else

if (sh == 20)

{

m1=i1; n1=j1;

m2=i2-1; n2=j2-1;

m3=i3+1; n3=j3+1;

m4=i4+2; n4=j4+2;

if (kiara()) {

sh=27;

bruni();

}

}

else

if (sh == 27)

{

m1=i1; n1=j1;

m2=i2-1; n2=j2+1;

m3=i3+1; n3=j3-1;

m4=i4+2; n4=j4-2;

if (kiara()) {

sh=6;

bruni();

}

}

else

if (sh == 5)

{

m1=i1; n1=j1;

m2=i2-1; n2=j2+1;

m3=i3; n3=j3+2;

m4=i2; n4=j2;

if (kiara()) {

sh=12;

bruni();

}

}

else

if (sh == 12)

{

m1=i1; n1=j1;

m2=i2+1; n2=j2+1;

m3=i3+2; n3=j3;

m4=i2; n4=j2;

if (kiara()) {

sh=19;

bruni();

}

}

else

if (sh == 19)

{

m1=i1; n1=j1;

m2=i2+1; n2=j2-1;

m3=i3; n3=j3-2;

m4=i2; n4=j2;

if (kiara()) {

sh=26;

bruni();

}

}

else

if (sh == 26)

{

m1=i1; n1=j1;

m2=i2-1; n2=j2-1;

m3=i3-2; n3=j3;

m4=i2; n4=j2;

if (kiara()) {

sh=5;

bruni();

}

}

else

if (sh == 4)

{

m1=i1; n1=j1;

m2=i4; n2=j4;

m3=i3+2; n3=j3;

m4=i4-1; n4=j4-1;

if (kiara()) {

sh=11;

bruni();

}

}

else

if (sh == 11)

{

m1=i1; n1=j1;

m2=i4; n2=j4;

m3=i3; n3=j3-2;

m4=i4-1; n4=j4+1;

if (kiara()) {

sh=18;

bruni();

}

}

else

if (sh == 18)

{

m1=i1; n1=j1;

m2=i4; n2=j4;

m3=i3-2; n3=j3;

m4=i4+1; n4=j4+1;

if (kiara()) {

sh=25;

bruni();

}

}

else

if (sh == 25)

{

m1=i1; n1=j1;

m2=i4; n2=j4;

m3=i3; n3=j3+2;

m4=i4+1; n4=j4-1;

if (kiara()) {

sh=4;

bruni();

}

}

else

if (sh == 3)

{

m1=i1; n1=j1;

m2=i3; n2=j3;

m3=i3+1; n3=j3+1;

m4=i2; n4=j2;

if (kiara()) {

sh=10;

bruni();

}

}

else

if (sh == 10)

{

m1=i1; n1=j1;

m2=i3; n2=j3;

m3=i3+1; n3=j3-1;

m4=i2; n4=j2;

if (kiara()) {

sh=17;

bruni();

}

}

else

if (sh == 17)

{

m1=i1; n1=j1;

m2=i3; n2=j3;

m3=i3-1; n3=j3-1;

m4=i2; n4=j2;

if (kiara()) {

sh=24;

bruni();

}

}

else

if (sh == 24)

{

m1=i1; n1=j1;

m2=i3; n2=j3;

m3=i3-1; n3=j3+1;

m4=i2; n4=j2;

if (kiara()){

sh=3;

bruni();

}

}

else

if (sh == 2)

{

m1=i1; n1=j1;

m2=i2-1; n2=j2+1;

m3=i2; n3=j2;

m4=i4-2; n4=j4-2;

if (kiara())

{

sh=9;

bruni();

}

}

else

if (sh == 9)

{

m1=i1; n1=j1;

m2=i2+1; n2=j2+1;

m3=i2; n3=j2;

m4=i4-2; n4=j4+2;

if (kiara())

{

sh=16;

bruni();

}

}

else

if (sh == 16)

{

m1=i1; n1=j1;

m2=i2+1; n2=j2-1;

m3=i2; n3=j2;

m4=i4+2; n4=j4+2;

if (kiara()) {

sh=23;

bruni();

}

}

else

if (sh == 23)

{

m1=i1; n1=j1;

m2=i2-1; n2=j2-1;

m3=i2; n3=j2;

m4=i4+2; n4=j4-2;

if (kiara()){

sh=2;

bruni();

}

}

else

if (sh == 1)

{

m1=i1; n1=j1;

m2=i3; n2=j3;

m3=i3-1; n3=j3-1;

m4=i4-2; n4=j4-2;

if (kiara()) {

sh=8;

bruni();

}

}

else

if (sh == 8)

{

m1=i1; n1=j1;

m2=i3; n2=j3;

m3=i3-1; n3=j3+1;

m4=i4-2; n4=j4+2;

if (kiara()) {

sh=15;

bruni();

}

}

else

if (sh == 15)

{

m1=i1; n1=j1;

m2=i3; n2=j3;

m3=i3+1; n3=j3+1;

m4=i4+2; n4=j4+2;

if (kiara())

{

sh=22;

bruni();

}

}

else

if (sh == 22)

{

m1=i1; n1=j1;

m2=i3; n2=j3;

m3=i3+1; n3=j3-1;

m4=i4+2; n4=j4-2;

if (kiara())

{

sh=1;

bruni();

}

}

}

}



function marcxniv()

{

if((strt)&&(!gacherdi))

{

if ((j1 > 1)&&(j2 > 1)&&(j3 > 1)&&(j4 > 1)&&

(qvebi[(i1-1)*j10+j1-1] != 29)&&

(qvebi[(i2-1)*j10+j2-1] != 29)&&

(qvebi[(i3-1)*j10+j3-1] != 29)&&

(qvebi[(i4-1)*j10+j4-1] != 29))

{

axali(i1,j1,suruch,0);

axali(i2,j2,suruch,0);

axali(i3,j3,suruch,0);

axali(i4,j4,suruch,0);

j1--; j2--; j3--; j4--;

axali(i1,j1,sur,sh);

axali(i2,j2,sur,sh);

axali(i3,j3,sur,sh);

axali(i4,j4,sur,sh);

}

}

}



function marjvniv()

{

if((strt)&&(!gacherdi))

{

if ((j1 < j10)&&(j2 < j10)&&(j3 < j10)&&(j4 < j10)&&

(qvebi[(i1-1)*j10+j1+1] != 29)&&

(qvebi[(i2-1)*j10+j2+1] != 29)&&

(qvebi[(i3-1)*j10+j3+1] != 29)&&

(qvebi[(i4-1)*j10+j4+1] != 29))

{

axali(i1,j1,suruch,0);

axali(i2,j2,suruch,0);

axali(i3,j3,suruch,0);

axali(i4,j4,suruch,0);

j1++; j2++; j3++; j4++;

axali(i1,j1,sur,sh);

axali(i2,j2,sur,sh);

axali(i3,j3,sur,sh);

axali(i4,j4,sur,sh);

}

}

}



function chavardes()

{

shua=shuavardna;

}



function extract(val)

{

if ((endOfCookie=****************.indexOf(';',val))==-1)

{

endOfCookie=****************.length;

}

return unescape(****************.substring(val, endOfCookie));

}



function read(names)

{

var number=****************.length;

var len=names.length;

var u=0;

var v;

while (u<=number)

{

v=u+len;

if (****************.substring(u, v)==names)

return (extract(v));

u=****************.indexOf(' ', u)+1;

if (u==0) break;

}

return (null);

}



shuadidi=shua;



coo=read('robest=');

if (coo == null)

{i20=22}

else

{i20=parseInt(coo)};



coo=read('cobest=');

if (coo == null)

{j10=11}

else

{j10=parseInt(coo)};



i19=i20-1; j9=j10-1; ij200=i20*j10;



for (l=1; l<=ij200; l++)

{

qvebi[l]=0;

}



if (dro != null)clearTimeout(dro);

if (dro2 != null)clearTimeout(dro2);



function daicke()

{

if((strt == false)&&(ldd))

{

sackisidone=1; done=1;

for (i=0; i<=9; i++)

{

if (document.forms[0].elements['doneairchie'].options[i].selected)

{

sackisidone=document.forms[0].elements['doneairchie'].options[i].text;

done=sackisidone;

qulebi=0;

for (j=1; j<=done; j++)

{

qulebi=qulebi+j*j*xazidoneze;

}

document.forms[0].elements[2].value=' '+done;

break;

}

}

var coo;

ricxvi();

achveneshemdegi();

for (l=1; l<=ij200; l++)

{

qvebi[l]=0; l1=l-1;

document.all['d'+l1].style.backgroundColor=suruch;

}

strt=true;

gacherdi=false;

qul=0; xazi=0;

cooknam='best2001'+i20+j10+'=';

coo=read(cooknam);

if (coo==null)

{best=0; nam=sax; st='0'}

else

{

k1=coo.indexOf('['); k3=k1+1; k4=coo.indexOf(']')-k1-1; k6=coo.length;

st=coo.substring(k3,k6); st=st.substring(0,k4);

best=parseInt(st);

nam=coo.substring(0,k1);

}

shua=shuadidi-shuabiji*done;

if (best==0)

document.forms[0].elements[0].value=''

else

document.forms[0].elements[0].value=' Score: 0. '+nam+': '+best;

axaliqva();

if (dro != null)clearTimeout(dro);

rocadroa();

}

}



function ricxvi()

{

a=7*Math.random();

shemdegi=Math.ceil(a);

}



function bolos()

{

var cook;

var todayDate=new Date();

strt=false;

with (document)

{

if (qul>best)

{

best=qul;

todayDate.setDate(todayDate.getDate()+30);

st2=prompt('Congratulations! Enter Your Name:',nam); nam=st2;

cooknam='best2001'+i20+j10+'=';

cookie=cooknam+nam+'['+best+']'+'; expires='+todayDate.toGMTString()+';';

forms[0].elements[0].value='Congratulations '+nam+'!';

}

else

{

forms[0].elements[0].value='Result: '+qul+'. '+nam+': '+best;

}

with(document)

{

val=3*j10-1;

for (i=0; i<=val; i++)

{

all['p'+i].style.backgroundColor=suruch;

}

}

}

document.forms[1].elements[0].focus();

}



function rowsclick()

{

for (i=0; i<=3; i++)

{

if (document.forms[0].elements['rowsairchie'].options[i].selected)

{

i20=document.forms[0].elements['rowsairchie'].options[i].text;

todayDate=new Date();

todayDate.setDate(todayDate.getDate()+30);

****************='robest='+i20+'; expires='+todayDate.toGMTString()+';';

break;

}

}

document.location=document.location.href;

}



function columnsclick()

{

for (i=0; i<=3; i++)

{

if (document.forms[0].elements['columnsairchie'].options[i].selected)

{

j10=document.forms[0].elements['columnsairchie'].options[i].text;

todayDate=new Date();

todayDate.setDate(todayDate.getDate()+30);

****************='cobest='+j10+'; expires='+todayDate.toGMTString()+';';

break;

}

}

document.location=document.location.href;

}



function axaliqva()

{

shua=shuadidi-shuabiji*done;

sh=shemdegi;

sur=ferebi[sh];

if (sh == 1)

{i1=1; j1=5; i2=1; j2=6; i3=2; j3=5; i4=3; j4=5;}

else

if (sh == 2)

{i1=1; j1=5; i2=1; j2=4; i3=2; j3=5; i4=3; j4=5;}

else

if (sh == 3)

{i1=2; j1=6; i2=1; j2=6; i3=2; j3=7; i4=2; j4=5; sh=10;}

else

if (sh == 4)

{i1=2; j1=5; i2=2; j2=6; i3=1; j3=6; i4=3; j4=5;}

else

if (sh == 5)

{i1=2; j1=5; i2=2; j2=4; i3=1; j3=4; i4=3; j4=5;}

else

if (sh == 6)

{i1=1; j1=5; i2=1; j2=4; i3=1; j3=6; i4=1; j4=7; sh=27;}

else

if (sh == 7)

{i1=2; j1=5; i2=2; j2=6; i3=1; j3=6; i4=1; j4=5;};

if ((qvebi[i1,j1] == 29)||(qvebi[i2,j2] == 29)||(qvebi[i3,j3] == 29)||(qvebi[i4,j4] == 29))

{

bolos();

}

else

{

axali(i1,j1,sur,sh);

axali(i2,j2,sur,sh);

axali(i3,j3,sur,sh);

axali(i4,j4,sur,sh);

}

}



function axalish(ii,jj,ff)

{

l=(ii-1)*j10+jj; l1=l-1;

document.all['p'+l1].style.backgroundColor=ferebi[ff];

}



function axali(ii,jj,fil,ss)

{

l=(ii-1)*j10+jj;

if(qvebi[l] != ss)

{

qvebi[l]=ss; l1=l-1;

document.all['d'+l1].style.backgroundColor=fil;

}

}



function davardna()

{

dav=false;

for (k=1; k <=4; k++)

{

for (i=i20; i >= 1; i--)

{

n1=0;

for (j=1; j <= j10; j++)

{

l=(i-1)*j10+j;

if (qvebi[l] == 29) n1++

}

if (n1 == j10)

{

for (i1=i; i1>=2; i1--)

{

for (j1=1; j1 <= j10; j1++)

{

l=(i1-1)*j10+j1;

if(qvebi[l] != qvebi[l-j10])

{

l1=l-1;

qvebi[l]=qvebi[l-j10];

lj=l1-j10;

document.all['d'+l1].style.backgroundColor=document.all['d'+lj].style.backgroundColor;

}

}

}

dav=true;

xazi++

qul=qul+done*done;

if ((qul >= qulebi)&&(done < 10))

{

xazi=0;

done++;

qulebi=0;

for (i=1; i<=done; i++)

{

qulebi=qulebi+i*i*xazidoneze;

}

}

document.forms[0].elements[2].value=' '+done;

document.forms[0].elements[0].value='Score: '+qul+'. '+nam+': '+best+'.';

}

if (n1 == j10) break;

}

if (n1 != j10) break;

}

}



function achveneshemdegi()

{

val=3*j10-1;

for (i=0; i<=val; i++)document.all['p'+i].style.backgroundColor=suruch;

val=shemdegi;

if (val == 1)

{i1s=1; j1s=5; i2s=1; j2s=6; i3s=2; j3s=5; i4s=3; j4s=5;}

else

if (val == 2)

{i1s=1; j1s=5; i2s=1; j2s=4; i3s=2; j3s=5; i4s=3; j4s=5;}

else

if (val == 3)

{i1s=3; j1s=6; i2s=2; j2s=6; i3s=3; j3s=7; i4s=3; j4s=5;}

else

if (val == 4)

{i1s=2; j1s=5; i2s=2; j2s=6; i3s=1; j3s=6; i4s=3; j4s=5;}

else

if (val == 5)

{i1s=2; j1s=5; i2s=2; j2s=4; i3s=1; j3s=4; i4s=3; j4s=5;}

else

if (val == 6)

{i1s=2; j1s=5; i2s=2; j2s=4; i3s=2; j3s=6; i4s=2; j4s=7;}

else

if (val == 7)

{i1s=2; j1s=5; i2s=2; j2s=6; i3s=1; j3s=6; i4s=1; j4s=5;}

axalish(i1s,j1s,val); axalish(i2s,j2s,val);

axalish(i3s,j3s,val); axalish(i4s,j4s,val);

}



function rocadroa()

{

if ((strt == true)&&(gacherdi == false))

{

if ((i1>i19)||(i2>i19)||(i3>i19)||(i4>i19)

||(qvebi[(i1)*j10+j1] == 29)||(qvebi[(i2)*j10+j2] == 29)

||(qvebi[(i3)*j10+j3] == 29)||(qvebi[(i4)*j10+j4] == 29))

{

qvebi[(i1-1)*j10+j1]=29;

qvebi[(i2-1)*j10+j2]=29;

qvebi[(i3-1)*j10+j3]=29;

qvebi[(i4-1)*j10+j4]=29;

davardna ();

axaliqva();

if (strt)

{

ricxvi();

achveneshemdegi();

}

}

else

{

if(i1>2)

{

if(qvebi[(i1-2)*j10+j1] != sh)axali(i1,j1,suruch,0);

if(qvebi[(i2-2)*j10+j2] != sh)axali(i2,j2,suruch,0);

if(qvebi[(i3-2)*j10+j3] != sh)axali(i3,j3,suruch,0);

if(qvebi[(i4-2)*j10+j4] != sh)axali(i4,j4,suruch,0);

}

else

{

axali(i1,j1,suruch,0);

axali(i2,j2,suruch,0);

axali(i3,j3,suruch,0);

axali(i4,j4,suruch,0);

}

i1++; i2++; i3++; i4++;

axali(i1,j1,sur,sh);

axali(i2,j2,sur,sh);

axali(i3,j3,sur,sh);

axali(i4,j4,sur,sh);

}

dro = setTimeout('rocadroa()',shua);

return true;

}

}



function kiara()

{

vali=true;

if((n1<1)||(n2<1)||(n3<1)||(n4<1))vali=false;

if((n1>j10)||(n2>j10)||(n3>j10)||(n4>j10))vali=fal se;

if(vali)

{

if((m1<1)||(m2<1)||(m3<1)||(m4<1))vali=false;

if((m1>i20)||(m2>i20)||(m3>i20)||(m4>i20))vali=fal se;

}

if(vali)

{

if((qvebi[(m1-1)*j10+n1] == 29)||(qvebi[(m2-1)*j10+n2] == 29))vali=false;

if((qvebi[(m3-1)*j10+n3]== 29)||(qvebi[(m4-1)*j10+n4] == 29)) vali=false;

}

return vali;

}



function zemot()

{

self.focus();

document.forms[0].elements[0].value=' Click Start!';

i=Math.round((i20-18)/2);

document.forms[0].elements['rowsairchie'].options[i].selected=true;

j=j10-9;

document.forms[0].elements['columnsairchie'].options[j].selected=true;

cooknam='best2001'+i20+j10+'=';

coo=read(cooknam);

ldd=true;

sax=read('abest=');

if(sax==null)sax=''; nam='';

document.forms[1].elements[0].focus();

}



document.onkeydown = keyDown;



function keyDown(DnEvents)

{

k=window.event.keyCode;

if(k == 39){marjvniv()}

else

if(k == 37){marcxniv()}

else

if(k == 38){brunva()}

else

if(k == 40){chavardes()};

}



function gachereba()

{

if (strt)

{

if (gacherdi == false)

{

gacherdi=true;

document.forms[1].elements[1].value='^Pause ';

if (dro != null)clearTimeout(dro);

}

else

{

gacherdi=false;

document.forms[1].elements[1].value=' Pause ';

dro=setTimeout('rocadroa()', shua);

}

}

}



function chacera(mc)

{

if(mc == 3){aso='p'} else {aso='d'};

***************('<TABLE Border=0 CellPadding=0 CellSpacing=0>');

for (i=1; i<=mc; i++)

{

with(document)

{

write("<TR>");

for (j=0; j<=j9; j++)

{

l=(i-1)*j10+j;

write("<TD align=center bgcolor="+suruch+" width=15 height=15 id='"+aso+l+"'></TD>")

}

write("</TR>");

}

}

***************('</TABLE>');

}



if(!document.all){alert('Sorry, this script works properly only in MS Internet Explorer'); close();}



function hlp()

{

alert(tx);

}



function abo()

{

alert(txabo);

}





//-->

</SCRIPT>



</HEAD>



<!-- STEP TWO: Insert the onLoad event handler into your BODY tag -->



<BODY onLoad="zemot()">



<!-- STEP THREE: Copy this code into the BODY of your HTML document -->



<!-- This script and many more are available free online at -->

<!-- The JavaScript Source!! JavaScript Source: Free JavaScripts, Tutorials, Example Code, Reference, Resources, And Help -->

<CENTER>

<TABLE CellPadding=6 CellSpacing=0 border=5 bgcolor=gray>

<TR>

<TD Align=center valign=top>

<SCRIPT LANGUAGE="JavaScript">

chacera (3);

</SCRIPT>



<FORM>

<TABLE border=0 width='100%'>

<TR>

<TD align=center colspan=2>

<INPUT TYPE='text' SIZE=29 VALUE='Please wait while loading!'>

</TD>

</TR>



<TR>

<TD>

<INPUT TYPE='text' SIZE=14 VALUE='Level'>

</TD>

<TD align=right>

<INPUT TYPE='text' SIZE=8 VALUE=''>

</TD>

</TR>



<TR>

<TD>

<INPUT TYPE='text' SIZE=14 VALUE='Starting Level'>

</TD>

<TD align=right>

<SELECT NAME = 'doneairchie' style="color: black; font: 10pt verdana; width:75; background:white" onmouseOver="javascript: this.style.color='gray'" onmouseOut="javascript: this.style.color='black'">

<OPTION>1

<OPTION>2

<OPTION SELECTED>3

<OPTION>4

<OPTION>5

<OPTION>6

<OPTION>7

<OPTION>8

<OPTION>9

<OPTION>10

</SELECT>

</TD>

</TR>



<TR>

<TD>

<INPUT TYPE='text' SIZE=14 VALUE='Rows'>

</TD>

<TD align=right>

<SELECT NAME = 'rowsairchie' style="color: black; font: 10pt verdana; width:75; background:white" onchange='rowsclick()' onmouseOver="javascript: this.style.color='gray'" onmouseOut="javascript: this.style.color='black'">

<OPTION>18

<OPTION>20

<OPTION SELECTED>22

<OPTION>24

</SELECT>

</TD>

</TR>



<TR>

<TD>

<INPUT TYPE='text' SIZE=14 VALUE='Columns'>

</TD>

<TD align=right>



<SELECT NAME = 'columnsairchie' style="color: black; font: 10pt verdana; width:75; background:white" onchange='columnsclick()' onmouseOver="javascript: this.style.color='gray'" onmouseOut="javascript: this.style.color='black'">

<OPTION>9

<OPTION>10

<OPTION SELECTED>11

<OPTION>12

</SELECT>

</TD>

</TR>

</TABLE>

</FORM>



<FORM>

<TABLE Border=0 width='100%'>

<TR>

<TD>

<Input Type='Button' Value=' Start ' onClick='daicke()' style="color: black; font: 10pt verdana; width:75; background:white" onmouseOver="javascript: this.style.color='gray'" onmouseOut="javascript: this.style.color='black'">

</TD>

<TD Align='Right'>

<INPUT type='button' VALUE=' Pause ' ONCLICK='gachereba()' style="color: black; font: 10pt verdana; width:75; background:white" onmouseOver="javascript: this.style.color='gray'" onmouseOut="javascript: this.style.color='black'">

</TD>

</TR>

<TR>

<TD>

<INPUT type='button' VALUE='Help' ONCLICK='hlp()' style="color: black; font: 10pt verdana; width:75; background:white" onmouseOver="javascript: this.style.color='gray'" onmouseOut="javascript: this.style.color='black'">

</TD>

<TD Align='Right'>

</TD>

</TR>

</TABLE>

</FORM>



</TD>

<TD align=center>

<SCRIPT LANGUAGE="JavaScript">

chacera (i20);

</SCRIPT>

</TD>

</TR>

</TABLE>

</CENTER>


__________________
staticiation Şuanda Forumda Değil   Alıntı yaparak cevapla
Eski 24.09.2007   #32 (permalink)
 
Katılma Tarihi: Şub 2006
Nereden: Bursa/es-es
Yaş: 23
Mesajlar: 1,780
Varsayılan

Web sayfanizda kapatma butonu Kod:
<FORM>

<INPUT TYPE="BUTTON" VALUE="Kapat"

NAME="lowerButton" onClick="self.close()">

</FORM>


__________________
staticiation Şuanda Forumda Değil   Alıntı yaparak cevapla
Eski 24.09.2007   #33 (permalink)
 
Katılma Tarihi: Şub 2006
Nereden: Bursa/es-es
Yaş: 23
Mesajlar: 1,780
Varsayılan

Yukari dogru kayan haberler

Kod:
<html>

<body bgcolor="000000">

<INPUT name=txtNewsAction type=hidden > <INPUT name=txtNewsID

type=hidden>

<MARQUEE direction=up height=100 onmouseout=this.start();

onmouseover=this.stop(); scrollAmount=1 scrollDelay=40 width=147

left="15" top="0">

<P align=center><A target=giris class=cKur

href="haberler.html"

onclick="LoadNews('ShowDetail', 9); return false;"><font color="yellow" size=2>Donanim cakismalarina son veriyoruz</A></P>

<P align=center><A target=giris class=cKur

href="haberler.html"

onclick="LoadNews('ShowDetail', 6); return false;"><font color="blue" size=2>Gelecegin virusunu taniyalim!</A></P>

<P align=center><A target=giris class=cKur

href="haberler.html"

onclick="LoadNews('ShowDetail', 5); return false;"><font color="red" size=2>Sabit diskde isletim sistemi senligi</A></P>

<P align=center><A target=giris class=cKur

href="haberler.html"

onclick="LoadNews('ShowDetail', 3); return false;"><font color="aqua" size=2>Talip Hakan Ozturk'un universite grup arkadaslari</A></P>

<P align=center><A target=giris class=cKur

href="haberler.html"

onclick="LoadNews('ShowDetail', 4); return false;"><font color="green" size=2>Programlama kitap yazarlari</A></P>

</MARQUEE></TD></TR>

</font>

</body>

</html>


__________________
staticiation Şuanda Forumda Değil   Alıntı yaparak cevapla
Eski 24.09.2007   #34 (permalink)
 
Katılma Tarihi: Şub 2006
Nereden: Bursa/es-es
Yaş: 23
Mesajlar: 1,780
Varsayılan

Internet uzeri online radyo

Kod:
<font size="2"><span lang="en-us">

<object id="Player1" classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" height="44" width="694" align="left">

<param name="URL" value="http://www.radyodeniz.com/kpig.asx">

<param name="rate" value="1">

<param name="balance" value="0">

<param name="currentPosition" value="0">

<param name="defaultFrame" value>

<param name="playCount" value="1">

<param name="autoStart" value="-1">

<param name="currentMarker" value="0">

<param name="invokeURLs" value="-1">

<param name="baseURL" value>

<param name="volume" value="100">

<param name="mute" value="0">

<param name="uiMode" value="full">

<param name="stretchToFit" value="-1">

<param name="windowlessVideo" value="-1">

<param name="enabled" value="-1">

<param name="enableContextMenu" value="-1">

<param name="fullScreen" value="0">

<param name="SAMIStyle" value>

<param name="SAMILang" value>

<param name="SAMIFilename" value>

<param name="captioningID" value>

<param name="enableErrorDialogs" value="0">

<param name="_cx" value="6562">

<param name="_cy" value="6535">

</object>

</span></font>


__________________
staticiation Şuanda Forumda Değil   Alıntı yaparak cevapla
Eski 24.09.2007   #35 (permalink)
 
Katılma Tarihi: Şub 2006
Nereden: Bursa/es-es
Yaş: 23
Mesajlar: 1,780
Varsayılan

Hesap makinesi

Kod:
<body><table border="2" width="200" cellspacing="0" cellpadding="0" bgcolor="#000000"

style="border-color:black" onClick="previouskey=event.srcElement.innerText">

<tr>

<td width="100%" bgcolor="#FFFFFF" id="result"

style="font:bold 20px Verdana;color:black;text-align='right'">0</td>

</tr>

<tr>

<td width="100%" valign="middle" align="center"><table border="0" width="100%"

cellspacing="0" cellpadding="0" style="font:bold 20px Verdana;color:white">

<tr>

<td width="80%" align="center"><table border="1" width="100%" cellspacing="0"

cellpadding="0" style="cursor:hand;font:bold 20px Verdana;color:white"

onMouseover="if (event.srcElement.tagName=='TD')event.srcElement.s tyle.color='yellow'"

onMouseout="event.srcElement.style.color='white'" onselectStart="return false"

onClick="calculate()" height="82">

<tr>

<td width="25%" align="center" height="17">7</td>

<td width="25%" align="center" height="17">8</td>

<td width="25%" align="center" height="17">9</td>

<td width="25%" align="center" height="17">/</td>

</tr>

<tr>

<td width="25%" align="center" height="19">4</td>

<td width="25%" align="center" height="19">5</td>

<td width="25%" align="center" height="19">6</td>

<td width="25%" align="center" height="19">*</td>

</tr>

<tr>

<td width="25%" align="center" height="19">1</td>

<td width="25%" align="center" height="19">2</td>

<td width="25%" align="center" height="19">3</td>

<td width="25%" align="center" height="19">-</td>

</tr>

<tr>

<td width="25%" align="center" height="19">0</td>

<td width="25%" align="center" height="19"

onClick="pn();previouskey=1;event.cancelBubble=tru e">+/-</td>

<td width="25%" align="center" height="19">.</td>

<td width="25%" align="center" height="19">+</td>

</tr>

</table></td>

<td width="20%"><div align="left"><table border="1" width="100%" cellspacing="0"

cellpadding="0">

<tr>

<td width="100%" style="cursor:hand;font:bold 20px Verdana;color:white;text-align:center"

onClick="result.innerText=0;results=''">C</td>

</tr>

</table>

</div><div align="left"><table border="1" width="100%" cellspacing="0" cellpadding="0"

height="81">

<tr>

<td width="100%" style="cursor:hand;font:bold 32px Verdana;color:white;text-align:center"

onMouseover="event.srcElement.style.color='yellow' "

onMouseout="event.srcElement.style.color='white'" onClick="calculateresult()">=</td>

</tr>

</table>

</div></td>

</tr>

</table></td>

</tr>

</table>





<script language="JavaScript1.2">/*

DHTML Calculator Script-

© Dynamic Drive (Dynamic Drive DHTML(dynamic html) & JavaScript code library)

For full source code, installation instructions,

100's more DHTML scripts, and Terms Of

Use, visit dynamicdrive.com

*/



var results=''

var previouskey=''

var re=/(\/|\*|\+|-)/

var re2=/(\/|\*|\+|-){2}$/

var re3=/.+(\/|\*|\+|-).+/

var re4=/\d|\./

var re5=/^[^\/\*\+].+\d$/

var re6=/\./



function calculate(){

if (event.srcElement.tagName=="TD"){

if (event.srcElement.innerText.match(re4)&&previouske y=="=")

results=''

if (result.innerText.match(re3)&&event.srcElement.inn erText.match(re)){

if (!results.match(re5)){

result.innerText="Error!"

return

}

results=eval(results)

if (results.toString().length>=12&&results.toString() .match(re6))

results=results.toString().substring(0,12)

result.innerText=results

}



results+=event.srcElement.innerText

if (results.match(re2))

results=results.substring(0,results.length-2)+results.charAt(results.length-1)



result.innerText=results

}

}



function calculateresult(){

if (!results.match(re5)){

result.innerText="Error!"

return

}

results=eval(results)

if (results.toString().length>=12&&results.toString() .match(re6))

results=results.toString().substring(0,12)

result.innerText=results

}







function pn(){

if (result.innerText.charAt(0)!='-')

result.innerText=results='-'+result.innerText

else if (result.innerText.charAt(0)=='-')

result.innerText=results=result.innerText*(-1)

}</script>

</body>


__________________
staticiation Şuanda Forumda Değil   Alıntı yaparak cevapla
Eski 24.09.2007   #36 (permalink)
 
Katılma Tarihi: Şub 2006
Nereden: Bursa/es-es
Yaş: 23
Mesajlar: 1,780
Varsayılan

Slayt resim gösterisi

Kod:
<script language="JavaScript1.2"><!--



/*

DHTML Slayt Gösteri

*/





//Specify the slider's width (in pixels)

var sliderwidth=330

//Specify the slider's height (in pixels, pertains only to NS)

var sliderheight=145

//Specify the slider's scroll speed (larger is faster)

var slidespeed=4



//Specify the slider's images

var leftrightslide=new Array()

var finalslide=''

leftrightslide[0]='<a href="resimlinki" border=1></a>'

leftrightslide[1]='<a href="resmlinki" border=1></a>'

leftrightslide[2]='<a href="resimlinik" border=1></a>'

leftrightslide[3]='<a href="resimlinki" border=1></a>'

leftrightslide[4]='<a href="resimlinik" border=1></a>'





///////do NOT edit pass this line////////////////////////////////////



var copyspeed=slidespeed

//copy contents of leftrightslide into one variable

for (i=0;i<leftrightslide.length;i++)

finalslide=finalslide+leftrightslide[i]+" "





if (document.all){

//dynamically write out the marquee tag

***************('<marquee id="ieslider" scrollAmount=0 style="width:'+sliderwidth+'">'+finalslide+'</marquee>')

//stop marquee when mouse is over it

ieslider.onmouseover=new Function("ieslider.scrollAmount=0")

//re-enable marquee when mouse is out

ieslider.onmouseout=new Function("if (document.readyState=='complete') ieslider.scrollAmount=slidespeed")

}



function regenerate(){

window.location.reload()

}

function regenerate2(){

if (document.layers){

document.ns_slider01.visibility="show"

setTimeout("window.onresize=regenerate",450)

intializeleftrightslide()

}

if (document.all)

ieslider.scrollAmount=slidespeed

}



//NS specific function for initializing slider upon page load

function intializeleftrightslide(){

document.ns_slider01.document.ns_slider02.******** *******('<nobr>'+finalslide+'</nobr>')

document. ns_slider01.document.ns_slider02.document.close()

thelength=document.ns_slider01.document.ns_slider0 2.document.width

scrollslide()

}



//NS specific function for sliding slideshow

function scrollslide(){

if (document.ns_slider01.document.ns_slider02.left>=t helength*(-1)){

document.ns_slider01.document.ns_slider02.left-=slidespeed

setTimeout("scrollslide()",100)

}

else{

document.ns_slider01.document.ns_slider02.left=sli derwidth

scrollslide()

}

}

window.onload=regenerate2



//--></script>





<ilayer width=&{sliderwidth}; height=&{sliderheight}; name="ns_slider01" visibility=hide>

<layer name="ns_slider02" onMouseover="slidespeed=0;" onMouseout="slidespeed=copyspeed"></layer>

</ilayer>


__________________
staticiation Şuanda Forumda Değil   Alıntı yaparak cevapla
Eski 24.09.2007   #37 (permalink)
 
Katılma Tarihi: Şub 2006
Nereden: Bursa/es-es
Yaş: 23
Mesajlar: 1,780
Varsayılan

Yaprakli takvim

Kod:
<head></head>

<BODY>



<SCRIPT LANGUAGE="JavaScript">

<!-- Begin

var Today=new Date();

var ThisDay=Today.getDay();

var ThisDate=Today.getDate();

var ThisMonth=Today.getMonth()+1;

var ThisYear=Today.getFullYear(); //included if you wish to insert the year

function DayTxt (DayNumber) {

var Day=new Array();

Day[0]="Pazar";

Day[1]="Pazartesi";

Day[2]="Salı";

Day[3]="Çarşamba";

Day[4]="Perşembe";

Day[5]="Cuma";

Day[6]="Cumartesi";

return Day[DayNumber];

}

var DayName=DayTxt(ThisDay);

function MonthTxt (MonthNumber) {

var Month=new Array();

Month[1]="Ocak";

Month[2]="Şubat";

Month[3]="Mart";

Month[4]="Nisan";

Month[5]="Mayıs";

Month[6]="Haziran";

Month[7]="Temmuz";

Month[8]="Ağustos";

Month[9]="Eylül";

Month[10]="Ekim";

Month[11]="Kasım";

Month[12]="Aralık";

return Month[MonthNumber];

}

var MonthName=MonthTxt(ThisMonth);

var d = new Date();

var h = d.getHours();

***************("<TABLE BORDER=3 BGCOLOR=WHITE WIDTH=75 HEIGHT=85 align=left>"+"<TD>"+"<p align=center>"+"<font size=-2 >"+DayName+"<br>"+"<font color=orangered size=+3 >"+ThisDate+"</font>"+"<br>"+MonthName+"<br>"+"</b>"+"</font>"+"</p>"+"</TD>"+"</TR>"+"</TABLE>");

if (h < 2) ***************("<P ALIGN=center>"+"<b>"+"Günaydin!.p Yes, it's way past midnight."+"</b>"+"</P>");

else if (h < 3) ***************("<P ALIGN=center>"+"<b>"+"Günaydin! Up early or working late?"+"</b>"+"</P>");

else if (h < 7) ***************("<P ALIGN=center>"+"<b>"+"Günaydin! Up bright and early!"+"</b>"+"</P>");

else if (h < 12) ***************("<P ALIGN=center>"+"<b>"+"Tünaydin!"+"</b>"+"</P>");

else if (h < 17) ***************("<P ALIGN=center>"+"<b>"+"Tünaydin!"+"</b>"+"</P>");

else if (h < 23) ***************("<P ALIGN=center>"+"<b>"+"iyi akşamlar!"+"</b>"+"</P>");

else ***************("<P ALIGN=center>"+"<b>"+"A late good evening! Not much left of it now."+"</b>"+"</P>");

// End -->

</script>

<// HAZIRLAYAN VE SUNAN BirolCan-www.forumay.com -->

</body>


__________________
staticiation Şuanda Forumda Değil   Alıntı yaparak cevapla
Eski 24.09.2007   #38 (permalink)
 
Katılma Tarihi: Şub 2006
Nereden: Bursa/es-es
Yaş: 23
Mesajlar: 1,780
Varsayılan

Zaman ile yenileme Eger durum çubugunda sayfanizin ziyaretçiye bildirilen sürede bir refresh edilmesini istiyorsaniz asagida kodlari sayfanin tag'leri arasina yazmaniz yeter.







Kod:
<script>



<!--/*Auto Refresh Page with Time scriptBy Website Abstraction (wsabstract.com)Over 200+ free scripts here!*///enter refresh time in "minutes:seconds" Minutes should range from 0 to inifinity. Seconds should range from 0 to 59var limit="0:30"if (document.images){var parselimit=limit.split(":")parselimit=parselimit[0]*60+parselimit[1]*1}function beginrefresh(){if (!document.images)returnif (parselimit==1)window.location.reload()else{ parselimit-=1curmin=Math.floor(parselimit/60)cursec=parselimit%60if (curmin!=0)curtime=curmin+" dakika ve "+cursec+" saniye sonra refresh edilecektir !"elsecurtime=cursec+" saniye sonra refresh edilecektir."window.status=curtimesetTimeout("begi nrefresh()",1000)}}window.onload=beginrefresh//-->



</script>


__________________
staticiation Şuanda Forumda Değil   Alıntı yaparak cevapla
Eski 24.09.2007   #39 (permalink)
 
Katılma Tarihi: Şub 2006
Nereden: Bursa/es-es
Yaş: 23
Mesajlar: 1,780
Varsayılan

Sag tus fare kilitleme Web sitenizden ziyaretçi veya üye resimlerinizi ve ya herhangi bilgilerinizi kopyalamakmi istiyor iste ???



Kod:
<DIV><SCRIPT language=JavaScript>

document.onmousedown=click

var times=0

var times2=10

function click() {

if ((event.button==2) || (event.button==3)) {

if (times>=1) { earthquake() }

alert("Bu Sitede Sag Tus Yasagi Vardir ! ! ! Sag Tus Tiklayamazsin :-)");

times++ } }

function earthquake() {

alert("Sana Söylemistim Sag Tus Tiklayamazsin Diye :-)");

window.moveTo(0, 0)

window.moveTo(1, 1)

window.moveTo(2, 2)

window.moveTo(3, 3)

window.moveTo(4, 4)

window.moveTo(5, 5)

window.moveTo(6, 6)

window.moveTo(7, 7)

window.moveTo(8, 8)

window.moveTo(9, 9)

window.moveTo(10, 10)

window.moveTo(9, 9)

window.moveTo(8, 8)

window.moveTo(7, 7)

window.moveTo(6, 6)

window.moveTo(5, 5)

window.moveTo(4, 4)

window.moveTo(3, 3)

window.moveTo(2, 2)

window.moveTo(1, 1)

alert("WWW.Jagar.Avcisi.COM!")

tremmors()

}

function tremmors() {

window.moveTo(0, 0)

window.moveTo(1, 1)

window.moveTo(2, 2)

window.moveTo(3, 3)

window.moveTo(4, 4)

window.moveTo(5, 5)

window.moveTo(6, 6)

window.moveTo(7, 7)

window.moveTo(8, 8)

window.moveTo(9, 9)

window.moveTo(10, 10)

window.moveTo(9, 9)

window.moveTo(8, 8)

window.moveTo(7, 7)

window.moveTo(6, 6)

window.moveTo(5, 5)

window.moveTo(4, 4)

window.moveTo(3, 3)

window.moveTo(2, 2)

window.moveTo(1, 1)

tremmors()

}

</SCRIPT>

</DIV>


__________________
staticiation Şuanda Forumda Değil   Alıntı yaparak cevapla
Eski 24.09.2007   #40 (permalink)
 
Katılma Tarihi: Şub 2006
Nereden: Bursa/es-es
Yaş: 23
Mesajlar: 1,780
Varsayılan

Mouse seklini degistirin Mouse kelebek seklinde görünsün ister misiniz ?

PHP Kodu:
<a href="http://www.bigoo.ws"><br><center><img alt="Cursors" src="http://content8.bigoo.ws/content/loghi/cursor_logo01.gif" border="0"></center><body style="cursor:url(http://content8.bigoo.ws/content/cursor/animated/animated_13.ani);"></body><br></a>



__________________
staticiation Şuanda Forumda Değil   Alıntı yaparak cevapla
Cevap


Şu Anda Konuyu İnceleyen Aktif Kullanıcılar: 1 (0 üye ve 1 misafir)
 
Konu Araçları


Benzer Konular
Konu Konuyu Başlatan Forum Cevaplar Son Mesaj
Adım Adım Bedava Host Alimi vbulletin Kurulum By_Escape Web Tasarım 69 09.10.2007 03:40
Adım adım photoshop türkçe video ders....!kaçmaz ! 12123 Resim, Grafik, Tasarım 1 23.09.2007 11:05
Adım adım baştan sona asp (sonu olmaz) :) cont Web Geliştirme Dilleri 41 22.04.2007 15:45
Click&Buy Üyelik Alımı (adım adım anlatım) ßluet®ojan Knight Online 0 27.02.2007 16:26
Adım Adım Cracking (Program Şifrelerini Kırma Anlatım) PiLoT Web Sitesi Çökertme 2 05.10.2006 23:26


Şu anki forum saati: 18:28.


cnt hizmet sağlayan firma
ForumTi.com'un yapımı ve yayınlanması CNT'ye aittir.
Sitedeki içerikleri foruma ücretsiz şekilde üye olabilen ziyaretçiler oluşturur. Bu içeriklerin sorumluluğu yazana aittir.
Eğer yasak ve aykırı içerik tespit edilirse site yöneticilerine bu konular bildirilir ve kaldırılır. Site yönetimi haberdar edildiğinde sonuç alınamaz ise servis sağlayıcı CNT'ye bildiride bulunabilirsiniz.
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd. Search Engine Friendly URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236