solucion problemas de IFRAMES o FRAMES desde buscadores
Saludos , es bien conocido el problema de usar iframes o frames... los bots de los buscadores (si consiguen acceder al contenido de los frames o iframes, normalmente a traves de un mapa de navegacion) indexan el contenido de los iframes o frames y los muestran como resultado en sus busquedas, la gente accede pero solo al frame/iframe y no obserba el contenido completo del sitio web.
LA solución es este sencillo codigo que detecta si el explorer accede directamente al frame o a todo el frameset, si accede solo al frame redirige una url que tu le especifiques automaticamente (normalmente la pagina completa donde esta el frame)
<BODY onLoad="if (parent.frames.length==0) top.location='http://www.tusitio.com/frameset.html';">
/////// Adjunto el contenido del sitio de donde saque la info //////
Lo he probado y funciona. Saludetes
//////////////////////////////////////////////////////////////////////////
The Error:
It is now rare that I will see a framed website and believe that the use of frames in anyway enhances the site, or that it is a practical necessity for a webmaster. It isn't so much that framed sites generally rank lower, it is that few webmasters know how to correctly optimize them. This might give you an idea of the scale of the problem. http://www.google.com/search?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=%22browser+does+not+support+frames+%22+&btnG=Google+Search
The majority of those 697,000 websites require search engine optimization as to be honest, their current optimization stinks. Not many of those sites are going to rank in the top 10 of anywhere.
Just to have in your noframe tag "...browser does not support frames" Is a great way to never get your website found on a search engine.
The Solution:
Treat the noframe tag content as if it was a text version of your home page and optimize it as you would a normal website. Very important also is to link to your framed pages from your noframe area. Also for your framed pages consider javascript that will call the frame set should it be found orphaned in a search engine. Normally framed pages without the frameset, mean no navigation and not displayed as was initially intended. The following code placed in all framed pages is one solution and works on the majority of browsers?
<BODY onLoad="if (parent.frames.length==0) top.location='http://www.yoursite.com/frameset.html';">
There are more complex / better solutions which really wouldn't fit in the space I have here. Try http://www.netmechanic.com/news/vol5/javascript_no7.htm for a more complete solution.
Also be aware that you can achieve what a frameset does through the use of CSS layer positioning, iframes and other methods. Only use frames if you really, really have to.
piglesias
Oye, pues qué buena solución y qué fácil, ¡con lo que a mi me mola el iframe! :D