Web Design Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignWeb Design Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 6th, 2004, 08:42 PM
mxpxaws mxpxaws is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 1 mxpxaws User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Individual Frames Pages load

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

Reply With Quote
  #2  
Old December 7th, 2004, 12:55 PM
storemike storemike is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 118 storemike User rank is Lance Corporal (50 - 100 Reputation Level)storemike User rank is Lance Corporal (50 - 100 Reputation Level)storemike User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Day 3 h 4 m 39 sec
Reputation Power: 5
Quote:
Originally Posted by mxpxaws
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


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

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignWeb Design Help > Individual Frames Pages load


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway