hello,
all you have to do is add another option on the form, and another value for the search engines URLs. don't change anything else. here's my example again with the site point atomz search engine integrated into it:
Code:
<script language=JavaScript>
function Array1() {
this.length = Array1.arguments.length;
for(var i = 0; i < this.length; i++) {
this[i+1] = Array1.arguments[i];
}
}
var engines = new Array1 (
"http://www.google.com/search?q=",
"http://www.altavista.com/cgi-bin/query?q=",
"http://search.atomz.com/search/?sp-a=00082152-sp00000000&sp-q="
);
function search(form) {
var term = escape(form.query.value);
var eng = parseInt(form.engine.selectedIndex);
window.location.href = engines[eng+1] + term;
}
</script>
<form method=POST action="">
<input type=text name=query value="" size=20><BR>
<select name=engine>
<option>Google
<option>Altavista
<option>Atomz.com
</select>
you'll have to change the 'sp-a=00082152-sp00000000' to whatever value atomz gave you for your search form.
Jason Weinstein
webmaster@MaximumEdge.com
http://www.MaximumEdge.com/
Bookmarks