新浪网7屏翻牌广告代码(按需修改版本),以下是运行代码:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!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 runat="server">
<title>无标题页</title>
<script src="js/xixi.js" type="text/javascript"></script>
</head>
<body>
<div id="flipper_div" align="center"></div>
<script type="text/javascript">
<!--
var fp_data = new Array();
fp_data.push(["images/01.jpg","http://www.lanrentuku.com/"]);
fp_data.push(["images/02.jpg","http://www.lanrentuku.com/"]);
fp_data.push(["images/03.jpg","http://www.lanrentuku.com/"]);
fp_data.push(["images/04.jpg","http://www.lanrentuku.com/"]);
fp_data.push(["images/05.jpg","http://www.lanrentuku.com/"]);
fp_data.push(["images/06.jpg","http://www.lanrentuku.com/"]);
fp_data.push(["images/07.jpg","http://www.lanrentuku.com/"]);
fp_data.push(["images/08.jpg","http://www.lanrentuku.com/"]);
fp_data.push(["images/09.jpg","http://www.lanrentuku.com/"]);
fp_data.push(["images/10.jpg","http://www.lanrentuku.com/"]);
fp_data.push(["images/11.jpg","http://www.lanrentuku.com/"]);
fp_data.push(["images/12.jpg","http://www.lanrentuku.com/"]);
fp_data.push(["images/13.jpg","http://www.lanrentuku.com/"]);
fp_data.push(["images/14.jpg","http://www.lanrentuku.com/"]);
var fp_pics="",fp_links="";
var fp_lens = fp_data.length;
for(var i=0; i<fp_lens; i++){
fp_pics += fp_data[i][0];
fp_links += escape(fp_data[i][1]);
if(i%2==0 && i!=fp_lens-1){
fp_pics += "§";
fp_links += "§";
}else if(i%2==1 && i!=fp_lens-1){
fp_pics += "§_§";
fp_links += "§_§";
}
}
var oswf = new guoRenFlash("flipper_v2.swf", "flipper", 960, 90, "7", "#FFFFFF", false, "High");
oswf.addParam("allowScriptAccess", "always");
oswf.addParam("menu", "false");
oswf.addParam("wmode", "opaque");
oswf.addParam("scale", "noscale");
oswf.addVariable("pic_width", "120");
oswf.addVariable("pic_height", "75");
oswf.addVariable("colnum", "7");
oswf.addVariable("hspace", "15");
oswf.addVariable("vspace", "20");
oswf.addVariable("flip_time", "200");
oswf.addVariable("pause_time", "2000");
oswf.addVariable("pics", fp_pics);
oswf.addVariable("urls", fp_links);
oswf.addVariable("rand", "0");
oswf.write("flipper_div");
//-->
</script>
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>