广告对联添加显示的问题!

pengboy 2006-02-14 04:07:30
请教,我正在改一个网站的首页,页面上本来只有一列广告,我想把它作成广告对联的样式,我把代码复制过去之后,从后台填加,前面两列显示的都是一样的广告,请问怎么才能把他们给分开?前台的代码如下<table width="95%" border="0" cellspacing="0" cellpadding="0" class="12w">
<tr>
<td><scriptsrc="../mylink/homeapply.aspscroll=0&all=0&up=0&count=10&col=10"></script></td>
</tr>
</table>
参数说明:
scroll:是否滚动显示
=0 不滚动
=1 滚动
all:   是否显示全部链接
    =0 显示全部链接
=1 只显示后台设置在首页显示的链接
up: 垂直显示还是水平显示
=0 垂直显示
=1 水平显示
count: 显示个数
col: 显示列数(up为0时有效)
...全文
95 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
yutian130 2006-02-16
  • 打赏
  • 举报
回复
先做个标记。。。等待解决,呵呵!!!!!!!!!!!
pengboy 2006-02-15
  • 打赏
  • 举报
回复
mark是什么意思?能不能说的详细一点,谢谢.................
yutian130 2006-02-14
  • 打赏
  • 举报
回复
mark
pengboy 2006-02-14
  • 打赏
  • 举报
回复
后台添加没有问题,就是前台显示,谢谢各位................
pengboy 2006-02-14
  • 打赏
  • 举报
回复
homeapply.asp的程序如下:
<%response.Write "document.write('<link href=1.css rel=stylesheet type=text/css>');"%>
<!--#include file = "public.asp"-->
<%response.Write "document.write('<div align=center>');"
if request("scroll")="1" then Response.Write "document.write('<MARQUEE direction=up onmouseout=start() onmouseover=stop() scrollAmount=3 scrollDelay=200>');"
Set rs=server.createobject("ADODB.RECORDSET")
if request("all")="0" then
rs.open "Select top "&request("count")&" * From friend where sitelogo<>'' order by id desc" ,Conn,1,1
else
rs.open "Select top "&request("count")&" * From friend where sitelogo<>'' and show=1 order by id desc" ,Conn,1,1
end if
linkcount=0
do while not rs.eof
response.Write "document.write('<a href="&rs("URL")&" target=_blank><img src="&rs("sitelogo")&" width=88 height=31 border=0></a>');"
if request("up")="0" then
response.Write "document.write('<br><br>');"
else
response.Write "document.write('  ');"
linkcount=linkcount+1
if linkcount mod request("col")=0 then response.Write "document.write('<br><br>');"
end if
rs.movenext
loop
rs.close
set rs=nothing
if request("scroll")="1" then Response.Write "document.write('</MARQUEE>');"
response.Write "document.write('</div>');"
%>

28,406

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧