After upgrade to 3.0.6 JavaScript to redirect images not working?

bigu_c
bigu_c's picture

Joined: 2007-10-28
Posts: 421
Posted: Sat, 2013-03-30 08:16

Hello,

I'm using this:

Quote:
<script language=’Javascript’>if(parent.location != self.location){parent.location=self.location;}</script>

To redirect images search result on Google to page contains this photo.

But after upgrade to 3.0.6, nothing happen.

What I should do now?

Thanks.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2013-03-30 12:37

that script is just to break out of an iframe

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
bigu_c
bigu_c's picture

Joined: 2007-10-28
Posts: 421
Posted: Sun, 2013-03-31 05:51

Last time I used G3.0.4, everything okay.

But after upgrade to 3.0.6, then this script code not working on my site.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2013-03-31 12:13

have you tried to view your site in an iframe?

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
bigu_c
bigu_c's picture

Joined: 2007-10-28
Posts: 421
Posted: Sun, 2013-03-31 13:43

I'm using this code to redirect traffic from Google Image search to page contains that image.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2013-03-31 15:02
Quote:
I'm using this code to redirect traffic from Google Image search to page contains that image.

No.
You are using it to break your gallery out of being displayed in an iframe, which could be google image search.

But what if google no longer uses iframes to display images in image search?

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
bigu_c
bigu_c's picture

Joined: 2007-10-28
Posts: 421
Posted: Sun, 2013-03-31 15:16

As I know that more persons still using old Google Images Search: http://www.ashout.com/get-old-google-image-search-option/

And after upgrade, I lost some traffic.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2013-03-31 15:25

90% or more of the world - like myself has not opted to get the old style results.

Site owners would care how search results are presented but most of us don't.

and as I stated that script only has one purpose - it has nothing to do w/ google images.

As a site owner it is your job to roll w/ the changes that the internet goes through.

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Mon, 2013-04-01 14:32

The Google Images thing has been beaten to death already: http://galleryproject.org/node/111009

For the redirect, see if this is what you're trying to do: http://galleryproject.org/node/110849