Post by Zatamoru on May 4, 2007 18:03:01 GMT -4
Hi i was just gonna post this javascript i updated and was wondering wat you guys thought. Just put the code it in notepad and then save it as something.htm and go into my computer and click on it.
---------------------------------------------------------------------------------------
<html>
<head>
<title>Crazy Duck</title>
</head>
<body>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
now=new Date;
x=now.getTime() %32768;
function Random(min,max) {
x=(1103515245*x+12345) % 32768;
return Math.floor(x*(max-min+1)/32768+min);
}
var num = new Array;
num[0] = -1;
num[1] = 1;
var ctrsmit = new Array;
ctrsmit[0] = '<<|X^X|>>';
ctrsmit[1] = '<<|!^!|>>';
ctrsmit[2] = '<<| : ( |>>';
ctrsmit[3] = '<<|S.O.S.|>>';
var i = 0, will2live = 0;
function livewill(j) {
i += j;
if (i == 0) tLiphe();
if (i < 6) stat(mood[3]);
if (oldstats == mood[3] && i >= 6) stat(mood[0]);
if (alive == true) {
barzies(i);
}
}
var bars='';
function barzies(num) {
bars='';
for (var i=0;i!=num;i++) bars += 'R';
document.ctrform.will.value = bars;
}
var mood = new Array;
mood[0] = 'Crazyl';
mood[1] = 'he is wierded out';
mood[2] = 'Fureakin Mad';
mood[3] = 'Homosidal';
mood[4] = 'Freaked out';
mood[5] = 'Almost Dead';
mood[6] = 'Can I be Duck Again?';
var Stat = new Array;
Stat[0] = 'Alive';
Stat[1] = 'Ducky diaper cleaned';
Stat[2] = 'Ducky diaper not messy';
Stat[3] = 'Feelin Bruises';
Stat[4] = 'Got hit by a boat and Died';
Stat[5] = 'Infected by bad gravy!';
Stat[6] = 'Healed with good gravy!';
Stat[7] = 'Yucky Ducky that is nasty!!';
Stat[8] = 'Slobbering like a mad cow..';
Stat[9] = 'passed out';
Stat[10] = 'Duck wishin';
var alive = false, aniID, statID, moodID, liveID, crapID, sickID, illID, normguy = '<<(¤_¤)>>';
function gLiphe() {
normguy = '<<(¤_¤)>>';
stat('Hunting with Net...');
livewill(15);
statID = setTimeout("stat(Stat[0])",3500);
setTimeout("alive = true",3500);
Animate(false,'(=o=)');
aniID = setTimeout("Animate(false,'<<(ov0)>>')",2500);
aniID = setTimeout("Animate(false,'(Ovo)>>')",3500);
aniID = setTimeout("Animate(false,'<<(ovo)>>')",4300);
aniID = setTimeout("Animate(false,'<<(ovO)')",4500);
aniID = setTimeout("Animate(false,'<<(ovo)>>')",5300);
aniID = setTimeout("Animate(false,'(Ovo)>>')",5500);
aniID = setTimeout("Animate(false,normguy)",6500);livewill(15);
setTimeout("independence()",6501)
}
function ID(dep) {
clearTimeout(aniID);
clearTimeout(statID);
clearTimeout(liveID);
clearTimeout(crapID);
if (dep == true) clearTimeout(independ);
}
var f, t = ' ';
function Animate(auto,ctrex) {
if (auto == false) f = ctrex;
if (auto == true) t = spacey.substring(0,Pos());
document.ctrform.ctr.value = t + ctrex + poopie();
}
var indID, independ;
function independence() {
independ = setTimeout("Animate(true,f)",400);
independ = setTimeout("Animate(true,f)",1200);
independ = setTimeout("Animate(true,f)",2000);
independ = setTimeout("Animate(true,f)",2800);
independ = setTimeout("Animate(true,f)",3600);
indID = setTimeout("independence()",4000);
}
var spacey = ' ', k, l = 10;
function Pos() {
k = Random(0,1)
if (k == 0) {
if (t.length < 22) return l++;
else if (t.length >= 22) Pos()
}
if (k == 1) {
if (t.length > 0) return l--;
else if (t.length == 0) return l++;
}
}
var poop = false;
function poopie() {
if (poop == true) return " <<Stinky>> ";
else return '';
}
function eatpoop() {
if (poop == false) {
document.ctrform.phood.selectedIndex = 0;
stat(Stat[2]);
}
if (poop == true) {
ID(true);
eatpoopie();
}
}
function eatpoopie() {
poop = false;
eat(false,'<<Stinky>>');
aniID = setTimeout("Animate(false,'<(¯v>)>')",750);
if (sick == false) setTimeout("befect()",4000);
}
var pasto,healthy,eaty='<(¯o¯)>',eati='<(¯v¯)>',eaty2;
function eat(health,pasti) {
healthy = health;
pasto = pasti;
if (sick == true) {
eaty = '<(¡<>¡)>';
eaty2 = '<(¡>)>';
eati = '<(¡v¡)>';
}
else {
eaty = '<(¯<>¯)>';
eaty2 = '<(¯>)>';
eati = '<(¯v¯)>';
}
Animate(false,eati +' '+ pasto);
aniID = setTimeout("Animate(false,eaty +' '+ pasto)",150);
aniID = setTimeout("Animate(false,eaty +' '+ pasto)",300);
aniID = setTimeout("Animate(false,eaty + pasto)",450);
aniID = setTimeout("Animate(false,eaty2+ pasto)",600);
setTimeout("phood(healthy)",650);
}
function pheed(antipasto) {
if (antipasto == 0) eat(true,'o>');
else if (antipasto == 1) eat(true,'ð');
else if (antipasto == 1) eat(true,'9');
else if (antipasto == 2) eatpoop();
}
function takeone() {
ID(true);
Animate(false,'<(¯v¯)>');
aniID = setTimeout("Animate(false,'<(>v<)>')",500);
aniID = setTimeout("Animate(false,'<(¯¤¯)>')",1300);
aniID = setTimeout("Animate(false,'<(>v<)>')",2600);
aniID = setTimeout("Animate(false,normguy)",4800);
setTimeout("infekt()",4799);
setTimeout("poop = true",4799);
full = 0;
}
function cleancage() {
if (poop == false) stat(Stat[2]);
if (poop == true) {
poop = false;
Animate(false,normguy);
stat(Stat[1]);
clearTimeout(sickID);
ickcount = 0;
}
}
function tLiphe() {
normguy = '<(×-×)>';
poop = false;
clearTimeout(sickID);
clearTimeout(illID);
clearTimeout(indID);
ID(true);
sick = false;
full = 0;
l = 1;
i = 0;
aniID = setTimeout("Animate(false,normguy)",1);
statID = setTimeout("stat(Stat[4])",1);
barzies(0);
bruised = 0;
poked = false;
alive = false;
}
var oldstats, ick = '';
function stat(stats) {
ick = '';
oldstats = stats;
if (sick == true) ick = '[Infreakinfected] ';
document.ctrform.ctrstatus.value = ick + oldstats;
}
var j;
function smite() {
if (sick == false) normguy = '<(<ò>_<ò>)>';
ID(true);
statID = setTimeout("stat(Stat[3])",10);
aniID = setTimeout("Animate(false,ctrsmit[Random(0,1)])",10);
liveID = setTimeout("livewill(num[0])",20);
aniID = setTimeout("Animate(false,normguy)",1300);
statID = setTimeout("stat(mood[1])",1300);
}
var full = 0;
function phood(salubrious) {
if (sick == false) normguy = '<(^v^)> ';
ID(true);
full++;
if (salubrious == true) livewill(num[1]);
aniID = setTimeout("Animate(false,eaty)",200);
aniID = setTimeout("Animate(false,eati)",700);
aniID = setTimeout("Animate(false,eaty)",1200);
aniID = setTimeout("Animate(false,eati)",1700);
aniID = setTimeout("Animate(false,eaty)",2200);
aniID = setTimeout("Animate(false,eati)",2700);
aniID = setTimeout("Animate(false,normguy)",3200);
if (full == 3) setTimeout("takeone()",6000);
if (full >= 3) full = 0;
}
var sick = false, ickcount = 0;
function infekt() {
ickcount++;
if (ickcount != 2) sickID = setTimeout("infekt()",30000);
if (ickcount == 2) befect();
}
function befect() {
sick = true;
setTimeout("stat(Stat[5])",500);
ickcount = 0;
besick();
normguy = '<(¡^¡)>';
}
function besick() {
livewill(num[0]);
Animate(false,normguy);
if (sick == true) illID = setTimeout("besick()",2000);
}
function dnfekt() {
if (sick == false) stat(Stat[7]);
if (sick == true) {
if (poop == false) clearTimeout(sickID);
normguy = ' <(^_^)>';
eat(false,'¤');
sick = false;
setTimeout("stat(Stat[6])",4000);
ickcount = 0;
if (poop == true) infekt();
}
}
function scratchyscratchy() {
normguy = '<(^v^)>';
ID(true);
statID = setTimeout("stat(Stat[8] +'(scratch scratch)')",710);
aniID = setTimeout("Animate(false,' ; p')",200);
aniID = setTimeout("Animate(false,' ¦ P¨')",800);
aniID = setTimeout("Animate(false,' ò p ¨')",1400);
aniID = setTimeout("Animate(false,' ¦ P¨¨')",2000);
aniID = setTimeout("Animate(false,' ¦ p ¨¨')",2600);
aniID = setTimeout("Animate(false,' ¦ P¨¨¨')",3400);
aniID = setTimeout("Animate(false,' ¦ p ¨¨¨')",4200);
aniID = setTimeout("Animate(false,' ¦ P ¨¨¨¨')",5000);
aniID = setTimeout("Animate(false,' : P¨')",5600);
aniID = setTimeout("Animate(false,normguy)",6600);
statID = setTimeout("stat(mood[0])",6600);
liveID = setTimeout("livewill(num[1])",6600);
}
function human() {
if (sick == false) normguy = '<(<ò_ò>)>';
ID(true);
statID = setTimeout("stat(Stat[10])",10);
aniID = setTimeout("Animate(false,ctrsmit[Random(2,3)])",10);
liveID = setTimeout("livewill(num[0])",20);
aniID = setTimeout("Animate(false,normguy)",1300);
statID = setTimeout("stat(mood[6])",1300);
}
function sleep() {
normguy = '<(-v-)>';
ID(true);
statID = setTimeout("stat(Stat[9] +'(zZzZzzzZZ)')",710);
aniID = setTimeout("Animate(false,' (-v-)zzzzzzz')",200);
aniID = setTimeout("Animate(false,' (-v-)zzzzzz')",800);
aniID = setTimeout("Animate(false,'(-v-)zzz')",1400);
aniID = setTimeout("Animate(false,' (-v-)zzzzz')",2000);
aniID = setTimeout("Animate(false,' (-v-)zz')",2600);
aniID = setTimeout("Animate(false,' (-v-)zzzzz')",3400);
aniID = setTimeout("Animate(false,'(-v-)zzzzz')",4200);
aniID = setTimeout("Animate(false,' (-v-)zzz')",5000);
aniID = setTimeout("Animate(false,' (-v-)zzzz')",5600);
aniID = setTimeout("Animate(false,normguy)",6600);
statID = setTimeout("stat(mood[0])",6600);
liveID = setTimeout("livewill(num[1])",6600);
}
function change() {
normguy = '=^)';
}
function rub() {
normguy = '<(^O^)>';
ID(true);
statID = setTimeout("stat(Stat[8] +'(rubing in proccess rub rub)')",710);
aniID = setTimeout("Animate(false,' (-^0)')",200);
aniID = setTimeout("Animate(false,' (0^-)')",800);
aniID = setTimeout("Animate(false,' (-^0)')",1400);
aniID = setTimeout("Animate(false,' (0^-)')",2000);
aniID = setTimeout("Animate(false,' (-^0)')",2600);
aniID = setTimeout("Animate(false,' (0^-)')",3400);
aniID = setTimeout("Animate(false,' (-^0)')",4200);
aniID = setTimeout("Animate(false,' (0^-)')",5000);
aniID = setTimeout("Animate(false,' (-^0)')",5600);
aniID = setTimeout("Animate(false,normguy)",6600);
statID = setTimeout("stat(mood[0])",6600);
liveID = setTimeout("livewill(num[1])",6600);
}
function taxi() {
normguy = '<(-^-)>';
ID(true);
statID = setTimeout("stat(Stat[8] +'(riding in dangerous cab)')",710);
aniID = setTimeout("Animate(false,' (Car)')",200);
aniID = setTimeout("Animate(false,' ( Car)')",800);
aniID = setTimeout("Animate(false,' ( Car)')",1400);
aniID = setTimeout("Animate(false,' ( Car--->Tree)')",2000);
aniID = setTimeout("Animate(false,' ( Duck in Tree)')",2600);
aniID = setTimeout("Animate(false,' (Duck in hospital)')",3400);
aniID = setTimeout("Animate(false,' (Duck sues cab)')",4200);
aniID = setTimeout("Animate(false,' (Duck wins)')",5000);
aniID = setTimeout("Animate(false,' (Duck beat up in alley)')",5600);
aniID = setTimeout("Animate(false,normguy)",6600);
statID = setTimeout("stat(mood[5])",6600);
liveID = setTimeout("livewill(num[0])",6600);
}
var bruised = 0, poked = false;
function poke() {
if (bruised >= 7) {
normguy='o_*';
aniID = setTimeout("Animate(false,'(Ov-)')",1);
liveID = setTimeout("livewill(num[0])",1);
if (poked == false) statID = setTimeout("stat('You poked his eyes into his brain!!')",10);
aniID = setTimeout("Animate(false,normguy)",300);
poked = true;
}
if (bruised < 7) {
bruised++;
normguy = '<(^_^)>'
aniID = setTimeout("Animate(false,' <(^o^)>')",1);
liveID = setTimeout("livewill(num[1])",1);
statID = setTimeout("stat('ohhya...')",10);
aniID = setTimeout("Animate(false,normguy)",300);
}
}
// End -->
</script>
</HEAD>
<BODY>
<center>
<form name="ctrform">
<table BORDER="4" CELLSPACING="5" CELLPADDING="5" bgcolor="yellow">
<tr><td><font color="black"><br>
<table>
<tr>
<th>How much more can it take?</th>
<th>How is it?</th>
</tr>
<tr>
<td><div align="center"><center><p><input type="text" size="20" name="will"></td>
<td align="center"><input type="text" size="25" name="ctrstatus"></td>
</tr>
<tr align="center">
<th>Crazy Migrating Duck with Rabbies</th>
<th>What you gonna do bout it?</th>
</tr>
<tr align="center">
<td><input type="text" name="ctr" size="30" onFocus="if (alive == true) tLiphe()"></td>
<td><div align="center"><center><p><input type="button" value="Catch a Crazy Migrating Duck with Rabbies!"
onClick="if (alive == false) gLiphe()"></td>
</tr>
</table>
<div align="left"><left>
<table>
<tr>
<td><input type="button" value="Smack dat Duck" onClick="if (alive == true) smite()"></td></tr><tr>
<td><input type="button" value="Clean Ducky Diaper" onClick="if (alive == true) cleancage()"></td></tr><tr>
<td><input type="button" value="Give Healing Medication" onClick="if (alive == true) dnfekt()"></td>
</tr>
<tr>
<td><input type="button" value="Give Some Grub"
onClick="if (alive == true) pheed(document.ctrform.phood.selectedIndex)">
<select name="phood" size="1">
<option>Pickle Juice</option>
<option>Worms</option>
<option>Monkey Wings</option>
<option>Potatoes Skins</option>
<option>Cardboard Pizza</option>
</select></td>
</tr>
<tr>
<td><input type="button" value="Claw" onClick="if (alive == true) smite()"></td>
</tr>
<tr>
<td><input type="button" value="Poke Duck Eyes In" onClick="if (alive == true) smite()"><br></td>
</tr>
<td><input type="button" value="Knock Out" onClick="if (alive == true) smite()"></td>
</tr>
<tr>
</tr>
<td><input type="button" value="Rubitize me Cap'n" onClick="if (alive == true) rub()"></td>
<tr>
<td><input type="button" value="Turn Duck into Human" onClick="if (alive == true) human()"></td>
</tr>
<tr>
<td><input type="button" value="Take the Cab" onClick="if (alive == true) taxi()" afterClick="if (alive == true) smite()"></td>
</tr>
</table>
</center>
</div>
</td>
</tr>
</table>
</form>
</center>
<!-- Script Size: 9.71 KB --></body>
</html>
</body>
</html>
---------------------------------------------------------------------------------------
<html>
<head>
<title>Crazy Duck</title>
</head>
<body>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
now=new Date;
x=now.getTime() %32768;
function Random(min,max) {
x=(1103515245*x+12345) % 32768;
return Math.floor(x*(max-min+1)/32768+min);
}
var num = new Array;
num[0] = -1;
num[1] = 1;
var ctrsmit = new Array;
ctrsmit[0] = '<<|X^X|>>';
ctrsmit[1] = '<<|!^!|>>';
ctrsmit[2] = '<<| : ( |>>';
ctrsmit[3] = '<<|S.O.S.|>>';
var i = 0, will2live = 0;
function livewill(j) {
i += j;
if (i == 0) tLiphe();
if (i < 6) stat(mood[3]);
if (oldstats == mood[3] && i >= 6) stat(mood[0]);
if (alive == true) {
barzies(i);
}
}
var bars='';
function barzies(num) {
bars='';
for (var i=0;i!=num;i++) bars += 'R';
document.ctrform.will.value = bars;
}
var mood = new Array;
mood[0] = 'Crazyl';
mood[1] = 'he is wierded out';
mood[2] = 'Fureakin Mad';
mood[3] = 'Homosidal';
mood[4] = 'Freaked out';
mood[5] = 'Almost Dead';
mood[6] = 'Can I be Duck Again?';
var Stat = new Array;
Stat[0] = 'Alive';
Stat[1] = 'Ducky diaper cleaned';
Stat[2] = 'Ducky diaper not messy';
Stat[3] = 'Feelin Bruises';
Stat[4] = 'Got hit by a boat and Died';
Stat[5] = 'Infected by bad gravy!';
Stat[6] = 'Healed with good gravy!';
Stat[7] = 'Yucky Ducky that is nasty!!';
Stat[8] = 'Slobbering like a mad cow..';
Stat[9] = 'passed out';
Stat[10] = 'Duck wishin';
var alive = false, aniID, statID, moodID, liveID, crapID, sickID, illID, normguy = '<<(¤_¤)>>';
function gLiphe() {
normguy = '<<(¤_¤)>>';
stat('Hunting with Net...');
livewill(15);
statID = setTimeout("stat(Stat[0])",3500);
setTimeout("alive = true",3500);
Animate(false,'(=o=)');
aniID = setTimeout("Animate(false,'<<(ov0)>>')",2500);
aniID = setTimeout("Animate(false,'(Ovo)>>')",3500);
aniID = setTimeout("Animate(false,'<<(ovo)>>')",4300);
aniID = setTimeout("Animate(false,'<<(ovO)')",4500);
aniID = setTimeout("Animate(false,'<<(ovo)>>')",5300);
aniID = setTimeout("Animate(false,'(Ovo)>>')",5500);
aniID = setTimeout("Animate(false,normguy)",6500);livewill(15);
setTimeout("independence()",6501)
}
function ID(dep) {
clearTimeout(aniID);
clearTimeout(statID);
clearTimeout(liveID);
clearTimeout(crapID);
if (dep == true) clearTimeout(independ);
}
var f, t = ' ';
function Animate(auto,ctrex) {
if (auto == false) f = ctrex;
if (auto == true) t = spacey.substring(0,Pos());
document.ctrform.ctr.value = t + ctrex + poopie();
}
var indID, independ;
function independence() {
independ = setTimeout("Animate(true,f)",400);
independ = setTimeout("Animate(true,f)",1200);
independ = setTimeout("Animate(true,f)",2000);
independ = setTimeout("Animate(true,f)",2800);
independ = setTimeout("Animate(true,f)",3600);
indID = setTimeout("independence()",4000);
}
var spacey = ' ', k, l = 10;
function Pos() {
k = Random(0,1)
if (k == 0) {
if (t.length < 22) return l++;
else if (t.length >= 22) Pos()
}
if (k == 1) {
if (t.length > 0) return l--;
else if (t.length == 0) return l++;
}
}
var poop = false;
function poopie() {
if (poop == true) return " <<Stinky>> ";
else return '';
}
function eatpoop() {
if (poop == false) {
document.ctrform.phood.selectedIndex = 0;
stat(Stat[2]);
}
if (poop == true) {
ID(true);
eatpoopie();
}
}
function eatpoopie() {
poop = false;
eat(false,'<<Stinky>>');
aniID = setTimeout("Animate(false,'<(¯v>)>')",750);
if (sick == false) setTimeout("befect()",4000);
}
var pasto,healthy,eaty='<(¯o¯)>',eati='<(¯v¯)>',eaty2;
function eat(health,pasti) {
healthy = health;
pasto = pasti;
if (sick == true) {
eaty = '<(¡<>¡)>';
eaty2 = '<(¡>)>';
eati = '<(¡v¡)>';
}
else {
eaty = '<(¯<>¯)>';
eaty2 = '<(¯>)>';
eati = '<(¯v¯)>';
}
Animate(false,eati +' '+ pasto);
aniID = setTimeout("Animate(false,eaty +' '+ pasto)",150);
aniID = setTimeout("Animate(false,eaty +' '+ pasto)",300);
aniID = setTimeout("Animate(false,eaty + pasto)",450);
aniID = setTimeout("Animate(false,eaty2+ pasto)",600);
setTimeout("phood(healthy)",650);
}
function pheed(antipasto) {
if (antipasto == 0) eat(true,'o>');
else if (antipasto == 1) eat(true,'ð');
else if (antipasto == 1) eat(true,'9');
else if (antipasto == 2) eatpoop();
}
function takeone() {
ID(true);
Animate(false,'<(¯v¯)>');
aniID = setTimeout("Animate(false,'<(>v<)>')",500);
aniID = setTimeout("Animate(false,'<(¯¤¯)>')",1300);
aniID = setTimeout("Animate(false,'<(>v<)>')",2600);
aniID = setTimeout("Animate(false,normguy)",4800);
setTimeout("infekt()",4799);
setTimeout("poop = true",4799);
full = 0;
}
function cleancage() {
if (poop == false) stat(Stat[2]);
if (poop == true) {
poop = false;
Animate(false,normguy);
stat(Stat[1]);
clearTimeout(sickID);
ickcount = 0;
}
}
function tLiphe() {
normguy = '<(×-×)>';
poop = false;
clearTimeout(sickID);
clearTimeout(illID);
clearTimeout(indID);
ID(true);
sick = false;
full = 0;
l = 1;
i = 0;
aniID = setTimeout("Animate(false,normguy)",1);
statID = setTimeout("stat(Stat[4])",1);
barzies(0);
bruised = 0;
poked = false;
alive = false;
}
var oldstats, ick = '';
function stat(stats) {
ick = '';
oldstats = stats;
if (sick == true) ick = '[Infreakinfected] ';
document.ctrform.ctrstatus.value = ick + oldstats;
}
var j;
function smite() {
if (sick == false) normguy = '<(<ò>_<ò>)>';
ID(true);
statID = setTimeout("stat(Stat[3])",10);
aniID = setTimeout("Animate(false,ctrsmit[Random(0,1)])",10);
liveID = setTimeout("livewill(num[0])",20);
aniID = setTimeout("Animate(false,normguy)",1300);
statID = setTimeout("stat(mood[1])",1300);
}
var full = 0;
function phood(salubrious) {
if (sick == false) normguy = '<(^v^)> ';
ID(true);
full++;
if (salubrious == true) livewill(num[1]);
aniID = setTimeout("Animate(false,eaty)",200);
aniID = setTimeout("Animate(false,eati)",700);
aniID = setTimeout("Animate(false,eaty)",1200);
aniID = setTimeout("Animate(false,eati)",1700);
aniID = setTimeout("Animate(false,eaty)",2200);
aniID = setTimeout("Animate(false,eati)",2700);
aniID = setTimeout("Animate(false,normguy)",3200);
if (full == 3) setTimeout("takeone()",6000);
if (full >= 3) full = 0;
}
var sick = false, ickcount = 0;
function infekt() {
ickcount++;
if (ickcount != 2) sickID = setTimeout("infekt()",30000);
if (ickcount == 2) befect();
}
function befect() {
sick = true;
setTimeout("stat(Stat[5])",500);
ickcount = 0;
besick();
normguy = '<(¡^¡)>';
}
function besick() {
livewill(num[0]);
Animate(false,normguy);
if (sick == true) illID = setTimeout("besick()",2000);
}
function dnfekt() {
if (sick == false) stat(Stat[7]);
if (sick == true) {
if (poop == false) clearTimeout(sickID);
normguy = ' <(^_^)>';
eat(false,'¤');
sick = false;
setTimeout("stat(Stat[6])",4000);
ickcount = 0;
if (poop == true) infekt();
}
}
function scratchyscratchy() {
normguy = '<(^v^)>';
ID(true);
statID = setTimeout("stat(Stat[8] +'(scratch scratch)')",710);
aniID = setTimeout("Animate(false,' ; p')",200);
aniID = setTimeout("Animate(false,' ¦ P¨')",800);
aniID = setTimeout("Animate(false,' ò p ¨')",1400);
aniID = setTimeout("Animate(false,' ¦ P¨¨')",2000);
aniID = setTimeout("Animate(false,' ¦ p ¨¨')",2600);
aniID = setTimeout("Animate(false,' ¦ P¨¨¨')",3400);
aniID = setTimeout("Animate(false,' ¦ p ¨¨¨')",4200);
aniID = setTimeout("Animate(false,' ¦ P ¨¨¨¨')",5000);
aniID = setTimeout("Animate(false,' : P¨')",5600);
aniID = setTimeout("Animate(false,normguy)",6600);
statID = setTimeout("stat(mood[0])",6600);
liveID = setTimeout("livewill(num[1])",6600);
}
function human() {
if (sick == false) normguy = '<(<ò_ò>)>';
ID(true);
statID = setTimeout("stat(Stat[10])",10);
aniID = setTimeout("Animate(false,ctrsmit[Random(2,3)])",10);
liveID = setTimeout("livewill(num[0])",20);
aniID = setTimeout("Animate(false,normguy)",1300);
statID = setTimeout("stat(mood[6])",1300);
}
function sleep() {
normguy = '<(-v-)>';
ID(true);
statID = setTimeout("stat(Stat[9] +'(zZzZzzzZZ)')",710);
aniID = setTimeout("Animate(false,' (-v-)zzzzzzz')",200);
aniID = setTimeout("Animate(false,' (-v-)zzzzzz')",800);
aniID = setTimeout("Animate(false,'(-v-)zzz')",1400);
aniID = setTimeout("Animate(false,' (-v-)zzzzz')",2000);
aniID = setTimeout("Animate(false,' (-v-)zz')",2600);
aniID = setTimeout("Animate(false,' (-v-)zzzzz')",3400);
aniID = setTimeout("Animate(false,'(-v-)zzzzz')",4200);
aniID = setTimeout("Animate(false,' (-v-)zzz')",5000);
aniID = setTimeout("Animate(false,' (-v-)zzzz')",5600);
aniID = setTimeout("Animate(false,normguy)",6600);
statID = setTimeout("stat(mood[0])",6600);
liveID = setTimeout("livewill(num[1])",6600);
}
function change() {
normguy = '=^)';
}
function rub() {
normguy = '<(^O^)>';
ID(true);
statID = setTimeout("stat(Stat[8] +'(rubing in proccess rub rub)')",710);
aniID = setTimeout("Animate(false,' (-^0)')",200);
aniID = setTimeout("Animate(false,' (0^-)')",800);
aniID = setTimeout("Animate(false,' (-^0)')",1400);
aniID = setTimeout("Animate(false,' (0^-)')",2000);
aniID = setTimeout("Animate(false,' (-^0)')",2600);
aniID = setTimeout("Animate(false,' (0^-)')",3400);
aniID = setTimeout("Animate(false,' (-^0)')",4200);
aniID = setTimeout("Animate(false,' (0^-)')",5000);
aniID = setTimeout("Animate(false,' (-^0)')",5600);
aniID = setTimeout("Animate(false,normguy)",6600);
statID = setTimeout("stat(mood[0])",6600);
liveID = setTimeout("livewill(num[1])",6600);
}
function taxi() {
normguy = '<(-^-)>';
ID(true);
statID = setTimeout("stat(Stat[8] +'(riding in dangerous cab)')",710);
aniID = setTimeout("Animate(false,' (Car)')",200);
aniID = setTimeout("Animate(false,' ( Car)')",800);
aniID = setTimeout("Animate(false,' ( Car)')",1400);
aniID = setTimeout("Animate(false,' ( Car--->Tree)')",2000);
aniID = setTimeout("Animate(false,' ( Duck in Tree)')",2600);
aniID = setTimeout("Animate(false,' (Duck in hospital)')",3400);
aniID = setTimeout("Animate(false,' (Duck sues cab)')",4200);
aniID = setTimeout("Animate(false,' (Duck wins)')",5000);
aniID = setTimeout("Animate(false,' (Duck beat up in alley)')",5600);
aniID = setTimeout("Animate(false,normguy)",6600);
statID = setTimeout("stat(mood[5])",6600);
liveID = setTimeout("livewill(num[0])",6600);
}
var bruised = 0, poked = false;
function poke() {
if (bruised >= 7) {
normguy='o_*';
aniID = setTimeout("Animate(false,'(Ov-)')",1);
liveID = setTimeout("livewill(num[0])",1);
if (poked == false) statID = setTimeout("stat('You poked his eyes into his brain!!')",10);
aniID = setTimeout("Animate(false,normguy)",300);
poked = true;
}
if (bruised < 7) {
bruised++;
normguy = '<(^_^)>'
aniID = setTimeout("Animate(false,' <(^o^)>')",1);
liveID = setTimeout("livewill(num[1])",1);
statID = setTimeout("stat('ohhya...')",10);
aniID = setTimeout("Animate(false,normguy)",300);
}
}
// End -->
</script>
</HEAD>
<BODY>
<center>
<form name="ctrform">
<table BORDER="4" CELLSPACING="5" CELLPADDING="5" bgcolor="yellow">
<tr><td><font color="black"><br>
<table>
<tr>
<th>How much more can it take?</th>
<th>How is it?</th>
</tr>
<tr>
<td><div align="center"><center><p><input type="text" size="20" name="will"></td>
<td align="center"><input type="text" size="25" name="ctrstatus"></td>
</tr>
<tr align="center">
<th>Crazy Migrating Duck with Rabbies</th>
<th>What you gonna do bout it?</th>
</tr>
<tr align="center">
<td><input type="text" name="ctr" size="30" onFocus="if (alive == true) tLiphe()"></td>
<td><div align="center"><center><p><input type="button" value="Catch a Crazy Migrating Duck with Rabbies!"
onClick="if (alive == false) gLiphe()"></td>
</tr>
</table>
<div align="left"><left>
<table>
<tr>
<td><input type="button" value="Smack dat Duck" onClick="if (alive == true) smite()"></td></tr><tr>
<td><input type="button" value="Clean Ducky Diaper" onClick="if (alive == true) cleancage()"></td></tr><tr>
<td><input type="button" value="Give Healing Medication" onClick="if (alive == true) dnfekt()"></td>
</tr>
<tr>
<td><input type="button" value="Give Some Grub"
onClick="if (alive == true) pheed(document.ctrform.phood.selectedIndex)">
<select name="phood" size="1">
<option>Pickle Juice</option>
<option>Worms</option>
<option>Monkey Wings</option>
<option>Potatoes Skins</option>
<option>Cardboard Pizza</option>
</select></td>
</tr>
<tr>
<td><input type="button" value="Claw" onClick="if (alive == true) smite()"></td>
</tr>
<tr>
<td><input type="button" value="Poke Duck Eyes In" onClick="if (alive == true) smite()"><br></td>
</tr>
<td><input type="button" value="Knock Out" onClick="if (alive == true) smite()"></td>
</tr>
<tr>
</tr>
<td><input type="button" value="Rubitize me Cap'n" onClick="if (alive == true) rub()"></td>
<tr>
<td><input type="button" value="Turn Duck into Human" onClick="if (alive == true) human()"></td>
</tr>
<tr>
<td><input type="button" value="Take the Cab" onClick="if (alive == true) taxi()" afterClick="if (alive == true) smite()"></td>
</tr>
</table>
</center>
</div>
</td>
</tr>
</table>
</form>
</center>
<!-- Script Size: 9.71 KB --></body>
</html>
</body>
</html>