|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hey everyone,
this is my first post, and it's an issue I"ve been thinking about for awhile. I run my family's business' website that gets a good amount of hits each month, and its a frames site. The problem is that on the listings on google, yahoo, etc. for my site, it has a bunch of listings for just individual pages on the site which are supposed to be in the frameset with a navigation bar frames page on the left, so the page just ends up coming up as a single page and looking stupid and pointless you know? - when it's supposed to be viewed in a right frame only. This makes the business look retarded when this page on only one topic comes up to searchers taking up the whole page. Anyhow, is there anyway to correct this?! So that when a link for say one page of the website is loaded the navbar frames page will automatically load on the left? Some kind of code i can paste into each page? I need to fix this somehow, but i'm completely lost... Any ideas? Thanks for any help! Paul |
|
#2
|
|||
|
|||
|
Quote:
sure...just put a bit of javascript in each file... if(top==self){document.location="whatever.html"} where whatever.html is the name of the main frames page. You could get fancy and make sure that the content fame is the same page they found on Yahoo or Google by... if(top==self){document.location="whatever.html?shoes.html"} than, for whatever.html (the page with the frameset tags), have something similar to (note the lack of body and html tags): <script> document.write("<frameset cols=\"200,*\">"); document.write("<frame name=\"nav\" src=\"nav.html\" marginwidth=\"10\" marginheight=\"10\" scrolling=\"auto\" frameborder=\"0\">"); document.write("<frame name=\"contentFrame\" src=\""+location.search.substring(1,location.search.length)+"\" marginwidth=\"10\" marginheight=\"10\" scrolling=\"auto\" frameborder=\"0\">"); document.write("</frameset>"); </script> where contentFrame is the name for the main frame holding the content page found in the Yahoo search. You have to use document.write for all parts of the frameset. If you have ASP or PHP, it's much easier. If you can't get it, send the url and I'll look at it. Mike |
![]() |
| Viewing: Dev Shed Forums > Web Design > Web Design Help > Individual Frames Pages load |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|