Web Hosting Forums  

Go Back   Web Hosting Forums > Web Design > Javascript Forums
User Name
Password


Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old January 26th 2008, 09:05 PM   #1 Spam Kill
canadacatman
Registered User
 
Join Date: Jan 2008
Posts: 1
Google code

I am making a search engine website.I have a selection on search engines on it you can choose.But when people search and click google i do not get credit for it so i am thinking my google code is wrong.I am new to the website making.I found another code here http://www.hostcompanies.com/freecode.htm looks good but i tried to install it on my site to see if it works good but i cant get it to work.It needs to be installed between the html body tag and i dont think i put one on my website.Take alook at the script i got made so far

<BODY background="http://www.hostgatordeal.com/Old_kigs.jpg "

background-attachment:fixed; no repat; TEXT="#ffffff" LINK="#cccccc" ALINK="#000000">
<center><div>
<br><br><br><IMG src="http://www.hostgatordeal.com/tmpphpN3pyMV.gif"

border=0></a><br><br><br><script language="JavaScript">

current_site = "Google"

var set_def = false

function fetch() {

if (set_def == true) {

set_default = "t"

}else{

set_default = ""

}

tmp = document.SearchForm.Search.value;

stmp = "";

for (i=0 ; i <= tmp.length ; i++) {

if (tmp.charAt(i) == " ") {

stmp = stmp + "+";

} else {

stmp = stmp + tmp.charAt(i);

}

}

if (current_site == "Yahoo") {

top.location.href = "http://search.yahoo.com/bin/search?p=" +

document.SearchForm.Search.value

}

if (current_site == "You Tube") {

top.location.href = "http://www.youtube.com/results?search_query=" +

document.SearchForm.Search.value

}


if (current_site == "Yellow Pages") {

top.location.href = "http://www.yellowpages.com/no-location?search_terms=" +

document.SearchForm.Search.value

}



if (current_site == "Ask") {

top.location.href = "http://www.ask.com/web?q=" + document.SearchForm.Search.value

}

if (current_site == "Msn") {

top.location.href = "http://search.msn.co.uk/results.aspx?q=" +

document.SearchForm.Search.value

}

if (current_site == "Alexa") {

top.location.href = "http://www.alexa.com/search?amzn_id=papaseek01-20&q=" +

document.SearchForm.Search.value

}

if (current_site == "Dmoz") {

top.location.href = "http://search.dmoz.org/cgi-bin/search?search=" +

document.SearchForm.Search.value

}

if (current_site == "Mtv") {

top.location.href = "http://www.mtv.com/search/index.jhtml?searchterm=" +

document.SearchForm.Search.value

}


if (current_site == "Software") {

top.location.href = "http://www.download.com/3120-20_4-0.html?tg=dl-20&qt=" +

document.SearchForm.Search.value

}

if (current_site == "Dictionary") {

top.location.href = "http://dictionary.reference.com/browse/" +

document.SearchForm.Search.value

}


if (current_site == "Encyclopedia") {

top.location.href = "http://en.wikipedia.org/wiki/" + document.SearchForm.Search.value

}

if (current_site == "Google") {

top.location.href =

"http://www.google.com/custom?hl=en&lr=&ie=ISO-8859-1&oe=ISO-8859-1&client=pub-963

8820575835864&cof=FORID%3A1%3BL%3Ahttp%3A%2F%2hostgatordeal.com%2logo2.gif%

3BLH%3A39%3BLW%3A94%3BL

P%3A1%3BGL%3A1%3BBGC%3AFFFFFF%3BT%3A%23000000%3BLC%3A%230000 ff%3BVL

C%3A%23663399%3BALC%3A%230000ff%3

BGALT%3A%23008000%3BGFNT%3A%230000ff%3BGIMP%3A%230000ff%3BDI V%3A%2333

6699%3BLBGC%3A336699%3BAH%3Acen

ter%3BS%3Ahttp%3A%2F%2hostgatordeal.com%3B&q=" +

document.SearchForm.Search.value

}

return false;

}



function toggle_setdef() {

set_def = !(set_def);

}



function setsite(sitenow) {

current_site = sitenow;

}



// --></script>

<!-- A1 -->
<center>
<form method="GET" name="SearchForm" onsubmit="return fetch()">
<center><font size="4">Google</font><input type="radio" name="SITE" value="Google"

checked onclick="setsite('Google')">&nbsp;&nbsp;<font size="4">Yahoo</font><input

type="radio" name="SITE" value="Yahoo" checked

onclick="setsite('Yahoo')">&nbsp;&nbsp;<font size="4">Ask</font><input type="radio"

name="SITE" value="Ask" checked onclick="setsite('Ask')">&nbsp;&nbsp;<font

size="4">Msn</font><input type="radio" name="SITE" value="Msn" checked

onclick="setsite('Msn')">&nbsp;&nbsp;<font size="4">Alexa</font><input type="radio"

name="SITE" value="Alexa" checked onclick="setsite('Alexa')">&nbsp;&nbsp;<font

size="4">Dmoz</font><input type="radio" name="SITE" value="Dmoz" checked

onclick="setsite('Dmoz')">&nbsp;&nbsp;<font size="4">You Tube</font><input

type="radio" name="SITE" value="you Tube" checked onclick="setsite('You

Tube')">&nbsp;&nbsp;<font size="4">Yellow Pages</font><input type="radio"

name="SITE" value="Yellow Pages" checked onclick="setsite('Yellow

Pages')">&nbsp;&nbsp;<font size="4">Mtv</font><input type="radio" name="SITE"

value="Mtv" checked onclick="setsite('Mtv')">&nbsp;&nbsp;<font

size="4">Software</font><input type="radio" name="SITE" value="Software" checked

onclick="setsite('Software')">&nbsp;&nbsp;<br><font size="4">Dictionary</font><input

type="radio" name="SITE" value="Dictionary" checked

onclick="setsite('Dictionary')">&nbsp;&nbsp;<font size="4">Encyclopedia</font><input

type="radio" name="SITE" value="Encyclopedia" checked

onclick="setsite('Encyclopedia')">&nbsp;&nbsp;<center>
<br>
<center><input type="Text" name="Search" size=44></center>

<center><input type="Submit" name="Submit"></center></form><br>
<br> <a

href="https://my.screenname.aol.com/_cqr/login/login.psp?sitedomain=sns.webmail.aol.c

om&lang=en&locale=us&authLev=2&siteState=ver%3a3%7cac%3aWS%7ca

t%3aSNS%7cld%3awebmail.aol.com%7cuv%3aAOL%7clc%3aen-us%7cmt%3aAOL%7csnt%

3aScreenName&seamless=novl" target="blank"><IMG

src="http://www.hostgatordeal.com/aol.jpg " border=0></a>
<a href="http://www.facebook.com" target="blank"><IMG

src="http://www.hostgatordeal.com/facebook.jpg " border=0></a>
<a href="http://www.watch-movies.net/" target="blank"><IMG

src="http://www.hostgatordeal.com/freemovies.jpg " border=0></a>
<a href="http://www.mp3.com/free-music/" target="blank"><IMG

src="http://www.hostgatordeal.com/freemusic.jpg" border=0></a>
<a

href="http://login.live.com/login.srf?wa=wsignin1.0&rpsnv=10&ct=1201060113&rver=4.5.21

30.0&wp=MBI&wreply=http:%2F%2Fmail.live.co m%2Fdefault.aspx&id=64855"

target="blank"><IMG src="http://www.hostgatordeal.com/hotmail.jpg " border=0></a>
<a href="http://www.ebay.ca/" target="blank"><IMG

src="http://www.hostgatordeal.com/myebay.jpg " border=0></a>
<a href="https://www.gmail.com" target="blank"><IMG

src="http://www.hostgatordeal.com/mygmail.jpg" border=0></a>

<a href="http://www.myspace.com/" target="blank"><IMG

src="http://www.hostgatordeal.com/myspace.jpg" border=0></a><br>
<a href="https://www.paypal.com" target="blank"><IMG

src="http://www.hostgatordeal.com/paypal.jpg" border=0></a>
<a href="http://www.pogo.com" target="blank"><IMG

src="http://www.hostgatordeal.com/pogo.jpg " border=0></a>
<a href="http://www.addictinggames.com" target="blank"><IMG

src="http://www.hostgatordeal.com/addictinggames.jpg " border=0></a>
<a href="http://www.miniclip.com" target="blank"><IMG

src="http://www.hostgatordeal.com/miniclipgames.jpg " border=0></a>
<a href="http://www.tagged.com/" target="blank"><IMG

src="http://www.hostgatordeal.com/tagged.jpg " border=0></a>
<a href="http://games.yahoo.com/games/front" target="blank"><IMG

src="http://www.hostgatordeal.com/yahoogames.jpg " border=0></a>
<a href="http://login.yahoo.com/config/login_verify2?&.src=ym" target="blank"><IMG

src="http://www.hostgatordeal.com/yahoomail.jpg " border=0></a>
<a href="http://youtube.com/" target="blank"><IMG

src="http://www.hostgatordeal.com/youtube.jpg " border=0></a>
<br><br<script type="text/javascript"><!--
google_ad_client = "pub-9638820575835864";
//728x90, created 26/01/08
google_ad_slot = "6740985649";
google_ad_width = 728;
google_ad_height = 90;
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

That is the code i got made so far with my search engine on it.I would like it if someone could look at the google code for me and tell me if it is right.If not what did i do wrong.Or if someone could tell me how to install the one from http://www.hostcompanies.com/freecode.htm

Thanks for helping a newbie out..
canadacatman is offline   Reply With Quote
Old March 4th 2008, 09:03 AM   #2 Spam Kill
shershen
Registered User
 
shershen's Avatar
 
Join Date: Dec 2006
Posts: 85
Thanks for that info.
shershen is offline   Reply With Quote
Old May 27th 2008, 02:10 AM   #3 Spam Kill
JoeMatt
Registered User
 
Join Date: May 2008
Posts: 35
As far as I know google is written in Ajax, not in Java. Or I have missed something?
JoeMatt is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



All times are GMT -5. The time now is 10:38 AM.


Powered by: vBulletin Version 3.0.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 2.4.0
 

Statistics


Sponsor


Articles

 

Forums Partners: Domain Hosting Directory


©Web Expert2000 Limited All rights reserved / Legal Disclaimer / Privacy Policy
Basic Web Hosting Search Intermediate Web Hosting Search Advanced Web Hosting Search Log in to add your companies details Search the forums on web hosting, web design and programming Your bookmarked web hosting and web design packages Buy your domain names from here, includes multilingual registrations and translation! Our affiliate programs, including the ability to set up large and small corporations to sell domain names in real time using our transparent affiliate system Group of web hosting companies with some info on their services - use this to find a company FAST Jump to Top of Page Jump to Top of Page Back to previous page Back to homepage Back to homepage Back to homepage Back to homepage Back to homepage Back to homepage