

采用CSS+DIV对网站重构日趋被大家重视起来了,尤其是大型站点。
其实,早些时候像阿里巴巴、163等大型门户站点就已经完成了重构工作。使用CSS+DIV来编写网页源码,这种方法确实比传统的table形式的源码架构强多了。
采用CSS+DIV进行网页重构相对与传统的TABLE网页布局而具有以下4个显著优势:
1、表现和内容相分离
将设计部分剥离出来放在一个独立样式文件中,HTML文件中只存放文本信息。
2、提高搜索引擎对网页的索引效率
用只包含结构化内容的HTML代替嵌套的标签,搜索引擎将更有效地搜索到你的网页内容,并可能给你一个较高的评价。
3、提高页面浏览速度
对于同一个页面视觉效果,采用CSS+DIV重构的页面容量要比TABLE编码的页面文件容量小得多,前者一般只有后者的1/2大小。
4、易于维护和改版
你只要简单的修改几个CSS文件就可以重新设计整个网站的页面。
从以上的描述来看,采用CSS+DIV对网站重构可以大大提升网站用户与搜索引擎的友好度。既然是这样,那为什么不从现在开始就学习并掌握CSS+DIV的网站重构方法呢?


先建立一个 robots 文件夹
<%
Sub robot()
Dim robots:robots="Baiduspider+@Baidu|Googlebot@Google|ia_archiver@Alexa|IAArchiver@Alexa|ASPSeek@ASPSeek|YahooSeeker@Yahoo|sohu-search@Sohu|help.yahoo.com/help/us/ysearch/slurp@Yahoo|sohu-search@SOHU|MSNBOT@MSN"
dim I1,I2,l1,l2,l3,i,rs
l2=false
l1=request.servervariables("http_user_agent")
F1=request.ServerVariables("script_NAME")
I1=split(robots,chr(124))
for i=0 to ubound(I1)
I2=split(I1(i),"@")
if instr(lcase(l1),lcase(I2(0)))>0 then
l2=true:l3=I2(1):exit for
end if
next
if l2 and len(l3)>0 then’如果是爬虫,就更新爬虫信息
FilePath = Server.Mappath(”robots/”&l3&”_robots.txt”)
‘记录蜘蛛爬行
Set Fso = Server.CreateObject(”scripting.FileSystemObject”)
Set Fout = Fso.OpenTextFile(FilePath,8,True)
Fout.WriteLine “索引页面:”&F1
Fout.WriteLine “蜘蛛:”&l3&chr(32)&chr(32)&”更新时间:”&**()
Fout.WriteLine “———————————————–”
Fout.Close
Set Fout = Nothing
Set Fso = Nothing
end if
end Sub
%>
asp 放在公用的函数文件里面
比如 放在conn.asp里面 然后直接在 下面调用过程就行了
Call robot()
More Options ...

Categories
Tag Cloud
Blog RSS
Comments RSS

Void (Default)
Life
Earth
Wind
Water
Fire
Lightweight