如何给Flash网站做搜索引擎优化(SEO)?
佚名
互联网
2008-2-25 17:18:31
例子:如何使Flash Home Page和Flash菜单被搜索引擎的“蜘蛛”抓取到?
下面展示的示例代码是Marc Abrahms Photography中Flash标题和菜单代码的一部分。这个网站的内页已经被搜索引擎收录,因为他们可以在主要内容中找到链接。
prints |
posters |
books |
my account
Flash可及性程序不能将一个网站神奇地升至搜索引擎排名前面,但是这个Flash SEO方法可以排除由于使用Flash带来的排名难题。
例子:使搜索引擎看到Flash幻灯片显示内容。
第二个例子是来源于Virtutech网站的。它显示了如何在既定空间插入相当长的内容。我们使用DIV,将它的CSS属性设为"overflow:auto",这样来创建一个滚动文本区域。这样可以防止替换内容显示时页面布局被破坏。要看替换内容,使用丧失Javascript的浏览器载入Virtutech的首页。
Simics is
used to develop the embedded
software that runs electronic devices such as:
Aerospace hardware
Automobile control systems
Telecommunications infrastructure
High-end servers
Hardware: Satellite Control
System
Challenge: Unable to test software with satellites
on orbit. How
to verify new software?
Resolution: Using Simics, the developers
can run software
quality tests on the ground, to ensure that the software works correctly
before it's installed.
Industry: Automotive
Hardware: Electronic Control
Unit
Challenge: Need to develop software now, but
the ECU won't
be available for months
Resolution: Simics enables programmers to
develop and test
the software before the hardware is available, reducing time to market.
Industry: Telecommunications
Hardware: Wireless Network Equipment
Challenge: You have twenty programmers. Each
needs a complete
system for testing. They cost MILLIONS.
Resolution: Using Simics to create a model
of the target hardware,
each programmer can have his or her own virtual device for software testing
and debugging, without breaking your budget.
Industry: Internet
Hardware: Network servers
Challenge: Software bugs keep popping up.
Some take weeks to
reproduce and fix. You are running out of time.
Resolution: With Simics, programmers can
run the program forwards
and backwards to quickly identify, recreate and repair bugs.
The CSS code:
#movieAlt {
height: 287px;
width: 497px;
overflow: auto; /*Scroll bar on HTML content div*/
}
#movieAltInner { /*For IE's faulty box model*/
padding: 10px 20px;
}
除了这些网站外,我们在其他流量很高的网站上也使用这种Flash SEO方法。这种发放被屡屡用效果良好。使用这种方法后有些只有在Flash内容中找到的关键字的网站也获得了很好的排名。
全部使用Flash的网站
全部使用Flash建设的网站有个很大的缺点就是它缺乏组织内容,内部链接和唯一网页标题的页面组织结构。一个解决办法就是创建纯HTML页面来显示每个Flash页面,并且在每个HTML页面里面加入Flash影片。如果浏览者访问这个页面,如果可以的话他们会看到Flash的,否则一个非Flash浏览者,例如搜索引擎就能够“爬行”到这个网站上来。另一个解决方法就是将Flash分为好几个片段,然后将相应片段放到每个页面上。
如果把Flash弄成片段的话会妨碍Flash播放流畅的效果。要在这两方面都达到理想的效果就在使用FlashVars的Flash影片中放入一个参数。在每个HTML页面都会有同样的影片,但是根据参数值的不同,根据页面的需要可以在任意一个合适的地方开始播放Flash内容。要避免所有的多余页面但仍然可以使用Flash片段的不同部分,我们可以在每个URL后面中添加a #和一个标签,然后把标签放入Flash中。这种方法可以让前进和返回按钮很好地运行,也可以让人们可以将Flash中特殊的部分加入到标签页中。
用PHP脚本从一个MySQL数据库中将基本的HTML和Flash内容拖出来也是可以的。这种方法可以很大程度上简化一个Flash网站的维护,因为只用储存内容的一个代表就可以了。
转载请注明出自电子商务圈 www.ecsoo.com
UU [To: 如何给Flash网站做搜索引擎优化(SEO)? 发表评论]