标题:广告对联添加显示的问题!
只看楼主
pengboy
Rank: 1
等 级:新手上路
帖 子:82
专家分:0
注 册:2005-12-21
 问题点数:0 回复次数:4 
广告对联添加显示的问题!

请教,我正在改一个网站的首页,页面上本来只有一列广告,我想把它作成广告对联的样式,我把代码复制过去之后,从后台填加,前面两列显示的都是一样的广告,请问怎么才能把他们给分开?前台的代码如下<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时有效)

搜索更多相关主题的帖子: 广告 对联 
2006-02-14 16:48
pengboy
Rank: 1
等 级:新手上路
帖 子:82
专家分:0
注 册:2005-12-21
得分:0 

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('&nbsp;&nbsp;');"
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>');"
%>

2006-02-14 16:48
anjincheng
Rank: 2
等 级:论坛游民
威 望:5
帖 子:728
专家分:31
注 册:2005-7-27
得分:0 
[CODE]<%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('&nbsp;&nbsp;');"
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>');"
%>[/CODE]

我是农家的孩子,我有农家孩子的本色!
2006-02-14 16:59
pengboy
Rank: 1
等 级:新手上路
帖 子:82
专家分:0
注 册:2005-12-21
得分:0 

拜托各位.....

[此贴子已经被作者于2006-2-15 14:07:04编辑过]

2006-02-14 17:34
pengboy
Rank: 1
等 级:新手上路
帖 子:82
专家分:0
注 册:2005-12-21
得分:0 
自己顶...................
2006-02-15 14:08



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-45524-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.324623 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved