gold2040
12-24-2005, 05:06 PM
Hi
I got a script here that i'm using for a search engine
<script>
function check(){
val = document.form1.textarea.value;
switch(val){
case "day of the tentacle":
case "Day of the Tentacle":
case "dott":
case "DOTT":
case "tentacle":
case "Tentacle":
case "Maniac Mansion":
case "maniac mansion":
location = 'http://abandonware.hostingzero.com/details/dott/';
break;
case "the settlers":
case "The Settlers":
case "Settlers":
case "settlers":
location = 'http://abandonware.hostingzero.com/details/settlers1/';
break;
case "Beneath a Steel Sky":
case "beneath a steel sky":
location = 'http://abandonware.hostingzero.com/details/beneathasteelsky/';
break;
case "Genesia":
case "genesia":
location = 'http://abandonware.hostingzero.com/details/genesia/';
break;
case "Mortal Kombat 1":
case "mortal kombat 1":
location = 'http://abandonware.hostingzero.com/details/mortalkombat1/';
break;
case "Railroad Tycoon Deluxe":
case "railroad tycoon deluxe":
location = 'http://abandonware.hostingzero.com/details/railroadtycoondeluxe/';
break;
case "Sim Earth":
case "sim earth":
location = 'http://abandonware.hostingzero.com/details/simearth/';
break;
case "Lords of the Realm 1":
case "lords of the realm 1":
location = 'http://abandonware.hostingzero.com/details/lordsoftherealm1/';
break;
case "Sam and Max Hit the Road":
case "sam and max hit the road":
location = 'http://abandonware.hostingzero.com/details/samandmaxhittheroad/';
break;
case "Loom":
case "loom":
location = 'http://abandonware.hostingzero.com/details/loom/';
break;
case "Magic Boy":
case "magic boy":
location = 'http://abandonware.hostingzero.com/details/magicboy/';
break;
case "Dragonsphere":
case "dragonsphere":
location = 'http://abandonware.hostingzero.com/details/dragonsphere/';
break;
case "Ishar 2":
case "ishar 2":
location = 'http://abandonware.hostingzero.com/details/ishar2/';
break;
case "Hemidall 2":
case "hemidall 2":
location = 'http://abandonware.hostingzero.com/details/hemidall2/';
break;
case "Lords of the Realm 2":
case "lords of the realm 2":
location = 'http://abandonware.hostingzero.com/details/lordsoftherealm2/';
break;
case "The Lion King":
case "the lion king":
case "Lion King":
case "lion king":
location = 'http://abandonware.hostingzero.com/details/thelionking/';
break;
case "The Jungle Book":
case "the jungle book":
case "Jungle Book":
case "jungle book":
location = 'http://abandonware.hostingzero.com/details/thejunglebook/';
break;
case "Aladdin":
case "aladdin":
location = 'http://abandonware.hostingzero.com/details/aladdin/';
break;
case "Master of Magic":
case "master of magic":
location = 'http://abandonware.hostingzero.com/details/masterofmagic/';
break;
default:
location = 'http://abandonware.hostingzero.com/noresults.shtml';
break;
}
}
</script>
<form name="form1" method="post" action="">
<input name="textarea" type="text" size=11 value="">
<input type=button value="Go" onClick="check();" STYLE="background-color: #000000; color: #ffffff; font-weight: bold; font-size: 5pt;">
</form>
It works fine locally but when I upload it doesn't seem to work
The error says
'document.form1.textarea' is null or not an object
Here the link to the page
http://abandonware.hostingzero.com/screenshots/dott
Cheers for any help
gold2040
I got a script here that i'm using for a search engine
<script>
function check(){
val = document.form1.textarea.value;
switch(val){
case "day of the tentacle":
case "Day of the Tentacle":
case "dott":
case "DOTT":
case "tentacle":
case "Tentacle":
case "Maniac Mansion":
case "maniac mansion":
location = 'http://abandonware.hostingzero.com/details/dott/';
break;
case "the settlers":
case "The Settlers":
case "Settlers":
case "settlers":
location = 'http://abandonware.hostingzero.com/details/settlers1/';
break;
case "Beneath a Steel Sky":
case "beneath a steel sky":
location = 'http://abandonware.hostingzero.com/details/beneathasteelsky/';
break;
case "Genesia":
case "genesia":
location = 'http://abandonware.hostingzero.com/details/genesia/';
break;
case "Mortal Kombat 1":
case "mortal kombat 1":
location = 'http://abandonware.hostingzero.com/details/mortalkombat1/';
break;
case "Railroad Tycoon Deluxe":
case "railroad tycoon deluxe":
location = 'http://abandonware.hostingzero.com/details/railroadtycoondeluxe/';
break;
case "Sim Earth":
case "sim earth":
location = 'http://abandonware.hostingzero.com/details/simearth/';
break;
case "Lords of the Realm 1":
case "lords of the realm 1":
location = 'http://abandonware.hostingzero.com/details/lordsoftherealm1/';
break;
case "Sam and Max Hit the Road":
case "sam and max hit the road":
location = 'http://abandonware.hostingzero.com/details/samandmaxhittheroad/';
break;
case "Loom":
case "loom":
location = 'http://abandonware.hostingzero.com/details/loom/';
break;
case "Magic Boy":
case "magic boy":
location = 'http://abandonware.hostingzero.com/details/magicboy/';
break;
case "Dragonsphere":
case "dragonsphere":
location = 'http://abandonware.hostingzero.com/details/dragonsphere/';
break;
case "Ishar 2":
case "ishar 2":
location = 'http://abandonware.hostingzero.com/details/ishar2/';
break;
case "Hemidall 2":
case "hemidall 2":
location = 'http://abandonware.hostingzero.com/details/hemidall2/';
break;
case "Lords of the Realm 2":
case "lords of the realm 2":
location = 'http://abandonware.hostingzero.com/details/lordsoftherealm2/';
break;
case "The Lion King":
case "the lion king":
case "Lion King":
case "lion king":
location = 'http://abandonware.hostingzero.com/details/thelionking/';
break;
case "The Jungle Book":
case "the jungle book":
case "Jungle Book":
case "jungle book":
location = 'http://abandonware.hostingzero.com/details/thejunglebook/';
break;
case "Aladdin":
case "aladdin":
location = 'http://abandonware.hostingzero.com/details/aladdin/';
break;
case "Master of Magic":
case "master of magic":
location = 'http://abandonware.hostingzero.com/details/masterofmagic/';
break;
default:
location = 'http://abandonware.hostingzero.com/noresults.shtml';
break;
}
}
</script>
<form name="form1" method="post" action="">
<input name="textarea" type="text" size=11 value="">
<input type=button value="Go" onClick="check();" STYLE="background-color: #000000; color: #ffffff; font-weight: bold; font-size: 5pt;">
</form>
It works fine locally but when I upload it doesn't seem to work
The error says
'document.form1.textarea' is null or not an object
Here the link to the page
http://abandonware.hostingzero.com/screenshots/dott
Cheers for any help
gold2040