Forum Moderators: Robert Charlton & goodroi
But I'd be careful with such JS-tricks.
If you ask me:
this is a job for googleguy;)
Besides I discovered something funny: I have a sort of "monopole" for one of my less competitive widgets in google images: the first twenty spots are all taken with 'widgets blue', 'widgets yellow' and so on all thru the rainbow, but the google spider completely mixed up the colours of the images and the descritive colour-words, because the widgets are categorized by size on a higher level and on each of the pages almost all colours do occur.
Yes, of course, with a desrciptive text-link underneath, at least on the front page, but that was not what I meant. Google of course finds images from my product-category-deeplinks and if you click on that image, google shows the page embedded in that frame. The problem is some ohter tools ON those pages (like drop down boxes for choosing related product categories), which work with a php-cgi script on an on-change event. This, in fact, does not work if the page is embedded in a frame.
> Oliver - Would using a <base href="..."> tag fix your problem?
Maybe in some cases, but definitely not if the target of a form is defined as a relative path. I did not try base href, and I did not try to change the forms. As a matter of fact, I believe that google has its own reasons why these images are presented in a frameset and do not lead to the orginal pages directly (in contrast to the normal web-search). I'd like to know from someone inside google, why this is so and whether this has really been proved convenient for the google-users, before trying to escape from that with code.
[edited by: Oliver_Henniges at 10:55 pm (utc) on Aug. 17, 2006]
Here's mine:-
<script type="text/javascript">
if (parent.frames.length > 0) {parent.location.href = self.document.location;document.location.reload();}
</script>
No idea if it's any good or not, but I've been using it for years.
<sidebar tip>
If you issue Press Releases via any of the online outlets like prweb, remove the frame-breaker before you submit the release. Many of them will alter your link in the release into plain text if you operate a frame-breaker. You can put it back again after it's published.
</sidebar tip>
TJ
BTW, I did a survey recently of what it takes to rank high in Google's image search. One factor that appeared enough for me to note it, even if I didn't prove anything empirically, is a lack of break-out-of-frame code and anti-hotlinking code. Both of these things somewhat impede Google Images from doing its job, and it's possible they are somehow factored into the image search rankings even if they have no effect on Google's web search.
Not claiming this to be a fact, just an observation I'm throwing out there.