How To Disable Google Ads From Revisiting Site
Jan 17, 2009
I recently thought that my PHP script [URL] was bugged, but I found out that it wasn't; it worked perfectly fine as it was. Now, I found out that the Google Ads I placed from my site caused the "bug"; everytime the google ad was loaded the page I was viewing would be visited by Google... and hence added 1 extra number to my `hits`. So does anyone who knows how to control Google Ads know how to disable Google from viewing your site after page is loaded?
View 1 Replies
ADVERTISEMENT
Dec 17, 2005
My current set up is a form that gets someone to enter "City, State" then when they hit the submit button i used PHP to set up a variable called $location which was set to google.com/maps?q=from%3A+city,+state+to%3A+city,+state the $to variable is sent from a hidden input and is equal to the club they want to go to. After that i do a few string changes to get rid of the spaces. after its' all done it becomes $location.
What i currently have is a simple window.open() using javascript to open up the window. This works fine with one major problem.. popup blockers stop it from opening and the people browsing this site aren't exactly tech savy. They usually have no idea how to allow popups and this becomes a problem. The only reason i have it set up the way i do now is because my javascript is very limited.. but my php is pretty good. Is there a better way to open up the new window without popup blockers stopping it? If not do you know a way I could set up javascript to change a hidden input on the fly as the person enters their info so i can just use method="GET" and have the action to google.com/maps.
View 3 Replies
View Related
Mar 5, 2009
I am using the following script:
<script type="text/javascript">
// Google Internal Site Search script- By JavaScriptKit.com [URL]
// For this and over 400+ free scripts, visit JavaScript Kit- [URL]
// This notice must stay intact for use
//Enter domain of site to search.
var domainroot="[URL]"
function Gsitesearch(curobj){
curobj.q.value="site:"+domainroot+" "+curobj.qfront.value
}
</script>
<form action="[URL]" method="get" onSubmit="Gsitesearch(this)">
<p>Search JavaScript Kit:<br />
<input name="q" type="hidden" />
<input name="qfront" type="text" style="width: 180px" /> <input type="submit" value="Search" /></p>
</form>
<p style="font: normal 11px Arial">This free script provided by<br />
<a href="[URL]">JavaScript Kit</a></p>
I want to modify the onSubmit event to also include this code:
window.open('', 'foo', 'width=450,height=300,status=yes,resizable=yes,scrollbars=yes')
But I am having difficulties. I would like for the search results page to be displayed in the new window.
View 2 Replies
View Related
Jul 30, 2006
I have a site that uses 2 domains to forward to the IP no. (a .org.uk and .co.uk). The site uses the Google Map API for a map on the site, however the API key is locked to the individual domain (I do have two keys for both the domains). I found the following Javascript which is supposed to switch the key depending on the domain that is accessing the page.
Code:
if (window.location.host == 'www.domain1.com') {
document.write('<'+'script
src="http://maps.google.com/maps?file=api&v=1&key=key/for/domain1"
type="text/javascript">' +
'<'+'/script>');
} else if (window.location.host == 'www.domain2.com') {
document.write('<'+'script
src="http://maps.google.com/maps?file=api&v=1&key=key/for/domain2"
type="text/javascript">' +
'<'+'/script>');
} else {
alert("host ="+window.location.host);
}
but I can't get it to work, the page doesn't display any map (not even an alert) if I use this instead of the normal API key script.
View 4 Replies
View Related
Jul 23, 2009
Enter a search term and:1) Google Blog Results show up2) Twitter Search Results show up3) Google Maps with custom xml data shows upI have accomplished the first 2 parts - http://www.justincener.com/xmlI now want to add in Google Maps. The idea is to type in a athlete's name and have results come back from Google Blog Search (done), Twitter (done), and Google Maps. I only need to show 2-3 choices, so I want to create a custom Google Maps XML doc that corresponds to a few search terms. For example, when someone types in "Tom Brady", I want a Google Map to also come up along with the Google Blog and Twitter Results.
On the map, I want to plot 4 points showing his 4 next games. I think I know how to create the custom XML for GMaps, but I don't know how to implement it so that when someone enters input, the GMaps will show up. Can anyone get me started in the right direction please?Here is the JS so far that handles Google Blog Results and Twitter Results:
var errorCount=0;
var twitter_link;
function searchGoogle(query)
[code]....
View 16 Replies
View Related
Feb 6, 2010
How do you disable a right click for just one page on a site?
View 13 Replies
View Related
Aug 4, 2008
Is there a chance to disable these two things from my site?
(View Source) and (Ctrl + C)
View 9 Replies
View Related
May 11, 2004
if there was a script to disable only the horizontal scroll bar in a browser window on a site with frames?
View 7 Replies
View Related
Apr 7, 2011
I'm not sure where I have translated this incorrectly. I have one google map embedded on my page which works fine. But I wanted to add a second one. I thought the easiest way to do this would be to have a second page which is called later on with all the details on it for the second map. However although I think (this I presume is where I went wrong) I have replicated the instructions correctly the place holder for the second map just remains blank.
This is the code for my called page with the instructions for the second map:
And this is the script of the main page, just in case I would be better off keeping them both in one place.
<head>
I've cut out the script that doesn't relate to this so I hope I haven't missed anything important.
View 1 Replies
View Related
Dec 5, 2006
this may be more of an "html" issue, but I'll wing it.
i've got a multi-language site, where the home-page of each language group
features a link to a popup window that offers background info on site
management. the popup is fired by a javascript function, when they click
the site management link. there's also a "window close" function button so
they can nuke it as they please.
now, oddly, people who search for my site in the chinese language on google,
are sent directly to the site management popup window, which of course,
opens in their "full" browser window, and which also has no links back to
the main site, because it's meant to open only as an "accessory" to the main
site.
my question is this: is there any way, with Javascript, that I could
determine if they arrived at this window from "off-site" (ie, a google
search), and therefore offer such "off-site" visitors a link back to the
principal site, a link that would be hidden for visitors who clicked the
popup window from my own site?
View 2 Replies
View Related
Jun 5, 2010
Can the Google API replace scraping? You can get blocked by Google if you scrape, but can you get the same info from the Google API at no risk?
View 2 Replies
View Related
Feb 25, 2006
Basically, I registered for a free board at one of the various sites because my server doesn't support .cgi scripts. I want to know if there is a way to have the data from a form on my site post to the board site -A user would fill in my form, click submit, and a new post would appear on the board site -as if they had entered it there.
If you can point me in the right direction, I would be grateful. Here is my thinking.
A) I can't locate the script that they use to perform a "submit"; so I thought I might enter their <head> data (as far as xmlns, href, etc) in my <head>; that my website might call up their script files, css sheets, etc.
B)I could code my own Javascript function to send my form data to their site. If I knew how to simulate a mouseclick on someone else's site, I could have the script "click" there, paste the data, and hit the submit button. But I don't.
C) I could size their site down to the form itself and put it in a frame on my page
Option C is clearly easier, but I would prefer option A or B. I have time and will happily do the research myself; provided that I know if approach A or B is even feasible.
View 1 Replies
View Related
May 27, 2007
If obfuscation isn't all that good, why does Google obfuscate its
search results' code? Okay, I realize they're a commercial entity and
need to do it. How do they do it?
Could anyone out there decipher and normalize code for a Google search
result page? And despite the obfuscation, why is Google so fast?
I also get the feeling sites like Google and Facebook manage to create
better thumbnails on the fly. Any idea how?
View 9 Replies
View Related
Jun 17, 2010
[url] I am having a problem with site in IE7 this is identified as a problem? Can someone at least rule out this js error? This is js generated when adding google maps
Error Class is not defined:
View 1 Replies
View Related
Jun 14, 2010
I'm working on a project which implements google Maps. Now I have to choose between GWT or JavaScript as a programming platform. I'm wondering which is faster when accessing the data to be used to initialise the maps from a remote server?
View 1 Replies
View Related
Nov 2, 2006
Been looking at google maps, but i am not sure if this is possible, what do you think?
1) Fill database with places (refering to lat + long values) + put markers on google map.
2) Users can then browse the map, click on a marker to select the location which referes to a place in a database.
I know I can add markers to a map. Not sure if it is possible for a user to click one, which then fills a box in a form though.
View 3 Replies
View Related
Feb 13, 2010
Does anyone know how to get the sidebar for Google Map v3 in div's instead of the dropdown options? I'm using this google tutorial: [URL]
View 2 Replies
View Related
Feb 23, 2009
I'm trying to get a Google Map to appear on my page and have followed what they have advised needs doing but nothing seems to appear.
[Code]...
View 1 Replies
View Related
Jul 23, 2005
How can I print a web-site without site number and url?
View 6 Replies
View Related
Oct 25, 2005
Got a client with three web sites. I want to be able to pass cookies between these sites, so far no luck. Tried:
document.cookie = name + "=" + escape (value) +
((exp == null) ? "" : ("; expires=" + exp.toGMTString())) +
((path == null) ? "" : ("; path=" + path)) +
("; domain=.yorktest.com") +
((secure == true) ? "; secure" : "");
Code:
View 1 Replies
View Related
Feb 22, 2010
I'm making a fansite for a game called RuneScape and I'm a bit stuck on this part.
What I need for my website is, a page that will have the prices (min, middle, and max) of things from this [URL] or other items, which will be chosen later on.
Here are two example sites that I am wanting to ... do the same thing as them.
First Example [URL] Second Example [URL]
View 2 Replies
View Related
Aug 22, 2011
Any script that adds a "move to top" box for our .php site similar to the one we have on our blog site: [URL]
View 5 Replies
View Related
Jul 11, 2006
My site does not work in IE/Win
I really don't know where to look for the problem because it works in all other browsers.
Any ideas... I've looked at all the css and html and can't find a fault, so I can only guess it's the javascript????
View 1 Replies
View Related
May 11, 2010
I was looking at the Web SQL spec on the W3C site (here)the example code
Code:
function prepareDatabase(ready, error) {
return openDatabase('documents', '1.0', 'Offline document storage', 5*1024*1024, function (db) {[code]....
I don't understand how/why prepareDatabase is set twice.Is there a term for this? I can't for the life of me think what it is. I know I've seen it before though.
View 3 Replies
View Related
Apr 7, 2004
im launching a new site that is the same topic as another site i have
i want to launch the new site as a pop up or pop under from the established site.
What code would i use to generate it so that this only happens per unique visitor and not per page impressions.
View 3 Replies
View Related
Apr 21, 2009
I wondered if there was a way to blur my whole site except a popup-div when a link is clicked - just like lightbox fades out the page, just with a blur effect instead:[url]...
View 2 Replies
View Related