如何實現不同域名調用不同head?
以下是我的首頁index.asp和頭部head.asp的代碼,我有兩個域名,我要如何做才能讓它實現不同的域名調用不同的head ?希望哪位高手幫我一下,非常感謝!
index.asp如下:
<!--#include file="head.asp"--><body bgcolor="#FFFFFF">
<table width="760" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="505" valign="top" height="61">
<table width="100%" height="585" border="0" cellpadding="0" cellspacing="1" bgcolor="00A0E8">
<tr>
<td valign="top" bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="152" width="44%">
<table width="213" border="0" cellspacing="6" cellpadding="0">
<tr>
<td>
<div align="center">
<!--#include file="js/top.asp" -->
</div>
</td>
</tr>
</table>
</td>
<td height="152" width="56%" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td height="7" width="175" bgcolor="#FFFFFF"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="25">
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="images/top00101.jpg">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="25">
<tr>
<td width="100" background="images/top0010.jpg">
<div align="center"><b><font color="#FFFFFF">新闻动态--></font></b></div>
</td>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50%">
<div align="right"> </div>
</td>
<td width="50%">
<div align="left">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="22"><img src="images/ico_sift_tit.gif" width="18" height="15"></td>
<td>
<a href="type_news.asp?name=新闻动态&city=<%=request("city")%>" target="_blank">更多新闻</a></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<p style="line-height: 150%"> <span style="font-size: 9pt">
</span><span style="font-size: 9pt">
<!-- 热点分类信息 -->
<%sql="select top 8 title,adid,color,date from news_data where type='新闻动态' and stop >= date() and mark='yes' order by adid desc"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
if rs.eof then%>
<font color='#FF0000'>暂无新闻动态!</font>
<%
else
do while not rs.eof%>
</span><span style="font-size: 9pt">·</span><span style="font-size: 9pt"><a title=<%=rs("title")%> href="html/news/<%=rs("adid")%>.htm" target="_blank"><font style="size:12px " <%if rs("color")<>"" then%>color="<%=rs("color")%>"<%end if%>><%=left(rs("title"),20)%></font></a><b><span style="font-size: 9pt"><font color="#008000"> </font></span></b><font color="#008080" style="font-size: 9pt"><%=mid(DateValue(rs("date")),6)%></font><br>
<%rs.movenext
loop
end if
rs.close%>
<!--這中間還有首頁的相關代碼省略-->
<!-- 这里是主题结束 -->
<!--#include file="foot.asp"-->
<% if switch_onlingQQ ="1" then %>
<!--#include file="qqOline.asp" -->
<% end if %>
<%if picpass(4)="yes" then%>
<!--#include file="js/duilian.asp"-->
<%end if%>
<!--#include file="js/duilians.asp"-->
<%if picpass(7)="yes" then%>
<!--#include file="js/windows.asp"-->
<%end if%>
<%if picpass(8)="yes" then%>
<!--#include file="js/piao.asp"-->
<%end if%>
<table width="760" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="505" valign="top" height="61">
<table width="100%" height="585" border="0" cellpadding="0" cellspacing="1" bgcolor="00A0E8">
<tr>
<td valign="top" bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="152" width="44%">
<table width="213" border="0" cellspacing="6" cellpadding="0">
<tr>
<td>
<div align="center">
<!--#include file="js/top.asp" -->
</div>
</td>
</tr>
</table>
</td>
<td height="152" width="56%" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td height="7" width="175" bgcolor="#FFFFFF"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="25">
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="images/top00101.jpg">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="25">
<tr>
<td width="100" background="images/top0010.jpg">
<div align="center"><b><font color="#FFFFFF">新闻动态--></font></b></div>
</td>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50%">
<div align="right"> </div>
</td>
<td width="50%">
<div align="left">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="22"><img src="images/ico_sift_tit.gif" width="18" height="15"></td>
<td>
<a href="type_news.asp?name=新闻动态&city=<%=request("city")%>" target="_blank">更多新闻</a></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<p style="line-height: 150%"> <span style="font-size: 9pt">
</span><span style="font-size: 9pt">
<!-- 热点分类信息 -->
<%sql="select top 8 title,adid,color,date from news_data where type='新闻动态' and stop >= date() and mark='yes' order by adid desc"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
if rs.eof then%>
<font color='#FF0000'>暂无新闻动态!</font>
<%
else
do while not rs.eof%>
</span><span style="font-size: 9pt">·</span><span style="font-size: 9pt"><a title=<%=rs("title")%> href="html/news/<%=rs("adid")%>.htm" target="_blank"><font style="size:12px " <%if rs("color")<>"" then%>color="<%=rs("color")%>"<%end if%>><%=left(rs("title"),20)%></font></a><b><span style="font-size: 9pt"><font color="#008000"> </font></span></b><font color="#008080" style="font-size: 9pt"><%=mid(DateValue(rs("date")),6)%></font><br>
<%rs.movenext
loop
end if
rs.close%>
<!--這中間還有首頁的相關代碼省略-->
<!-- 这里是主题结束 -->
<!--#include file="foot.asp"-->
<% if switch_onlingQQ ="1" then %>
<!--#include file="qqOline.asp" -->
<% end if %>
<%if picpass(4)="yes" then%>
<!--#include file="js/duilian.asp"-->
<%end if%>
<!--#include file="js/duilians.asp"-->
<%if picpass(7)="yes" then%>
<!--#include file="js/windows.asp"-->
<%end if%>
<%if picpass(8)="yes" then%>
<!--#include file="js/piao.asp"-->
<%end if%>
head.asp如下:
[此贴子已经被作者于2007-10-15 10:55:51编辑过]