PDA

Click to See Complete Forum and Search --> : stupid frames


McJedi
Aug 1st, 2005, 01:31 AM
Is there a meta tag to get search engines to account for frames? Google and yahoo are indexing my sites frame and not the homepage =|

mendhak
Aug 1st, 2005, 05:04 AM
Google says:


Your pages use frames. Google supports frames to the extent that we can. Frames tend to cause problems with search engines, bookmarks, emailing links and so on, because frames don't fit the conceptual model of the web (every page corresponds to a single URL). If a user's query matches the page as a whole, Google returns the frame set. If a user's query matches an individual frame on the page, Google returns the URL for that frame. The page is not displayed in a frame because there may be no frame set corresponding to that URL.


Source: http://www.google.com/webmasters/2.html

anotherVBnewbie
Aug 1st, 2005, 09:56 AM
You could place a javascript in each frame source so that it would reload in the frameset if that page is loaded outside of the framset by checking the top.location

ninjanutz
Aug 5th, 2005, 08:01 PM
here's if u dont no the javascript script...
1) In a text document, on the first line, type if (top.location != "frameset.url", where frameset.url is the frameset that the page in question should always be displayed in.
2) If desired type & top.location != "frameset2.url" where frameset2.url is another frameset in which the page is allowed to be displayed.
*Repeat steo 2 for each possible frameset.*
3) Type ) to complete the condition.
4) Then type {top.location.href= "frameset.url"}, where frameset.url is the web page that should be displayed instead of the requested page, and must be one of the ones noted in steps 1-2, and (hopefully) contains the requested page.
5) Save the script as a text only with the name name.js.
6) In the head section of your HTML document, type <script type="text/javascript" language="javascript" src="name.js"></script> to call the scipt written in name.js.
*This should work to solve ur problem.*

ninjanutz
Aug 5th, 2005, 08:02 PM
almost forgot dont use enter anywhere in the script because this breaks the script