懂ASP或网页制作的进来帮看下

来源:百度知道 编辑:UC知道 时间:2024/06/03 07:27:09
我有个网站源程序,
看脚本里面内容不多网站LOGO和脚标什么都没有
可是预览的时候网站的LOGO和脚标却都有了

源代码如下:
<!--#include file="conn.asp"-->
<!--#include file="inc/const.asp" -->
<%

response.buffer=true
stats="同学录登陆"

call head()
call head_var("同学录登陆","")
if not founduser then
call main()
if founderr then call txl_error()
end if
call foot()

sub main()
%>
<table width="<%=txl_body(0)%>" cellpadding="0" cellspacing="0" align="center" style="border:1px <%=txl_body(9)%> solid; border-top-width: 0px; border-right-width: 1px; border-bottom-width: 0px; border-left-width: 1px;">
<tr>
<td bgcolor=<%=txl_body(10)%> valign=top><br>
<table cellpadding=0 cellspacing=1 bgcolor=#F5F2ED border=0 width=350 align=center>
<tr>
<td><

call head()
call head_var("同学录登陆","")
call foot()
请注意以上这几个函数,这些函数的作用就是生成头和脚

这几个函数应该是放在inc/const.asp这个文件里的

看到最开始的两行了吗?
<!--#include file="conn.asp"-->
<!--#include file="inc/const.asp" -->
这是引用的另外两个ASP程序,天知道里面会什么更复杂的东西,所以光看你这些代码是看不完全的。

一定包涵在这个文件里inc/const.asp
我也喜欢这样用,因为一般人都不会怀疑到这个文件,
到inc/const.asp这个文件中查找一下你网站LOGO 的名称就这段其位置了

查看网站目录下inc文件夹下的const.asp文件,搜索“head()” 找到LOGO图片名称然后更换LOGO图片位置,搜索“ foot()”修改脚标,就这么简单!

同意一楼的。。call head()和call foot()两个过程在别处定义好的,此处调用即可。