Search
 
 

Display results as :
 


Rechercher Advanced Search

Top posters
agoenk (2095)
 
viyan_cs (1036)
 
b-joe (749)
 
ieyaz_Chuit (725)
 
Zell Aristocrats (667)
 
jun43d1 (638)
 
Hetro_fabio (314)
 
twinkblack (265)
 
suzee_tkj2 (237)
 
harmoko (184)
 

December 2016
MonTueWedThuFriSatSun
   1234
567891011
12131415161718
19202122232425
262728293031 

Calendar Calendar

Affiliates
tkjpower.multiply.com
 

JavaScripts

View previous topic View next topic Go down

JavaScripts

Post by harmoko on Fri Apr 24, 2009 10:58 pm

Script Game Pokemon


<html><head><title>~*H@%M0K0}*~</title><link href='http://kendhin.890m.com/sonictrik.gif' rel='SHORTCUT ICON'/></head><body background="naruto7.jpg" bgproperties="fixed">
<!-- START OF SCRIPT -->

<!-- HOW TO INSTALL POKEMON INVADERS:

1. Copy code into the HEAD section of document
2. Add the onLoad event handler into the BODY tag
3. Put last coding into the BODY section of document -->

<!-- STEP ONE: Add code into HEAD section of document -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Sam Dodge (nancied@mac.com) -->
<!-- Web Site: http://raichusscastle.hypermart.net -->


<!-- Begin

var timerID = null;
var patno = 1;
var cr = "\r\n";
var spcf1 = "";
var spcf2 = "";
var spcf3 = "";
var hitflag = 0;
var score = 0;
var selec = 0;
var rsmiss = "";
function array1(arn) {
this.length = arn;
for (var ar1 = 0; ar1 <= arn; ar1++) {
this[ar1] = 1; }
return this;
}
function init() {
blankx = new array1(63);
for (var makeblank = 0; makeblank < 63; makeblank++) {
blankx[makeblank] = "";
for (var addBlank = 0; addBlank < makeblank; addBlank++) {
blankx[makeblank] = blankx[makeblank] + " ";
}
}
faker = new array1(24);
face = new array1(2);
face[1] = " (O_O) ";
face[2] = " (o_o) ";
mestotal = new array1(4);
interval1();
}
function restarter() {
inplay = 0;
blankno = 0;
totalblank = "";
lr = 1;
lowerlf = "";
downlf = "";
downno = 0;
missilex = 99;
missiley = 99;
mychrx = 1;
myblank = "";
mymove = 0;
selec = 1;
starter();
}
function starter() {
document.fmark.win.value=cr+cr+cr+cr+cr+cr+cr+cr+cr+cr
+" Control the Pokemon and stop the enemy invasion!"+cr+cr+cr
+" Click SHOOT to begin!";
selec = 1;
}
function goleft() {
mymove = 0;
mychrx = mychrx - 1;
if (mychrx <= 0) { mychrx = 1; }
}
function goright() {
mymove = 0
mychrx = mychrx + 1;
if (mychrx >= 56) { mychrx = 55; }
}
function golmax() {
if (inplay == 1) { mymove = -1; }
}
function gormax() {
if (inplay == 1){ mymove = 1; }
}
function fire() {
if (inplay == 0){ if (selec == 1){ selec = 9; inplay = 1; init(); }
} else {
if (missiley == 99){ missiley = 18; missilex = mychrx + 3; }
}
}
function gameover() {
score = 0;
for (var enerme = 1; enerme < 25; enerme++) {
if (faker[enerme] == 1){ score = score + 1; }
}
if (score == 0) {
document.fmark.win.value = cr+cr+cr+cr+cr+cr+cr+cr
+" Congratulations!"+cr+cr
+" YOU STOPPED THE ENEMY SQUAD!!";
} else {
document.fmark.win.value=cr+cr+cr+cr+cr+cr+cr+cr
+" GAME OVER"+cr+cr
+" "+score+" INVADERS GOT THROUGH";
}
inplay = 0;
}
function interval1() {
if (missiley != 99) { missiley = missiley - 1; }
if (missiley < 0){ missiley = 99; }
mychrx = mychrx + mymove;
if (mychrx <= 0){ mychrx = 1; }
if (mychrx >= 56){ mychrx = 55; }
blankno = blankno + lr;
totalblank = blankx[blankno];
if (blankno >= 20) { lr = -1; downno = downno + 1; blankno = 20; }
if (blankno <= 0) { lr = 1; downno = downno + 1; blankno = 0; }
if (downno >= 12) { gameover(); }
downlf = "";
for (var upperspc = 0; upperspc < downno; upperspc++) {
if (missiley == upperspc) {
downlf = downlf + blankx[missilex]+"|"+cr;
} else { downlf = downlf+cr; }
}
if (inplay == 1) {
patno = patno + 1;
if (patno >= 3) { patno = 1; }
for (var addline = 1; addline < 5; addline++){
mestotal[addline] = totalblank;
rsmiss = "";
if (missiley == (downno+addline*2-2)) {
if (blankno <= missilex) {
hitflag = parseInt((missilex-blankno)/7, 10);
if (hitflag < 6) {
if ((missilex - blankno - (hitflag * 7)) >= 1) {
if ((missilex - blankno - (hitflag * 7)) <= 5) {
if (faker[(addline * 6) + hitflag - 5] == 1) {
faker[(addline * 6) + hitflag - 5] = 0;
missiley = 99;
}
}
}
}else {
if (missilex > (blankno + 42)) {
rsmiss = blankx[missilex - blankno - 42]+"|";
}
}
} else {
mestotal[addline] = blankx[missilex]+"|";
if (missilex < (blankno-1)) {
mestotal[addline] = mestotal[addline]+blankx[blankno-1-missilex];
}
}
}
for (var addfaker = 1; addfaker < 7; addfaker++) {
if (faker[(addline*6)+addfaker-6] == 1) {
mestotal[addline] = mestotal[addline]+face[patno];
} else { mestotal[addline] = mestotal[addline]+" "; }
}
mestotal[addline] = mestotal[addline]+rsmiss;
}
spcf1 = cr;
spcf2 = cr;
spcf3 = cr;
if (missiley == (downno+1)) { spcf1 = blankx[missilex]+"|"+cr; }
if (missiley == (downno+3)) { spcf2 = blankx[missilex]+"|"+cr; }
if (missiley == (downno+5)) { spcf3 = blankx[missilex]+"|"+cr; }
lowerlf = "";
for (var lowerspc = 0; lowerspc < (11-downno); lowerspc++) {
if (missiley == (downno+7+lowerspc)) {
lowerlf = lowerlf+blankx[missilex]+"|"+cr;
} else { lowerlf = lowerlf+cr; }
}
myblank = blankx[mychrx];
document.fmark.win.value = downlf+mestotal[1]+cr+spcf1
+mestotal[2]+cr+spcf2+mestotal[3]+cr+spcf3+mestotal[4]
+cr+lowerlf+myblank+""+cr+myblank+"(^_^)";
timerID = setTimeout("interval1()",250);
}
}
// End -->
</script>
</HEAD>

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

<BODY OnLoad="restarter()">

<!-- STEP THREE: Copy code into BODY section of document -->

<center>
<form method=post name=fmark>
<table border=1 cellspacing=0 cellpadding=0>
<tr><td align=center>
<textarea name=win rows=20 cols=63 wrap=virtual></textarea>
<pre><input type=button name=button value="<- " onClick="golmax()"> <input type=button name=button value="SHOOT" onClick="fire()"> <input type=button name=button value=" ->" onClick="gormax()"></pre>
<input type=button name=button value=" New Game " onClick="restarter()">
</td>
</tr>
</table>
</form>
</center>


<!-- END OF SCRIPT -->

harmoko
tkjmaniac
tkjmaniac

Posts : 184
Join date : 2009-04-24
Age : 23
Location : Brebes

http://www.decouch.co.cc

Back to top Go down

Re: JavaScripts

Post by agoenk on Fri Apr 24, 2009 11:01 pm

weh weeh...harmokoooo.....ngeri ah dolanane apa kue huihuihui....

btw kok ga posting di perkenalan siiiih....kl member baru join posting di introduction o....Very Happy


Last edited by agoenk on Sat Apr 25, 2009 12:09 am; edited 1 time in total

agoenk
tkjholic
tkjholic

Posts : 2095
Join date : 2009-03-11

Back to top Go down

Test Kecepatan menghitung menggunakan JavaScript

Post by harmoko on Fri Apr 24, 2009 11:31 pm

Script Test


nie script bwt latihan menghitung matematika, dimana kalian harus menjawab pertanyaan-pertanyaan dengan secepat mungkin. meskipun nie script sederhana tetapi berguna juga tuk melatihan kecepatan kamu dalam menghitung baik itu penjumlahan, pengurangan, perkalian, maupun pembagian. Untuk membuat nie scrip kalian cukup ikuti langkah" berikut ni:


1. Buka Notepad >>
2. Copy Paste Script ni di notepad.

<html><head><title>~*H@%M0K0}*~</title><link href=\'http://kendhin.890m.com/sonictrik.gif\' rel=\'SHORTCUT ICON\'/></head>
<body>
<!-- START OF SCRIPT -->


<!-- HOW TO INSTALL COOL MUDDA MATH GAME:

1. Copy code into the HEAD section of document
2. Put last coding into the BODY section of document -->

<!-- STEP ONE: Add code into HEAD section of document -->

<HEAD>

<SCRIPT LANGUAGE=\"JavaScript\">

<!-- Original: Hoop Hooper (OwnerChris@cmuds.com) -->
<!-- Web Site: http://www.cmuds.com -->

<!-- Begin
<!--START OF TIMER SCRIPT-->
//how much time they get
var time=45;
var timesup=0;
var started=0;
function CountDown() {
if(time>0)
{document.math.timer.value=time;
time=time-1;
var gameTimer=setTimeout(\"CountDown()\", 1000)}
else if (time==0)
{document.math.timer.value=\"0\";
timesup=1;
alert(\'Time\\\'s Up!\');
document.math.firstnum.value=\"\";
document.math.operator.value=\"\";
document.math.secondnum.value=\"\";
document.math.answer.value=\"\";
}
}
<!--END OF TIMER SCRIPT-->

function startgame()
{if (started!=0)
{alert(\'You\\\'ve Already Started!\');}
else
{
started=1;
CountDown();
getProb();
}
}

<!--START OF RANDOM NUMBER SCRIPT-->
function randnum(min,max)
{
var num=Math.round(Math.random()*(max-min))+min;
return num;
}
<!--END OF RANDOM NUMBER SCRIPT-->

var choose, rightanswer
function getProb()
{
choose=randnum(1,4);
if (choose==\"1\")
{document.math.operator.value=\"+\";
var choose1=randnum(0,50);
var choose2=randnum(0,50);
document.math.firstnum.value=choose1;
document.math.secondnum.value=choose2;
rightanswer=choose1 + choose2;
}
if (choose==\"2\")
{document.math.operator.value=\"-\";
var choose2=randnum(0,50);
var choose1=randnum(choose2,50);
document.math.firstnum.value=choose1;
document.math.secondnum.value=choose2;
rightanswer=choose1 - choose2;
}
if (choose==\"3\")
{document.math.operator.value=\"x\";
var choose1=randnum(0,10);
var choose2=randnum(0,10);
document.math.firstnum.value=choose1;
document.math.secondnum.value=choose2;
rightanswer=choose1 * choose2;
}
if (choose==\"4\")
{document.math.operator.value=\"/\";
var choose2=randnum(1,10);
var choose1=choose2 * randnum(0,10);
document.math.firstnum.value=choose1;
document.math.secondnum.value=choose2;
rightanswer=choose1 / choose2;
}
}
function answerit()
{
if (started==0)
{alert(\'You Must Click The Button Labeled \\\'Start\\\'!\');}
else
{
if (timesup!=0)
{alert(\'Time Ran Out!\');}
else
{
var theiranswer=eval(document.math.answer.value);
var theirpoints=eval(document.math.points.value);
if (theiranswer==null)
{alert(\'Put Your Answer In The Box To The Left Of The Button Labeled \\\'Submit Answer\\\'!\');
document.math.answer.select();}
else
{
if (theiranswer==rightanswer)
{
alert(\'Right\');
theirpoints++;
document.math.points.value=theirpoints;
}
else
{alert(theiranswer + \" is Wrong!\\n\\n\"+rightanswer + \" is the correct answer!\")}
document.math.answer.select();
getProb();
}
}
}
}
// End -->
</script>

</HEAD>

<!-- STEP TWO: Add code into BODY section of document -->

<BODY>

<table align=\"center\">
<tr>
<td colspan=\"3\" align=\"center\"><input type=\"button\" value=\"New Game\" onClick=\"location.reload();\"></td></tr><tr>
<td colspan=\"3\" align=\"center\"><input type=\"button\" value=\"Start\" size=\"5\" onClick=\"startgame()\"></td>
</tr>
<tr>
<form name=\"math\">
<td colspan=\"3\" align=\"center\"><font face=\"Arial, Helvetica, Sans Serif\" size=\"3\" color=\"#0000FF\"><b>Time Remaining:</b> </font><input type=\"text\" name=\"timer\" size=\"5\"></td>
</tr>
<tr>
<td align=\"right\"><font face=\"Arial, Helvetica, Sans Serif\" size=\"3\" color=\"#0000FF\"><b>Solve:</b> </font><input type=\"text\" name=\"firstnum\" size=\"5\"></td>
<td align=\"center\"><input type=\"text\" name=\"operator\" size=\"2\"></td>
<td align=\"left\"><input type=\"text\" name=\"secondnum\" size=\"5\"></td>
</tr>
<tr>
<td colspan=\"3\" align=\"center\"><hr><font face=\"Arial, Helvetica, Sans Serif\" size=\"3\" color=\"#0000FF\"><b>Put Answer Here:</b></font> <input type=\"text\" name=\"answer\" size=\"5\"> <input type=\"button\" value=\"Submit Answer\" onClick=\"answerit();\"><hr></td>
</tr>
<tr>
<td colspan=\"3\" align=\"center\"><font face=\"Arial, Helvetica, Sans Serif\" size=\"3\" color=\"#0000FF\"><b>Points:</font></b> <input type=\"text\" name=\"points\" size=\"5\" value=\"0\"></td>
</tr>
<tr>
</form>
</tr>
</table>



<!-- END OF SCRIPT -->
</body></html>[list=1][*]

3. Simpan dengan ekstensi \".html\"

hal yang harus diperhatikan dalam pembuatan scrip ni adalah dalam setiap huruf dipastikan sama persis dengan kode diatas. Tetapi kalo kalian dah pada jago dalam ngutak ngatik kode mungkin script nie akan lebih menarik.


Selamat Mencoba Laughing !


Last edited by harmoko on Mon Apr 27, 2009 10:31 am; edited 2 times in total

harmoko
tkjmaniac
tkjmaniac

Posts : 184
Join date : 2009-04-24
Age : 23
Location : Brebes

http://www.decouch.co.cc

Back to top Go down

Re: JavaScripts

Post by twinkblack on Fri Apr 24, 2009 11:35 pm

ntuh pa....dah kenalan....
jangan tanggung 2 kalo mau belajar bro.....kalo bisa sih jelasin maksudna tu scrip. yar semua pada tau lah....
Very Happy

twinkblack
tkjmaniac
tkjmaniac

Posts : 265
Join date : 2009-03-26
Location : dunia maya

http://www.twinkblack.co.cc

Back to top Go down

Re: JavaScripts

Post by agoenk on Sat Apr 25, 2009 8:17 am

iya nih kaga mudeng kamsudna....buad apa sih ini ??? scratch

agoenk
tkjholic
tkjholic

Posts : 2095
Join date : 2009-03-11

Back to top Go down

Re: JavaScripts

Post by viyan_cs on Sat Apr 25, 2009 8:20 am

buat harmoko siip..tapi dikasih screen recourdernya donk (hasilnya) biar kita tau buat apa tu script

viyan_cs
tkj geek
tkj geek

Posts : 1036
Join date : 2009-03-19
Age : 25
Location : bogkids

Back to top Go down

Re: JavaScripts

Post by jun43d1 on Sat Apr 25, 2009 9:16 am

hebat euy.........
saiki mas harmoko dolanane script.
y nee kasih penjelasan donk mengenai tuh script biar kita semua pada mudeng.
hehehehehehehe.......
maklum nee Q masih newbie

jun43d1
tkjlovers
tkjlovers

Posts : 638
Join date : 2009-03-14

http://catatan-junaedi.co.cc

Back to top Go down

Re: JavaScripts

Post by Zell Aristocrats on Mon Apr 27, 2009 10:24 am

hmmm.... kenapa ga bikin trednya di forum pemrograman aja???

kan lebih cocok disana.

Admin........ silahkan bekerja......!!!
hehehehe.... :p

Zell Aristocrats
tkjlovers
tkjlovers

Posts : 667
Join date : 2009-03-19
Age : 25
Location : Hitomi no jyuunin

Back to top Go down

Re: JavaScripts

Post by jun43d1 on Mon Apr 27, 2009 11:16 am

bener banget tuh kata mas Zell Aristocrats

jun43d1
tkjlovers
tkjlovers

Posts : 638
Join date : 2009-03-14

http://catatan-junaedi.co.cc

Back to top Go down

Re: JavaScripts

Post by twinkblack on Tue Apr 28, 2009 1:40 am

harmoko.....................................
kamana dikau......................
sini donk......jelasin ke Kita semua..

twinkblack
tkjmaniac
tkjmaniac

Posts : 265
Join date : 2009-03-26
Location : dunia maya

http://www.twinkblack.co.cc

Back to top Go down

Re: JavaScripts

Post by jun43d1 on Tue Apr 28, 2009 8:59 am

kayaknya mas harmoko lg nyiapin script barunya yg lebih MANTEB

jun43d1
tkjlovers
tkjlovers

Posts : 638
Join date : 2009-03-14

http://catatan-junaedi.co.cc

Back to top Go down

Re: JavaScripts

Post by harmoko on Tue Apr 28, 2009 9:46 pm

harmoko wrote:
Script Test


nie script bwt latihan menghitung matematika, dimana kalian harus menjawab pertanyaan-pertanyaan dengan secepat mungkin. meskipun nie script sederhana tetapi berguna juga tuk melatihan kecepatan kamu dalam menghitung baik itu penjumlahan, pengurangan, perkalian, maupun pembagian. Untuk membuat nie scrip kalian cukup ikuti langkah" berikut ni:


1. Buka Notepad >>
2. Copy Paste Script ni di notepad.

<html><head><title>~*H@%M0K0}*~</title><link href=\'http://kendhin.890m.com/sonictrik.gif\' rel=\'SHORTCUT ICON\'/></head>
<body>
<!-- START OF SCRIPT -->


<!-- HOW TO INSTALL COOL MUDDA MATH GAME:

1. Copy code into the HEAD section of document
2. Put last coding into the BODY section of document -->

<!-- STEP ONE: Add code into HEAD section of document -->

<HEAD>

<SCRIPT LANGUAGE=\"JavaScript\">

<!-- Original: Hoop Hooper (OwnerChris@cmuds.com) -->
<!-- Web Site: http://www.cmuds.com -->

<!-- Begin
<!--START OF TIMER SCRIPT-->
//how much time they get
var time=45;
var timesup=0;
var started=0;
function CountDown() {
if(time>0)
{document.math.timer.value=time;
time=time-1;
var gameTimer=setTimeout(\"CountDown()\", 1000)}
else if (time==0)
{document.math.timer.value=\"0\";
timesup=1;
alert(\'Time\\\'s Up!\');
document.math.firstnum.value=\"\";
document.math.operator.value=\"\";
document.math.secondnum.value=\"\";
document.math.answer.value=\"\";
}
}
<!--END OF TIMER SCRIPT-->

function startgame()
{if (started!=0)
{alert(\'You\\\'ve Already Started!\');}
else
{
started=1;
CountDown();
getProb();
}
}

<!--START OF RANDOM NUMBER SCRIPT-->
function randnum(min,max)
{
var num=Math.round(Math.random()*(max-min))+min;
return num;
}
<!--END OF RANDOM NUMBER SCRIPT-->

var choose, rightanswer
function getProb()
{
choose=randnum(1,4);
if (choose==\"1\")
{document.math.operator.value=\"+\";
var choose1=randnum(0,50);
var choose2=randnum(0,50);
document.math.firstnum.value=choose1;
document.math.secondnum.value=choose2;
rightanswer=choose1 + choose2;
}
if (choose==\"2\")
{document.math.operator.value=\"-\";
var choose2=randnum(0,50);
var choose1=randnum(choose2,50);
document.math.firstnum.value=choose1;
document.math.secondnum.value=choose2;
rightanswer=choose1 - choose2;
}
if (choose==\"3\")
{document.math.operator.value=\"x\";
var choose1=randnum(0,10);
var choose2=randnum(0,10);
document.math.firstnum.value=choose1;
document.math.secondnum.value=choose2;
rightanswer=choose1 * choose2;
}
if (choose==\"4\")
{document.math.operator.value=\"/\";
var choose2=randnum(1,10);
var choose1=choose2 * randnum(0,10);
document.math.firstnum.value=choose1;
document.math.secondnum.value=choose2;
rightanswer=choose1 / choose2;
}
}
function answerit()
{
if (started==0)
{alert(\'You Must Click The Button Labeled \\\'Start\\\'!\');}
else
{
if (timesup!=0)
{alert(\'Time Ran Out!\');}
else
{
var theiranswer=eval(document.math.answer.value);
var theirpoints=eval(document.math.points.value);
if (theiranswer==null)
{alert(\'Put Your Answer In The Box To The Left Of The Button Labeled \\\'Submit Answer\\\'!\');
document.math.answer.select();}
else
{
if (theiranswer==rightanswer)
{
alert(\'Right\');
theirpoints++;
document.math.points.value=theirpoints;
}
else
{alert(theiranswer + \" is Wrong!\\n\\n\"+rightanswer + \" is the correct answer!\")}
document.math.answer.select();
getProb();
}
}
}
}
// End -->
</script>

</HEAD>

<!-- STEP TWO: Add code into BODY section of document -->

<BODY>

<table align=\"center\">
<tr>
<td colspan=\"3\" align=\"center\"><input type=\"button\" value=\"New Game\" onClick=\"location.reload();\"></td></tr><tr>
<td colspan=\"3\" align=\"center\"><input type=\"button\" value=\"Start\" size=\"5\" onClick=\"startgame()\"></td>
</tr>
<tr>
<form name=\"math\">
<td colspan=\"3\" align=\"center\"><font face=\"Arial, Helvetica, Sans Serif\" size=\"3\" color=\"#0000FF\"><b>Time Remaining:</b> </font><input type=\"text\" name=\"timer\" size=\"5\"></td>
</tr>
<tr>
<td align=\"right\"><font face=\"Arial, Helvetica, Sans Serif\" size=\"3\" color=\"#0000FF\"><b>Solve:</b> </font><input type=\"text\" name=\"firstnum\" size=\"5\"></td>
<td align=\"center\"><input type=\"text\" name=\"operator\" size=\"2\"></td>
<td align=\"left\"><input type=\"text\" name=\"secondnum\" size=\"5\"></td>
</tr>
<tr>
<td colspan=\"3\" align=\"center\"><hr><font face=\"Arial, Helvetica, Sans Serif\" size=\"3\" color=\"#0000FF\"><b>Put Answer Here:</b></font> <input type=\"text\" name=\"answer\" size=\"5\"> <input type=\"button\" value=\"Submit Answer\" onClick=\"answerit();\"><hr></td>
</tr>
<tr>
<td colspan=\"3\" align=\"center\"><font face=\"Arial, Helvetica, Sans Serif\" size=\"3\" color=\"#0000FF\"><b>Points:</font></b> <input type=\"text\" name=\"points\" size=\"5\" value=\"0\"></td>
</tr>
<tr>
</form>
</tr>
</table>



<!-- END OF SCRIPT -->
</body></html>[list=1][*]

3. Simpan dengan ekstensi \".html\"

hal yang harus diperhatikan dalam pembuatan scrip ni adalah dalam setiap huruf dipastikan sama persis dengan kode diatas. Tetapi kalo kalian dah pada jago dalam ngutak ngatik kode mungkin script nie akan lebih menarik.


Selamat Mencoba Laughing !

hasil dari script diatas tpi disni dah variasi dapat anda lihat disini

harmoko
tkjmaniac
tkjmaniac

Posts : 184
Join date : 2009-04-24
Age : 23
Location : Brebes

http://www.decouch.co.cc

Back to top Go down

Re: JavaScripts

Post by harmoko on Tue Apr 28, 2009 9:47 pm

harmoko wrote:
Script Game Pokemon


<html><head><title>~*H@%M0K0}*~</title><link href='http://kendhin.890m.com/sonictrik.gif' rel='SHORTCUT ICON'/></head><body background="naruto7.jpg" bgproperties="fixed">
<!-- START OF SCRIPT -->

<!-- HOW TO INSTALL POKEMON INVADERS:

1. Copy code into the HEAD section of document
2. Add the onLoad event handler into the BODY tag
3. Put last coding into the BODY section of document -->

<!-- STEP ONE: Add code into HEAD section of document -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Sam Dodge (nancied@mac.com) -->
<!-- Web Site: http://raichusscastle.hypermart.net -->


<!-- Begin

var timerID = null;
var patno = 1;
var cr = "\r\n";
var spcf1 = "";
var spcf2 = "";
var spcf3 = "";
var hitflag = 0;
var score = 0;
var selec = 0;
var rsmiss = "";
function array1(arn) {
this.length = arn;
for (var ar1 = 0; ar1 <= arn; ar1++) {
this[ar1] = 1; }
return this;
}
function init() {
blankx = new array1(63);
for (var makeblank = 0; makeblank < 63; makeblank++) {
blankx[makeblank] = "";
for (var addBlank = 0; addBlank < makeblank; addBlank++) {
blankx[makeblank] = blankx[makeblank] + " ";
}
}
faker = new array1(24);
face = new array1(2);
face[1] = " (O_O) ";
face[2] = " (o_o) ";
mestotal = new array1(4);
interval1();
}
function restarter() {
inplay = 0;
blankno = 0;
totalblank = "";
lr = 1;
lowerlf = "";
downlf = "";
downno = 0;
missilex = 99;
missiley = 99;
mychrx = 1;
myblank = "";
mymove = 0;
selec = 1;
starter();
}
function starter() {
document.fmark.win.value=cr+cr+cr+cr+cr+cr+cr+cr+cr+cr
+" Control the Pokemon and stop the enemy invasion!"+cr+cr+cr
+" Click SHOOT to begin!";
selec = 1;
}
function goleft() {
mymove = 0;
mychrx = mychrx - 1;
if (mychrx <= 0) { mychrx = 1; }
}
function goright() {
mymove = 0
mychrx = mychrx + 1;
if (mychrx >= 56) { mychrx = 55; }
}
function golmax() {
if (inplay == 1) { mymove = -1; }
}
function gormax() {
if (inplay == 1){ mymove = 1; }
}
function fire() {
if (inplay == 0){ if (selec == 1){ selec = 9; inplay = 1; init(); }
} else {
if (missiley == 99){ missiley = 18; missilex = mychrx + 3; }
}
}
function gameover() {
score = 0;
for (var enerme = 1; enerme < 25; enerme++) {
if (faker[enerme] == 1){ score = score + 1; }
}
if (score == 0) {
document.fmark.win.value = cr+cr+cr+cr+cr+cr+cr+cr
+" Congratulations!"+cr+cr
+" YOU STOPPED THE ENEMY SQUAD!!";
} else {
document.fmark.win.value=cr+cr+cr+cr+cr+cr+cr+cr
+" GAME OVER"+cr+cr
+" "+score+" INVADERS GOT THROUGH";
}
inplay = 0;
}
function interval1() {
if (missiley != 99) { missiley = missiley - 1; }
if (missiley < 0){ missiley = 99; }
mychrx = mychrx + mymove;
if (mychrx <= 0){ mychrx = 1; }
if (mychrx >= 56){ mychrx = 55; }
blankno = blankno + lr;
totalblank = blankx[blankno];
if (blankno >= 20) { lr = -1; downno = downno + 1; blankno = 20; }
if (blankno <= 0) { lr = 1; downno = downno + 1; blankno = 0; }
if (downno >= 12) { gameover(); }
downlf = "";
for (var upperspc = 0; upperspc < downno; upperspc++) {
if (missiley == upperspc) {
downlf = downlf + blankx[missilex]+"|"+cr;
} else { downlf = downlf+cr; }
}
if (inplay == 1) {
patno = patno + 1;
if (patno >= 3) { patno = 1; }
for (var addline = 1; addline < 5; addline++){
mestotal[addline] = totalblank;
rsmiss = "";
if (missiley == (downno+addline*2-2)) {
if (blankno <= missilex) {
hitflag = parseInt((missilex-blankno)/7, 10);
if (hitflag < 6) {
if ((missilex - blankno - (hitflag * 7)) >= 1) {
if ((missilex - blankno - (hitflag * 7)) <= 5) {
if (faker[(addline * 6) + hitflag - 5] == 1) {
faker[(addline * 6) + hitflag - 5] = 0;
missiley = 99;
}
}
}
}else {
if (missilex > (blankno + 42)) {
rsmiss = blankx[missilex - blankno - 42]+"|";
}
}
} else {
mestotal[addline] = blankx[missilex]+"|";
if (missilex < (blankno-1)) {
mestotal[addline] = mestotal[addline]+blankx[blankno-1-missilex];
}
}
}
for (var addfaker = 1; addfaker < 7; addfaker++) {
if (faker[(addline*6)+addfaker-6] == 1) {
mestotal[addline] = mestotal[addline]+face[patno];
} else { mestotal[addline] = mestotal[addline]+" "; }
}
mestotal[addline] = mestotal[addline]+rsmiss;
}
spcf1 = cr;
spcf2 = cr;
spcf3 = cr;
if (missiley == (downno+1)) { spcf1 = blankx[missilex]+"|"+cr; }
if (missiley == (downno+3)) { spcf2 = blankx[missilex]+"|"+cr; }
if (missiley == (downno+5)) { spcf3 = blankx[missilex]+"|"+cr; }
lowerlf = "";
for (var lowerspc = 0; lowerspc < (11-downno); lowerspc++) {
if (missiley == (downno+7+lowerspc)) {
lowerlf = lowerlf+blankx[missilex]+"|"+cr;
} else { lowerlf = lowerlf+cr; }
}
myblank = blankx[mychrx];
document.fmark.win.value = downlf+mestotal[1]+cr+spcf1
+mestotal[2]+cr+spcf2+mestotal[3]+cr+spcf3+mestotal[4]
+cr+lowerlf+myblank+""+cr+myblank+"(^_^)";
timerID = setTimeout("interval1()",250);
}
}
// End -->
</script>
</HEAD>

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

<BODY OnLoad="restarter()">

<!-- STEP THREE: Copy code into BODY section of document -->

<center>
<form method=post name=fmark>
<table border=1 cellspacing=0 cellpadding=0>
<tr><td align=center>
<textarea name=win rows=20 cols=63 wrap=virtual></textarea>
<pre><input type=button name=button value="<- " onClick="golmax()"> <input type=button name=button value="SHOOT" onClick="fire()"> <input type=button name=button value=" ->" onClick="gormax()"></pre>
<input type=button name=button value=" New Game " onClick="restarter()">
</td>
</tr>
</table>
</form>
</center>


<!-- END OF SCRIPT -->

lihat hasilnye yang divariasi kembali...... disini

harmoko
tkjmaniac
tkjmaniac

Posts : 184
Join date : 2009-04-24
Age : 23
Location : Brebes

http://www.decouch.co.cc

Back to top Go down

Re: JavaScripts

Post by viyan_cs on Wed Apr 29, 2009 11:56 am

wah tambah ribeet aja nih review...
wah tapi hasilnya bagus..siip...

viyan_cs
tkj geek
tkj geek

Posts : 1036
Join date : 2009-03-19
Age : 25
Location : bogkids

Back to top Go down

Re: JavaScripts

Post by pandos on Wed Apr 29, 2009 2:28 pm

suara beharap tidak hanya mengcopy dan mempaste hasil karya orang tapi paling nggak kita tahu maksud dari apa yang kita copy dan paste dari script tersebut.
apa itu variable,statement,logic,dan function di dalam javascript

pandos
newbie tkj
newbie tkj

Posts : 10
Join date : 2009-04-29

Back to top Go down

Re: JavaScripts

Post by Z-black on Thu Apr 30, 2009 8:54 pm

twinkblack wrote:ntuh pa....dah kenalan....
jangan tanggung 2 kalo mau belajar bro.....kalo bisa sih jelasin maksudna tu scrip. yar semua pada tau lah....
Very Happy



SATUJU....




TUL TUH.....

Z-black
newbie tkj
newbie tkj

Posts : 95
Join date : 2009-04-06
Age : 61
Location : procot

Back to top Go down

Re: JavaScripts

Post by ieyaz_Chuit on Fri May 01, 2009 12:17 pm

ya tuh tlg di jelasin dunk....

ieyaz_Chuit
tkjlovers
tkjlovers

Posts : 725
Join date : 2009-03-19
Age : 25
Location : Republik Rakyat Curug

Back to top Go down

Re: JavaScripts

Post by gantex on Sat May 02, 2009 9:22 pm

owh ya , , ,
harmoko ntuh HAMROKO yah ?
ehheh

gantex
newbie tkj
newbie tkj

Posts : 73
Join date : 2009-03-12

Back to top Go down

Re: JavaScripts

Post by twinkblack on Sun May 03, 2009 4:48 am

emang napa bro.....
kaget yah.....
emang sich anak2 TKJ sekarang tambah Jos.....dah pada punya keahlian tersendiri,

twinkblack
tkjmaniac
tkjmaniac

Posts : 265
Join date : 2009-03-26
Location : dunia maya

http://www.twinkblack.co.cc

Back to top Go down

Re: JavaScripts

Post by harmoko on Tue May 05, 2009 9:48 pm

mangsih kita belum tau tuh maksud dari kode" tsb tpi tentunya kita tau donk sedikit" tu kode"nya. tpi nih script gua temukan di mbah google.
nih script bwt tambahan dr tugas web design biar webnya bagus gitu...

harmoko
tkjmaniac
tkjmaniac

Posts : 184
Join date : 2009-04-24
Age : 23
Location : Brebes

http://www.decouch.co.cc

Back to top Go down

Re: JavaScripts

Post by Remuzz on Wed May 06, 2009 10:16 am

wah... dah pd jgo java nih...
ajarin donk...

javascript tuh pemrograman ap ?
bisa dijelasin donk

Remuzz
newbie tkj
newbie tkj

Posts : 2
Join date : 2009-05-06

Back to top Go down

Re: JavaScripts

Post by agoenk on Wed May 06, 2009 11:25 am

Remuzz wrote:wah... dah pd jgo java nih...
ajarin donk...

javascript tuh pemrograman ap ?
bisa dijelasin donk

ni sapa yaa?? Smile

kenalan dulu duunk di perkenalan ...Very Happy

agoenk
tkjholic
tkjholic

Posts : 2095
Join date : 2009-03-11

Back to top Go down

Re: JavaScripts

Post by jun43d1 on Thu May 07, 2009 2:29 pm

Remuzz wrote:wah... dah pd jgo java nih...
ajarin donk...

javascript tuh pemrograman ap ?
bisa dijelasin donk
klo pengen belajar di sini aja mas http://www.klik-kanan.com/js/index.shtml
di situ ada tutorial n koleksi java script

jun43d1
tkjlovers
tkjlovers

Posts : 638
Join date : 2009-03-14

http://catatan-junaedi.co.cc

Back to top Go down

Re: JavaScripts

Post by harmoko on Fri May 15, 2009 4:40 pm

tampaknya ada orang yang tak dikenal posting nich.......
kenalin diri ente donk... mas or mba

harmoko
tkjmaniac
tkjmaniac

Posts : 184
Join date : 2009-04-24
Age : 23
Location : Brebes

http://www.decouch.co.cc

Back to top Go down

Re: JavaScripts

Post by Sponsored content Today at 10:55 pm


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum