|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I have a piece of code from LONG ago, which I "inherited" from a site which I purchased, the site having originally been made using frames. Frames are not a great idea these days as you probably know, but here is the code nevertheless:
<SCRIPT LANGUAGE="JavaScript"> <!-- if (top == self) self.location.href = "index.html"; // --> </SCRIPT> The above script goes in the <head> section of the web page(s) which form part of a frameset and it's purpose is to make any child frame display the full (parent) frameset (containing the child frames) as opposed to displaying only one child frame (which may look daft on its own). Obviously the parent frameset in this instance is called "index.html", so you'll need to change that part as appropriate. Give it a whirl; hope it still works after all this time! If it does work, you should find that even if Google sends someone to a child frame, it should pop the complete frameset up instead, which would make much more sense visually. |
|
||||
|
1. Why are you stuck with them?? Bite the bullet and start planning a solution to rid yourself of a framed website.
2. You can also 301 redirect a URL to another URL. Have you considered this? |
|
|||
|
By the way, I totally agree (as always!) with Incrediblehelp, but hope the script shown above suits for the interim.
|
|
|||
|
The real problem lies in directing the user to the page as it should be viewed. I think you could use .htaccess to redirect the user to the correct URL. This would work for the menu frame and the other frames you mention because you probably only have a couple of these but if you have a large number of content pages it could get tedious.
You might also want to look here to solve the problem for iFrames: Force Page into an Iframe or here for frames: HotScripts.com :: JavaScript :: Windows and Frames :: Force Page To Open In Frameset Script |
|
|||
|
Seriously why don't you start again, a bit of javascript is only a bandaid fix.
Set up a new css layout, all your links will be on the one page, google will see them, who knows what's happening now? it must be a mess for the bots to see the full potential of your site. If you already have OK search results, IMO changing to a css layout is probably the best SEO you could do right now, I'm sure your results would imporve. There's a heap of css layout template sites out there, if you have a huge site, just start on the pages which rank.
__________________
Kakadu Nat Park in Australia has man eating crocodiles and 20000 year old rock paintings, see it by 4WD kakadu tours |
|
|||
|
Right now you are pedaling a trike in the indy 500. You may think it will cost too much to get off the trike and into a car but you are losing more ground than you know. Yes bite the bullet and redesign the site without frames.
|
|
||||
|
I have had many clients come to me with older frame build sites, which we have unframed, and they've been way better for it in the SERPs and for many other reasons too.
Here's your original site index page... <frameset framespacing=0 border=0 rows=89,71* frameborder=0>Now if you are on a linux server you can use a .htaccess file to allow the server to parse server side includes for .htm (or whatever extensions your site is now)... Then do this... <!--#include virtual="/mainlogo.htm" -->do that for each page .. done your site doesn't rely on frames anymore... Once you're frameless you're off to the races anytime you want you can redesign very easily. You can change the names of the files for the header / nav also..
__________________
Ron Boyd website consulting (design, optimization, marketing) :: Follow Me: @orionsweb |
|
||||
|
If you have a choice, redesign, if not here's another variation...
<script type="text/javascript"> <!-- //if not in frames if (parent.frames.length==0) //CHANGE "index.htm" to the URL of your main frame page window.location.replace("index.htm") //--> </script>
__________________
Visit my Web Design company |
|
||||
|
I’m not so sure about frames hurting position in the SERPs, if used correctly.
my frames site was in the top positions until it was dropped from the DMOZ. I was using the java code for redirect as Fitz suggested and it worked fine. When I changed my table design to css I added links to the bottom of the pages and dropped the code to clean things up though. Here is a link for a page which looks like frames but it is css,… just to give you some inspiration. CSS Frame Emulation stu nicholls | CSS PLaY | CSS frame emulation | the holy grill# |
|
|||
|
Adding to Roxanne's script ...
See the following line ... window.location.replace("index.htm") I'm not going to search out the code for you, but you can use ASP or PHP or whatever to get the exact address the searcher went to... Truncate the base URL and append the page to url as a tag like ?url= Nav the frame to the url= ... It isn't difficult, and maybe it is just unnecessary drama. Best solution is to hire a good designer to fix it. wink. |
|
||||
|
To all that replied.. THANK YOU!
Fitz- the code worked, now getting it on all the needed pages will be a chore, but one that works! Thank You. Incrediblehelp - gee, wanna re-do my entire website? it's only one gigibyte of content... Roxanne, Haven't tried your variant of the code, but if the first one has problems, I have a backup. Orion, will your solution work on Windows servers? We are .NET and ASP driven internally. Again, Thank you all! |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Differentiate Paid vs Organic Listings? | phunklord | Search Engine Optimization Forum | 4 | 10-04-2005 05:23 PM |
| Penalised in Google for Affiliates in organic listings? | NakedLogic | Search Engine Optimization Forum | 0 | 02-24-2005 07:34 PM |
| How To Question: Frame or no Frame? | Glenn Albert Bradley | Google AdWords/Google AdSense | 4 | 01-08-2005 03:06 PM |
| Organic Listings - Day 1, 1:30 PM (EST) | Garrett | Insider Reports | 7 | 12-13-2003 10:12 AM |
| Keyword impressions and Organic Listings | huskers | Search Engine Optimization Forum | 0 | 12-12-2003 06:44 PM |
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |