动态广告 就像新浪那样的

yymzzl 2008-01-26 07:01:07
谁能告诉我动态广告怎么弄啊 就像SINA那样 一个小框 然后几张图片来回的走,而且下面有页数 图片的如1 2 3 4 鼠标点数字就停留在那张图片上!

这样的东西怎么做? 有现成的吗?而且要能自己添加图片 和 图片数量的! 谢谢了! 如果能提供本人高分相送!
...全文
84 点赞 收藏 7
写回复
7 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
fengsuiyingdong 2008-01-29
加我,我给你传一个!QQ: 77227265 MSN: zpl.2008@163.com
回复
lj_0225 2008-01-29
http://myjs.chinaz.com/list.asp?Class=38&page=1
n多中例子下载
回复
xiaojing7 2008-01-29
我也有。加我q:281220042 给你传!
回复
草原可可 2008-01-27
<script language = "JavaScript" type="text/javascript">
<!--
var focus_width=170;
var focus_height=180;
var text_height=0;
var swf_height = focus_height+text_height;

var pics='pic/4.jpg|pic/5.JPG|pic/1.jpg|pic/2.jpg|pic/3.jpg'; //链接图片
var links='#|#|#|#|#';//链接网址
var texts=' 冰点科技||||';//链接文本说明

document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="pic/autoflash.swf"><param name=wmode value=transparent><param name="quality" value="high">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
document.write('<embed src="pic/autoflash.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#ffffff" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
//-->
</script>
回复
twoeo 2008-01-26
楼上的正解
回复
汗!怎么都是问这问题哦?
给你个地址:
<%
sub show_photo(num)
w=271
h=170
n=34

set rs = server.CreateObject ("adodb.recordset")
sql="select top "&num&" * from news where photo<>'' and flag=1 order by isshow desc, istop desc, id desc"
rs.open sql,conn3,1,1
if rs.recordcount=0 then
Response.Write "<BR><center>没有图片新闻!</center>"
else

for i=1 to rs.recordcount

pic1=rs("photo")
title1=rs("title")
id=rs("id")
rs.movenext
if rs.eof then exit for
pic2=rs("photo")
title2=rs("title")
id2=rs("id")
rs.movenext
if rs.eof then exit for
pic3=rs("photo")
title3=rs("title")
id3=rs("id")
rs.movenext
if rs.eof then exit for
pic4=rs("photo")
title4=rs("title")
id4=rs("id")
rs.movenext
if rs.eof then exit for
pic5=rs("photo")
title5=rs("title")
id5=rs("id")
rs.movenext
if rs.eof then exit for
pic6=rs("photo")
title6=rs("title")
id6=rs("id")
rs.movenext
if rs.eof then exit for
pic7=rs("photo")
title7=rs("title")
id7=rs("id")
rs.movenext
if rs.eof then exit for
pic8=rs("photo")
title8=rs("title")
id8=rs("id")
rs.movenext
if rs.eof then exit for
next
rs.close
set rs=nothing
%>
<style type="text/css">
<!--
.STYLE1 {color: #FF0000}
.STYLE3 {
color: #3366FF;
font-size: -1;
}
.STYLE5 {
font-size: -1;
color: #FF9933;
font-weight: bold;
}
-->
</style>
<a target=_blank href="javascript:goUrl()">
<span class="f14b">
<script type="text/javascript">
imgUrl1="<%=pic1%>";
imgtext1="<%=title1%>";
imgLink1=escape("show.asp?newsid=<%=id%>&action=news");
imgUrl2="<%=pic2%>";
imgtext2="<%=title2%>";
imgLink2=escape("show.asp?newsid=<%=id2%>&action=news");
imgUrl3="<%=pic3%>";
imgtext3="<%=title3%>";
imgLink3=escape("show.asp?newsid=<%=id3%>&action=news");
imgUrl4="<%=pic4%>";
imgtext4="<%=title4%>";
imgLink4=escape("show.asp?newsid=<%=id4%>&action=news");
imgUrl5="<%=pic5%>";
imgtext5="<%=title5%>";
imgLink5=escape("show.asp?newsid=<%=id5%>&action=news");
imgUrl6="<%=pic6%>";
imgtext6="<%=title6%>";
imgLink6=escape("show.asp?newsid=<%=id6%>&action=news");
imgUrl7="<%=pic7%>";
imgtext7="<%=title7%>";
imgLink7=escape("show.asp?newsid=<%=id7%>&action=news");
imgUrl8="<%=pic8%>";
imgtext8="<%=title8%>";
imgLink8=escape("show.asp?newsid=<%=id8%>&action=news");

var focus_width=<%=w%>
var focus_height=<%=h%>
var text_height=0
var swf_height = focus_height+text_height

var pics=imgUrl1+"|"+imgUrl2+"|"+imgUrl3+"|"+imgUrl4+"|"+imgUrl5+"|"+imgUrl6
var links=imgLink1+"|"+imgLink2+"|"+imgLink3+"|"+imgLink4+"|"+imgLink5+"|"+imgLink6
var texts=imgtext1+"|"+imgtext2+"|"+imgtext3+"|"+imgtext4+"|"+imgtext5+"|"+imgtext6

document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="playswf.swf"><param name=wmode value=transparent><param name="quality" value="high">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
document.write('<embed src="playswf.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#DADADA" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'); document.write('</object>');
//-->
</script>
</span></a><span id=focustext class=f14b> </span>

<%
end if
rs.close:set rs=nothing
end sub%>
里面所用倒的playswf.swf请去下一个
或者用迅雷直接下:http://www.cctv258.com/playswf.swf
回复
yalan 2008-01-26
有现成的
那个东西很简单的,有js的有flash的
下面是下载地址:
http://www.54code.com.cn/CodeView/View-2106.html
回复
相关推荐
发帖
ASP
创建于2007-09-28

2.8w+

社区成员

ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
申请成为版主
帖子事件
创建了帖子
2008-01-26 07:01
社区公告
暂无公告