关于asp网页导航背景修改问题?
像下面这段代码输出的导航背景是单一的直条,我想在导航左右两端分别添加两个圆角图片logo1.gif和logo2.gif,请问高人怎样添加修改相应代码。functionHe...
像下面这段代码输出的导航背景是单一的直条,我想在导航左右两端分别添加两个圆角图片logo1.gif和logo2.gif,请问高人怎样添加修改相应代码。
function HeadNavigation()
dim rs,sql
set rs = server.createobject("adodb.recordset")
sql="select * from Askwei_Navigation where ViewFlag order by Sequence asc"
rs.open sql,conn,1,1
if rs.bof and rs.eof then
response.write "<tr><td height='28' align='center'><font color='white'>暂无导航链接</font></td></tr>"
else
response.write "<tr>"
do
response.write "<td height='28' align='center' class='Navigation' background=../images/logobg.gif><a href='"&rs("NavUrl")&"'>"&rs("NavName")&"</a></td>"
rs.movenext
if not rs.eof then response.write "<td width='1'></td>"
loop until rs.eof
response.write "</tr>"
end if
response.write "<tr><td width='100%' height='1' colspan='"&rs.recordcount*2-1&"'></td></tr>"
rs.close
set rs=nothing
end function 展开
function HeadNavigation()
dim rs,sql
set rs = server.createobject("adodb.recordset")
sql="select * from Askwei_Navigation where ViewFlag order by Sequence asc"
rs.open sql,conn,1,1
if rs.bof and rs.eof then
response.write "<tr><td height='28' align='center'><font color='white'>暂无导航链接</font></td></tr>"
else
response.write "<tr>"
do
response.write "<td height='28' align='center' class='Navigation' background=../images/logobg.gif><a href='"&rs("NavUrl")&"'>"&rs("NavName")&"</a></td>"
rs.movenext
if not rs.eof then response.write "<td width='1'></td>"
loop until rs.eof
response.write "</tr>"
end if
response.write "<tr><td width='100%' height='1' colspan='"&rs.recordcount*2-1&"'></td></tr>"
rs.close
set rs=nothing
end function 展开
展开全部
else
response.write "<tr><td><img src=""images/logo1.gif"" /></td>"
do
loop until rs.eof
response.write "<td><img src=""images/logo2.gif"" /></td></tr>"
end if
补充下:
这里也要改
response.write "<tr><td width='100%' height='1' colspan='"&rs.recordcount*2-1&"'></td></tr>"
改为
response.write "<tr><td width='100%' height='1' colspan='"&rs.recordcount*2+1&"'></td></tr>"
response.write "<tr><td><img src=""images/logo1.gif"" /></td>"
do
loop until rs.eof
response.write "<td><img src=""images/logo2.gif"" /></td></tr>"
end if
补充下:
这里也要改
response.write "<tr><td width='100%' height='1' colspan='"&rs.recordcount*2-1&"'></td></tr>"
改为
response.write "<tr><td width='100%' height='1' colspan='"&rs.recordcount*2+1&"'></td></tr>"
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询