Will this get me banned for google (images) if i put this on the pages indexed by google images: <SCRIPT language="JavaScript"> <!-- function getgoing() { top.location="index.htm"; } if (top.frames.length > 0) { setTimeout('getgoing()',0); } //--> </SCRIPT>
So you're say if there's a top frame direct to your homepage? Good question. I can see not wanting people sticking a top frame on your site, google or anyone else.
I want the frame to be closed and then the person visiting my site will be redirected to the index page
That's a pretty sneaky redirect you got there. Why would you be doing this anyway?? When I use image search I like getting the page the image is on because there is usually content regarding the image. I'd be pretty pissy if I got forced to the homepage of a site. Spiders will probably not pick up on the frame but if a googler stumbled upon that redirect they might have issues with it. Also pages indexed by Google will be one in the same as your live pages so wont the redirect kick people to the homepage even if they were surfing your site?? Also if this is to prevent Google from indexing your images just block them using robots.txt.
I don't think it would affect people surfing is his site because of the "if top frame" statement, but it is pretty useless, imo. I'm not sure what the purpose would even be. If someone reports it, google might do something about it, who knows. Why don't you email google and ask. =)
Well i didnt do it yet,but i tought about replacing the normal frame breaker that i am currectly using,with this one. Because on my index page ,more valuable links are displayed for adsense,do you understand now?
You can redirect to the page the image is on but if you redirect to your homepage and google spots it they might not be happy.