当前位置: 代码迷 >> ASP.NET >> FLASH切换广告源码
  详细解决方案

FLASH切换广告源码

热度:3532   发布时间:2013-02-25 00:00:00.0
求一个FLASH切换广告源码
求一个FLASH切换广告源码,最好数据源是XML的

给别人做了个网站,就剩一个切换FLASH广告要求换成这样的
参考网站http://www.sz4a.cn

帮忙找找

谢谢了
谁有的话发我邮箱,
joke.he@qq.com (注上ID,我好给分)

求版主不要删我贴,我急用,我看其它版块里人都太少,请网开一面,谢谢了。。。。

------解决方案--------------------------------------------------------
资料参考: http://www.56goo.com 上面有几种广告切换的
------解决方案--------------------------------------------------------
<style>
#Slide
{
clear: both;
border-right: #fff 1px solid;
border-top: #fff 1px solid;
margin-bottom: 6px;
overflow: hidden;
border-left: #fff 1px solid;
border-bottom: #fff 1px solid;
display: none;
}
#Slide A
{
color: #000;
}
.img
{
border-right: #fff 1px solid;
background: #fff;
margin: 0px auto;
border-left: #fff 1px solid;
text-align: center;
}
.boxpadding
{
border-right: #fff 1px solid;
border-top: #fff 1px solid;
background: #f8f8f8;
margin-bottom: 8px;
border-left: #fff 1px solid;
padding-top: 10px;
border-bottom: #fff 1px solid;
}
.thumb_title
{
margin-top: 10px;
filter: alpha(opacity=100);
text-indent: 10px;
line-height: 25px;
position: relative;
height: 25px;
color: White;
font-weight: bold;
-moz-opacity: 0.3;
}
#Slide_Thumb
{
margin-top: 160px;
margin-left: 0px;
position: absolute;
}
.thumb_on
{
display: inline;
float: left;
margin-left: 8px;
cursor: pointer;
}
.thumb_off
{
display: inline;
float: left;
margin-left: 8px;
cursor: pointer;
}
.thumb_off
{
filter: alpha(opacity=50);
-moz-opacity: 0.5;
}
.thumb_on
{
filter: alpha(opacity=100);
-moz-opacity: 1;
}
.thumb_off IMG
{
border-right: #fff 1px solid;
border-top: #fff 1px solid;
margin-top: 12px;
border-left: #fff 1px solid;
width: 75px;
border-bottom: #fff 1px solid;
height: 56px;
}
.thumb_on IMG
{
border-right: #fff 1px solid;
border-top: #fff 1px solid;
border-left: #fff 1px solid;
width: 91px;
border-bottom: #fff 1px solid;
height: 68px;
}
</style>

<script src="JavaScript/jquery-1.3.2.min.js" type="text/javascript"></script>

<script type="text/javascript">

var id = new Array();
var title = new Array();
var img = new Array();
var flash;

// $(document).ready(function() {
// getflash();
// });
window.onload = function() { getflash(); }


function getflash() {

id = new Array()
title = new Array();
img = new Array();

var xmlDoc = new ActiveXObject("MSXML2.DOMDocument.3.0");
xmlDoc.async = false;
xmlDoc.load("Banner.xml");
var rootNode = xmlDoc.documentElement;
var child = rootNode.childNodes;
for (var i = 0; i < child.length; i++) {
id.push(child[i].getAttribute("Id"));
title.push(child[i].getAttribute("Title"));
img.push("/" + child[i].getAttribute("ImgUrl"));
}


$("#Slide").prepend("<img id='focpic' style='filter: RevealTrans(duration=1; ransition=12); visibility: visible;position: absolute' src='' width='793' height='270' />");
  相关解决方案