- 爱易网页
-
JavaSript
- meizz jsframework: 轮换广告图的DEMO解决办法
日期:2014-05-16 浏览次数:20476 次
meizz jsframework: 轮换广告图的DEMO
注:这只是这个轮换效果的DEMO,正式运行的代码是 http://www.csdn.net/ui/adrotate.htm
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN " "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns= "http://www.w3.org/1999/xhtml ">
<head>
<meta name= "author " content= "meizz " />
<meta http-equiv= "Content-Type " content= "text/html; charset=utf-8 " />
<script type= "text/javascript " src= "http://www.csdn.net/ui/scripts/jsframework.js "> </script>
<script type= "text/javascript " src= "http://www.csdn.net/ui/scripts/System/Global.js "> </script>
<script type= "text/javascript " src= "http://www.csdn.net/ui/scripts/System/Data/MzDataProvider.js "> </script>
<script type= "text/javascript " src= "http://www.csdn.net/ui/scripts/System/Web/Forms/MzEffect.js "> </script>
<script type= "text/javascript " src= "http://www.csdn.net/ui/scripts/System/Web/Forms/MzBehavior.js "> </script>
<script type= "text/javascript " src= "http://www.csdn.net/ui/scripts/System/Web/UI/WebControls/MzRotateImage.js "> </script>
<title> CSDN 轮换广告 </title>
</head>
<body style= "margin: 3px ">
<script type= "text/javascript "> /* <![CDATA[*/
//Using( "System.Web.UI.WebControls.MzRotateImage ");
var data = {}
data[ "-1_1 "] = "img: http://zi.csdn.net/no1.280-187.gif; url: http://z.csdn.net/adclick.php?bannerid=395; target: _blank; alt: ; ";
data[ "-1_2 "] = "img: http://zi.csdn.net/no2-280_187.gif; url: http://z.csdn.net/adclick.php?bannerid=459; target: _blank; alt: ; ";
data[ "-1_3 "] = "img: http://zi.csdn.net/no3.gif; url: http://z.csdn.net/adclick.php?bannerid=401; target: _blank; alt: ; ";
data[ "-1_4 "] = "img: http://zi.csdn.net/no4.jpg; url: http://z.csdn.net/adclick.php?bannerid=410; target: _blank; alt: ; ";
data[ "-1_5 "] = "img: http://zi.csdn.net/no5.jpg; url: http://z.csdn.net/adclick.php?bannerid=369; target: _blank; alt: ; ";
data[ "-1_6 "] = "img: http://zi.csdn.net/no.6.280.187.gif; url: http://z.csdn.net/adclick.php?bannerid=372; target: _blank; alt: ; ";
var ri = new MzRotateImage();
ri.dataSource = data;
ri.width = 280;
ri.height = 187;
ri.interval = 3000;
ri.duration = 2000;
document.write(ri.render());
/*]]> */ </script>