Reply
google code
Old 01-26-2008, 02:29 PM google code
Junior Talker

Posts: 3
Name: jessie williams
I am new here and new to the whole website scene.I am making a search engine site.I am trying to make the html code.I copied a code from another website tweeked it abit and there is one thing i cant get is my google.I thought i did but i am not getting credit for any clicks.I got a buddy to do 1 search and click and i did not get credit for it.So I am assuming that i did that part wrong.Here is the html code i got 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><br><br><br><FONT face="Calligula" size=5>SDFGSDFGSDGSD</FONT>br><br><br><br><br><br><br><script language="JavaScript">
<!--
current_site = "Yahoo"

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&partner-pub-9638820575835864&cof=FORID%3A1%3BL%3Ahttp%3A%2F%2H otwebengine.com%2logo2.gif%3BLH%3A39%3BLW%3A94%3BL P%3A1%3BGL%3A1%3BBGC%3AFFFFFF%3BT%3A%23000000%3BLC %3A%230000ff%3BVLC%3A%23663399%3BALC%3A%230000ff%3 BGALT%3A%23008000%3BGFNT%3A%230000ff%3BGIMP%3A%230 000ff%3BDIV%3A%23336699%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><fon t 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;<cen ter>
<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.com&lang=en&l ocale=us&authLev=2&siteState=ver%3a3%7cac%3aWS%7ca t%3aSNS%7cld%3awebmail.aol.com%7cuv%3aAOL%7clc%3ae n-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&rve r=4.5.2130.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>


Now i was wondering if Someone could tell me what part of the google code is wrong.Thanks

I am not getting credit for clicks in the search part of it.

thanks
canadacatman is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 01-26-2008, 06:00 PM Re: google code
thesites's Avatar
Skilled Talker

Posts: 97
Name: Jacob
Location: New Mexico
You mean towards your adsense account? If you're clicking them then your account will be delted. Google also doesn't count clicks from your IP, I've accidentally clicked one of my ads before when my browser spazzed and I didn't get credit for it (but only happened once).
thesites is offline
Reply With Quote
View Public Profile Visit thesites's homepage!
 
Old 02-01-2008, 11:19 PM Re: google code
tazmanny's Avatar
Banned

Posts: 16
Name: manuel
google adsense search would look something like this...



<!-- Search Google -->
<center>
<form method="get" action="http://www.google.com/custom" target="google_window">
<table bgcolor="#ffffff">
<tr><td nowrap="nowrap" valign="top" align="left" height="32">

<label for="sbi" style="display: none">Enter your search terms</label>
<input type="text" name="q" size="31" maxlength="255" value="" id="sbi"></input>
<label for="sbb" style="display: none">Submit search form</label>
<input type="submit" name="sa" value="Google Search" id="sbb"></input>
<input type="hidden" name="client" value="pub-XXXXXXXXXXXXXX"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="ie" value="ISO-8859-1"></input>
<input type="hidden" name="oe" value="ISO-8859-1"></input>
<input type="hidden" name="safe" value="active"></input>
<input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH :center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000F F;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:1"></input>
<input type="hidden" name="hl" value="en"></input>
</td></tr></table>
</form>
</center>
<!-- Search Google -->


in the place of the red XXXXXXXX goes your google account #. I deleted mines for privacy reasons.
tazmanny is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to google code
 

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.14620 seconds with 13 queries