• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

页顶导航条示例_asp

asp 搞代码 3年前 (2018-08-10) 135次浏览 已收录 0个评论

 ‘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

http://www.gaodaima.com/66125.html页顶导航条示例_asp

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"&quot; 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>
引用。 

欢迎大家阅读《页顶导航条示例_asp》,跪求各位点评,若觉得好的话请收藏本文,by 搞代码


喜欢 (0)
[搞代码]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址