PDA

View Full Version : Google Images


sammiedawg
2-16-07, 03:46 PM
When your site's photos shows up in the results of Google Images, how do you override the top Google Image frame upon a user's click on the thumbnail?

Sometimes when I click on a thumbnail within the results of Google Images, the top Google frame gets overridden by some script on the source page - Any ideas on the javascript for this? Or where I can get it?

Thanks

Kitchensink108
2-16-07, 03:58 PM
Here a couple different versions. I haven't tested them so I don't know if different ones are compatible with different browsers or whatnot. if (top.location != location) {
top.location.href = document.location.href ;
}if (top.location != self.location)
top.location = self.location;if (parent.frames.length > 0)
{
parent.location.href = location.href;
}

snowmaker
2-17-07, 02:29 PM
Here is another variation, similar to ones already posted here.<script type="text/javascript">
if (top.location != self.location) { top.location.href = self.location.href; }
</script>This was gotten from this website, http://tips-scripts.com/