当前位置: 首页 > 网络学院 > 设计教程 > 设计理念 > 使用框架来优化网站设计

设计理念
什么是XHTML?
启发设计灵感
网站设计的新视角
从最优化角度来设计你的网站
脱离Google生存
logo的类型
Flash的弊端
避免使用JavaScript动态导航条的7大理由
正确使用“留白”属性
商务图形设计
如何使用“哇元素”
提高网站的可访问性
让你步入专家领域
“一页站点”的概念
高级网页设计原则
接近你的客户
创建网站的黄金法则
3条帮助你成功创建“会员制营销”的方法
重新改造你的主页
避免图形文件过量

设计理念 中的 使用框架来优化网站设计


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-01   浏览: 1487 ::
收藏到网摘: n/a

Can you optimize a site designed in frames? Of course you can! The question should be, "how effectively can I optimize a web site designed in frames?" Framed sites - in my opinion - have little use in today's web design. There are so many better ways to design a site. For example, you have HTML, DHTML, Flash, and other design formats.

你可以在框架范围内优化站点设计吗?答案当然是肯定的!接下来的问题是:我该如何有效率地在框架范围内优化站点设计?框架网站——在我看来,在今天的网站设计中使用的很少。这里有很多好的方法来设计一个网站。举个例子来说,你有HTMLDHTMLFlash和其他很多设计格式来完成它。

Besides being hard to optimize, framed sites also:
框架除了很难优化以外,还会碰到下面这些问题:

* Makes it harder for a visitor to bookmark your pages, or add them to their favorites. The bookmark will always point to your home page, which might not be the page they want to bookmark.

很难让人们将你的网站列入书签或加入收藏。书签通常指向你的主页,而一版的访问者都不愿意你来添加这个页面。

* Limit the viewing space your visitor has on the page.

限制访问者在页面上的阅读空间。

* Often when a search engine lists your framed page, it will display without the frame on the left. This means that your visitor will not be able to see the navigation menu.

通常情况下,当一个搜索引擎对你的框架页面进行列表时,通常不会显示位于左边的框架。这意味着,访问者将很难看到你的导航菜单。

Of course, you can go the route of the "noframe" tag, created to help visitors whose browsers can not read frames. Nowadays most browsers can, and so this tag is used more for SEO optimization and search engines. A few keyword-enriched sentences, and - BAM!: Content spiders can read. This may not be the best method, however it does work. Plus, it is "good SEO."

当然,你也可以走“无框架”标签的路线,帮助不能显示框架页面的浏览器的访问者来创建这些标签。现在,大多数浏览器都可以做到这点。因此,这个标签对于搜索引擎优化来说,使用非常广泛。一些富含关键词的句子或是欺骗性的词汇。“内容抓取蜘蛛”都可以阅读,这可能并不是最好的方法,但是,它确实有效果。另外,它是最好的“搜索引擎”优化工具。

There is also another method, requiring a dynamic frameset page:
下面列举了另外一个方法,要求一个动态框架页面:

<html>
<head>
<title>Dynamic Frameset</title>
<script LANGUAGE="JavaScript">
<!-- Begin
if (top != self) {top.location.replace(location) }

var table_of_contents = "main.html";
var blank = " ";
var content = (location.search) ? location.search.substring(1, location.search.length) : table_of_contents;
function fillFrame() {
parent.main.location.replace(content)
}
// Dynamic Frameset Script by Ammon Johns
// source: www.webmarketingplus.co.uk
// End -->
</script>
</head>
<script LANGUAGE="JavaScript">
<!-- Begin
document.write('<frameset cols="134, *" border="0" frameborder="0" framespacing="0" onLoad="fillFrame();">');
document.write('<frame name="menu " src="menu1.html" scrolling="auto" marginheight="10" marginwidth="5" frameborder="0">');
document.write('<frame name="main" src="javascript:parent.blank" scrolling="auto" marginheight="0" marginwidth="0" frameborder="0">');
document.write('</frameset>');
// End -->
</script>
<noscript>
<frameset cols="134, *" border="0" frameborder="0" framespacing="0">
<frame name="menu " src="menu.html" scrolling="auto" marginheight="10" marginwidth="5" frameborder="0">
<frame name="main" src="main.html" scrolling="auto" marginheight="0" marginwidth="0" frameborder="0">
</frameset><noframes></noframes>
</noscript>
</html>

Using this method above does not include the "noframes" tag. There is no need for it. There is also some javascript the needs to be imported.

使用上述的方法并不包含“无框架”标签。因为我们并不需要它。这里只需要导入一些JS脚本就可以了。

Now, I have been around a while. In the web design field, as well as SEO, there are many that suggest that framed sites have trouble ranking high on search engines. So the decision is yours to make: if your site is in frames, you may want to consider one of the aforementioned options, or redesigning your site in HTML. Also, try optimizing your site with keywords, before the other methods. Changes made to your site will reflect in your search engine results. See what works best!

现在,。在网站设计领域,对于搜索引擎优化来说,使用框架页面都很难使得框架网站在搜索引擎中获得很高的排位。所以,这还得由你来决定:如果你的网站是框架结构,那么你就必须考虑一下上述的情况,或者,重新使用HTML来设计你的站点。同样的,在使用其他方法之前,尽量尝试使用关键词来优化你的站点。所有的改变都将反映在搜索引擎的结果上。看看那种方法效果最好吧!

评论 (0) All

登陆 | 还没注册?