Optimizing Frames for Search Engines

Written by Dale Goetsch

Continued from page 1

Why is site framed?

People use framed sites for a number of reasons: ease in navigation, uniform appearance throughout a site, keeping your company name front-and-center, and so on. In other words, there is probably a reason why you wanted to displayrepparttar pages on your site (file1.html, file2.html, file3.html) withinrepparttar 128018 frames designated inrepparttar 128019 "framing" page. Your search engine entries, however, will not keeprepparttar 128020 pages in this configuration--remember thatrepparttar 128021 robot didn't do frames, sorepparttar 128022 search engine database knows nothing of frames now either. That meansrepparttar 128023 hyperlink created inrepparttar 128024 search engine listing will load onlyrepparttar 128025 individual page (file2.html), and not put it in its overall context. That's not what you wanted, or you would have designedrepparttar 128026 site that way!

Loading page into frames

In order to forcerepparttar 128027 user's browser to load a given page intorepparttar 128028 framed environment that you wanted, you must employ some JavaScript sleight-of-hand. Specifically, you need to make each page aware that it wants to load only withinrepparttar 128029 frames that you have designed. This is a two-step process that involves placing some JavaScript code in each page onrepparttar 128030 site.

Individual pages

For each ofrepparttar 128031 individual pages, you need to add an awareness whether they are loaded into a frame, or sitting by themselves as an individual document inrepparttar 128032 browser window. This is accomplished by addingrepparttar 128033 following JavaScript torepparttar 128034 page, typically withinrepparttar 128035 HEAD section:

Figure 9--JavaScript for individual pages

You will replace some ofrepparttar 128038 parameters here with names more appropriate to your situation:

replace "frameset.html" withrepparttar 128039 name ofrepparttar 128040 page on your site that hasrepparttar 128041 tags in it replace "right" withrepparttar 128042 name ofrepparttar 128043 frame onrepparttar 128044 frameset page into which you want to loadrepparttar 128045 current page Let's implement this forrepparttar 128046 page "page1.html", which we want loaded intorepparttar 128047 frame named "right" that is defined inrepparttar 128048 framing page "index.html". Remember to add your meta tags and giverepparttar 128049 page a meaningful title. Noterepparttar 128050 substitutions referenced above.

SuperWidget from XYZ< itle> <meta content="description" value="SuperWidget and all other widgets at half price from XYZ"> <meta content="keywords" value="SuperWidget XYZ best widgets half price widgets"> <script> <!-- function frameMe(){ var frameset = "frameset.html"; //name of<IMG height=12 src="/the2.jpg" alt="repparttar 128051"> frameset page var frame = "right"; //name of<IMG height=12 src="/the2.jpg" alt="repparttar 128052"> frame to load document into page = new String(self.document.location); var pos = page.lastIndexOf("/") + 1; var file = page.substr(pos); if(window.name != frame){ var s = frameset + "?" + file + "&" + frame; top.location.replace(s); } return; } frameMe(); //--> </script> </head> <body> <h1>Page 1</h1> This is Page 1 of<IMG height=12 src="/the2.jpg" alt="repparttar 128053"> XYZ site, home of<IMG height=12 src="/the2.jpg" alt="repparttar 128054"> new and improved SuperWidget XYZ. We have<IMG height=12 src="/the2.jpg" alt="repparttar 128055"> best widgets available anywhere today, and at half<IMG height=12 src="/the2.jpg" alt="repparttar 128056"> price of most leading widgets! </body> </html> Figure 10--individual page with JavaScript added<p>The "framing" page<p>For<IMG height=12 src="/the2.jpg" alt="repparttar 128057"> "framing" page, there are two additional pieces of JavaScript that must be added. The first is a JavaScript function that is placed in<IMG height=12 src="/the2.jpg" alt="repparttar 128058"> <HEAD> section of<IMG height=12 src="/the2.jpg" alt="repparttar 128059"> page:<p> <script> <!-- function loadDoc(){ var a = location.search.split('&'); var page = a[0].substr(1); var frame = a[1]; if(page && frame){ var s = "top." + frame + ".location.replace('" + page + "')"; eval(s); } return; } //--> </script> Figure 11--JavaScript for "framing" page<p>There are no substitutions in this code. Place it exactly as shown.<p>The other piece of code that must be placed is an "onLoad" event handler, that is placed in<IMG height=12 src="/the2.jpg" alt="repparttar 128060"> <FRAMESET> tag, like this:<p> <frameset cols="20%,80%" onLoad="loadDoc()"> Figure 12--onLoad code for "framing" page<p>Remember that your frameset may have "cols" or "rows" attributes, and<IMG height=12 src="/the2.jpg" alt="repparttar 128061"> numbers may vary. When we have it all together,<IMG height=12 src="/the2.jpg" alt="repparttar 128062"> completed "framing" page will now look like this:<p> <html> <head> <title>SuperWidget XYZ from XYZ< itle> <script> <!-- function loadDoc(){ var a = location.search.split('&'); var page = a[0].substr(1); var frame = a[1]; if(page && frame){ var s = "top." + frame + ".location.replace('" + page + "')"; eval(s); } return; } //--> </script> </head> <frameset cols="20%,80%" onLoad="loadDoc()"> <frame src="navbar.html" name="left"> <frame src="page1.html" name="right"> </frameset> <noframes> Welcome to XYZ, home of<IMG height=12 src="/the2.jpg" alt="repparttar 128063"> new and improved SuperWidget XYZ. We have<IMG height=12 src="/the2.jpg" alt="repparttar 128064"> best widgets available anywhere today, and at half<IMG height=12 src="/the2.jpg" alt="repparttar 128065"> price of most leading widgets!<p> <a href="page1.html" rel="nofollow">Page 1</a><p> <a href="page2.html" rel="nofollow">Page 2</a><p> <a href="page3.html" rel="nofollow">Page 3</a> </noframes> </html> Figure 13--all components placed in "framing" page<p>Completion<p>Once you have made these changes for<IMG height=12 src="/the2.jpg" alt="repparttar 128066"> "framing" page and all of<IMG height=12 src="/the2.jpg" alt="repparttar 128067"> individual pages, you are now ready for<IMG height=12 src="/the2.jpg" alt="repparttar 128068"> search engine robots to visit your site. They will be able to access all of<IMG height=12 src="/the2.jpg" alt="repparttar 128069"> pages in your site, and when your visitors click on your listing in<IMG height=12 src="/the2.jpg" alt="repparttar 128070"> search engines, your individual pages will load in<IMG height=12 src="/the2.jpg" alt="repparttar 128071"> way you designed them to work.<p> <br><img src="images/ata.gif"><br> <p>Dale Goetsch is the Technical Consultant for Search Innovation (www.searchinnovation.com), a Search Engine Promotion company serving small businesses and non-profits. He has over twelve years experience in software development. Along with programming in Perl, JavaScript, ASP and VB, he is adept at technical writing and editing. <br><br><br></font></td><!-- google_ad_section_end --><!-- google_ad_section_start(weight=ignore) --><td align="top" width="10%"></td><td align="top" width="45%"><h2>A Look at Ask Jeeves and Teoma</h2><font size="2">Written by Robin Nobles</font><br><br><script type="text/javascript"><!-- google_ad_client = "pub-5766870852072819"; google_ad_width = 234; google_ad_height = 60; google_ad_format = "234x60_as"; google_ad_channel ="9238851329"; google_color_border = "CFB9A1"; google_color_bg = "CFB9A1"; google_color_link = "000000"; google_color_url = "431B02"; google_color_text = "431B02"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> <font size="2"><br>Continued from page 1<br><p>Question: So in<IMG height=12 src="/the2.jpg" alt="repparttar "> future, we'll have<IMG height=12 src="/the2.jpg" alt="repparttar 128017"> ability to swap out URLs? <p>Jim: "We'll see, but I hear you. We are aware of Inktomi's program." <p>Question: What's<IMG height=12 src="/the2.jpg" alt="repparttar 128018"> difference in traffic between<IMG height=12 src="/the2.jpg" alt="repparttar 128019"> premium listings and<IMG height=12 src="/the2.jpg" alt="repparttar 128020"> "regular" search results? <p>Jim: "Do you mean between Premier Listings (Featured Sponsor) and Paid Inclusion? There are two differences: 1) You are guaranteed that your listing will show up; 2) You are guaranteed that it will show up in a specific location on our page."<p>Question: Are Premier Listings twice as likely to be clicked on, for example?<p>Jim: "Premier Listing is really just an ad. With Paid Inclusion, you aren't paying for anything other than being included in<IMG height=12 src="/the2.jpg" alt="repparttar 128021"> index and then being subjected to<IMG height=12 src="/the2.jpg" alt="repparttar 128022"> same relevance algorithms that give us our other results, but with<IMG height=12 src="/the2.jpg" alt="repparttar 128023"> other benefits that I mentioned earlier.<p>"In terms of click ratio, I suppose it depends on how relevant your site is to a given query. The match rate of a site that buys ad space on our site is much more significant than one that purchases via paid inclusion for now."<p>For more information about Premier Listings, visit: http://static.wc.ask.com/docs/advertise/premier.html.<p>Question: Let's say that I have a Web site: http://myownwebsite.com, and let's say that my goal is for it to become an "authoritative" site in Teoma. Could you give us some tips on what we can do to try to be considered by Teoma as an authoritative or expert site on a particular subject? <p>Jim: "Our recommendations are as follows: 1) you allow people to link to you; 2) you offer quality content so that you become popular among other sites of<IMG height=12 src="/the2.jpg" alt="repparttar 128024"> same subject (i.e., experts). Basically, that's it. None of our expert sites or authorities are manually decided. It's based on our algorithms."<p>Question: On Teoma, are Teoma and Ask Jeeves results combined? <p>Jim: "Well, there really is no such thing as an Ask Jeeves result. There are pre-fab, editorially selected `answers' to certain queries that may appear at<IMG height=12 src="/the2.jpg" alt="repparttar 128025"> top of<IMG height=12 src="/the2.jpg" alt="repparttar 128026"> page if we have a high level of confidence that we have<IMG height=12 src="/the2.jpg" alt="repparttar 128027"> right answer. But as far as<IMG height=12 src="/the2.jpg" alt="repparttar 128028"> actual search results go, it's all Teoma...and we'll layer in<IMG height=12 src="/the2.jpg" alt="repparttar 128029"> Direct Hit click-pop at some point soon."<p>Question: But Teoma results ARE being shown at Ask Jeeves? <p>Jim: "That's exactly right. The part of<IMG height=12 src="/the2.jpg" alt="repparttar 128030"> AJ page that says, `You may find these search results helpful' has<IMG height=12 src="/the2.jpg" alt="repparttar 128031"> Teoma results. They were launched in January (and by no coincidence, we immediately saw a 30% increase in picks to those results.)"<p>Question: The "Featured Sponsor" section of Ask Jeeves, is that<IMG height=12 src="/the2.jpg" alt="repparttar 128032"> Premier Listings? <p>Jim: "Yes it is." <p>(End of interview/chat session)<p>Let's take a longer look at Teoma<p>If you haven't visited Teoma yet and performed a few searches, you need to do so (http://www.teoma.com/). It's a really cool engine with some very interesting and helpful features.<p>For example, it's a no-nonsense engine like Google with one purpose only: search. <p>When you search at Teoma, you're given three sets of results:<p>* Results, which are relevant Web pages from<IMG height=12 src="/the2.jpg" alt="repparttar 128033"> Teoma index; <p>* Refine, which are suggestions for narrowing your search; <p>* Resources, which are link collections from experts and enthusiasts.<p>So with Teoma, if your search results are too broad, you can immediately narrow them down by choosing one of<IMG height=12 src="/the2.jpg" alt="repparttar 128034"> suggestions in<IMG height=12 src="/the2.jpg" alt="repparttar 128035"> Refine section.<p>And, in<IMG height=12 src="/the2.jpg" alt="repparttar 128036"> Resources area, you'll find "experts" in that particular focus area. This is an excellent place to find related and important sites that might be good candidates to contact about swapping links.<p>More on Ask Jeeves<p>Ask Jeeves is<IMG height=12 src="/the2.jpg" alt="repparttar 128037"> "question answering" search engine, which puts it into a class of its own. (http://www.askjeeves.com)<p>At<IMG height=12 src="/the2.jpg" alt="repparttar 128038"> top of<IMG height=12 src="/the2.jpg" alt="repparttar 128039"> search results, you'll see a "featured sponsor" section, which is their Premier Listing advertisement that we've discussed previously. <p>With some searches, you'll see a "sponsored links" section, which are results currently being provided by Overture. However, on September 3, Ask Jeeves will be switching to Google for their paid listings.<p>Then, you'll find search results from Teoma, followed by a section called, "Other people with your search have also asked:" In that section, you'll see additional questions that may help answer your initial question, with results coming from Ask.com. <p>Like at Teoma, you can narrow your search down by choosing one of<IMG height=12 src="/the2.jpg" alt="repparttar 128040"> search terms on<IMG height=12 src="/the2.jpg" alt="repparttar 128041"> right-hand side of<IMG height=12 src="/the2.jpg" alt="repparttar 128042"> page.<p>Ask Jeeves recently entered into an agreement with Google to display their Google AdWords in Ask Jeeves results effective September 3, 2002. Those results will be shown at both Ask Jeeves and Teoma as "sponsored links." For more information, visit: http://www.nytimes.com/aponline echnology/AP-Ask-Jeeves-Google.html<p>In Conclusion<p>Teoma has taken over<IMG height=12 src="/the2.jpg" alt="repparttar 128043"> old Direct Hit site, and I believe we'll see some big things out of this fascinating engine in<IMG height=12 src="/the2.jpg" alt="repparttar 128044"> future.<p>Ask Jeeves is as it's always been: unique - a place where you can go and ask a question and be presented with several possible answers.<p>If you haven't submitted your site to Ask Jeeves/Teoma, and if your site isn't found in<IMG height=12 src="/the2.jpg" alt="repparttar 128045"> Teoma index, I strongly suggest that you consider their pay inclusion program and become a part of their index.<p> <br><img src="images/ata.gif"><br> <p> Robin Nobles, Director of Training, Academy of Web Specialists, (http://www.academywebspecialists.com) has trained several thousand people in her online search engine marketing courses. She also teaches 4-day hands on search engine marketing workshops in locations across the globe with Search Engine Workshops (http://www.searchengineworkshops.com). <br><br><br></font></td><!-- google_ad_section_end --></tr><tr><td>    <a class="mlink" href="Optimizing_Frames_for_Search_Engines-28018.htm"><</a>Back to Page 1</td></tr></table><script type="text/javascript"><!-- google_ad_client = "pub-5766870852072819"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "728x90_as"; google_ad_channel ="8831454965"; google_color_border = "CFB9A1"; google_color_bg = "CFB9A1"; google_color_link = "000000"; google_color_url = "431B02"; google_color_text = "431B02"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </td> </tr> </table> <table width="770" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> </tr> <tr> <td height="48" align="center" background="images/bg_nav_bottm.jpg"><span class="style3">ImproveHomeLife.com © 2005<br> <a href="terms.html" rel="nofollow">Terms of Use</a></span></td> </tr> </table></td> </tr> </table> <script type="text/javascript"> var HASH_ESCAPED="%23"; function TrackIt(adUnit){ if (window.status) { var adDomain = escape(window.status.substring(6)); var pyPage = document.location.pathname; var params = document.location.search; var hasAnchor = params.lastIndexOf(HASH_ESCAPED)!= -1; params = hasAnchor? (params.substring(0, params.lastIndexOf(HASH_ESCAPED))) : params; pyPage = escape(pyPage.substring(pyPage.lastIndexOf('/') + 1)); pyPage = pyPage + params; var curTime = new Date().valueOf(); var bug = new Image(); bug.src = '/track/adsenseTrack.php?pyPage=' + pyPage + '&adDomain=' + adDomain + '&adUnit=' + adUnit + "&time=" + curTime; } } function TrackIt0() {TrackIt(0); } function TrackIt1() {TrackIt(1); } function TrackIt2() {TrackIt(2); } var elements = document.getElementsByTagName("iframe"); for (var i = 0; i < elements.length; i++) { if(elements[i].src.indexOf('googlesyndication.com') > -1) { //elements[i].onfocus = TrackIt; if (i==0) elements[i].onfocus = TrackIt0; if (i==1) elements[i].onfocus = TrackIt1; if (i==2) elements[i].onfocus = TrackIt2; } } </script> <!--WEBBOT bot="HTMLMarkup" startspan ALT="Site Meter" --> <script type="text/javascript" language="JavaScript">var site="s19improve"</script> <script type="text/javascript" language="JavaScript1.2" src="http://s19.sitemeter.com/js/counter.js?site=s19improve"> </script> <noscript> <a href="http://s19.sitemeter.com/stats.asp?site=s19improve" target="_top"> <img src="http://s19.sitemeter.com/meter.asp?site=s19improve" alt="Site Meter" border=0></a> </noscript> <!-- Copyright (c)2002 Site Meter --> <!--WEBBOT bot="HTMLMarkup" Endspan --> </body> </html>