欢迎光临
我们一直在努力

页顶导航条示例-ASP教程,ASP应用

建站超值云服务器,限时71元/月

nav1.asp
<%
option explicit
dim out,tar
dim fontcolor,bordercolor,bgcolor
if request.querystring (“bgcolor”)=”” then
bgcolor=”#ffffff”
else
bgcolor=request.querystring (“bgcolor”)
end if
if request.querystring (“fontcolor”)=”” then
fontcolor=”#666666″
else
fontcolor=request.querystring (“fontcolor”)
end if
if request.querystring (“bordercolor”)=”” then
bordercolor=”#000000″
else
bordercolor=request.querystring (“bordercolor”)
end if
tar=trim(request.querystring (“action”))
if tar=”” then
tar=”home”
end if

out = “<table border=””0″” width=””100%”” style=””font-family: 宋体; font-size: 10pt; color: ” & fontcolor & “;border:1 solid ” & bordercolor & “”” cellspacing=””0″” bgcolor=””” & bgcolor &”””>”
out = out & ”  <tr>”

out = out & ”    <td align=””center”” valign=””middle”” width=””11%””>”
if tar<>”home” then
   out = out & ”     <a href=””http://www.xyz.com/index.html”” target=_top>主页”
else
   out = out & ”     <font color=””#ff0000″”>主页”
end if
out = out & ”  </td>”

out = out & ”    <td align=””center”” valign=””middle”” width=””11%””>”
if tar<>”news” then
   out = out & ”     <a href=””http://news.xyz.com/index.html”” target=_top>新闻”
else
   out = out & ”     <font color=””#ff0000″”>新闻”
end if
out = out & ”  </td>”

….
….

out = out & ” </tr>”
out = out & “</table>”

response.write  “document.write(” & out &  “)”
%>


<script language=”javascript1.1″ src=”http://www.xyz.com/navigator/nav1.asp?action=home”></script>
引用。 

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » 页顶导航条示例-ASP教程,ASP应用
分享到: 更多 (0)