Banner广告图片 (兼容IE6-IE10 火狐 谷歌等浏览器的)

--一个兼容IE6-IE10 火狐 谷歌等浏览器的 Banner广告图片

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FIndex.aspx.cs" Inherits="Game.Web.Foyer.FIndex" %>
<!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">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" href="../CSS/gloabl.css" rel="stylesheet" />
<link type="text/css" href="../CSS/main.css" rel="stylesheet" />
<script type="text/javascript" src="/js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="/js/jquery.cxslide.min.js"></script>
<script type="text/javascript" src="../js/slider1.js"></script>
</head>
<body onselectstart="return false">
<form id="form1" runat="server" >
<div class="wrapper">
<div class="banner" >
<div id="slide_x" class="slide_x">
<div class="box">
<ul class="list">
<%
WebFragmentList = BindWeBFragnenet(1,3);
if (WebFragmentList != null)
{
foreach (var item in WebFragmentList)
{
if (item.ID == 1)
{%>
<li><a href="" target="_blank"><img width="508" src="http://www.lovexyyx.com<%= item.ImgUrl %>"></a></li>
<% }
else
{ %>
<li><a href="" target="_blank"><img width="508" src="http://www.lovexyyx.com<%= item.ImgUrl %>"></a></li>
<% }

} } %>
</ul>
</div>
<ul class="btn">
<li class="b_1">1</li>
<li class="b_2">2</li>
<li class="b_3 selected">3</li>
</ul>
<div class="plus"></div><div class="minus"></div></div>
</div>
<div class="activity">
<div class="acttit">活动专题介绍</div>
<div class="actlist">
<div class="btnleft"><img src="/image/btnleft.jpg"></div>
<div class="ibox1">
<div class="aclist">
<ul>
<%
WebFragmentList = BindWeBFragnenet(2,6);
if (WebFragmentList != null)
{
foreach (var item in WebFragmentList)
{
if (item.ID == 4)
{ %>
<li>
<span><a title="<%=item.Title %>" target="_blank" href="<%=item.ExtendUrl %>"><img src="http://www.lovexyyx.com<%= item.ImgUrl %>" width="124px" height="73px"></a></span>
<samp><a href="" class="grey"><%=item.Title%></a></samp>
</li>

<% }
else
{ %>
<li>
<span><a title="<%=item.Title %>" target="_blank" href="<%=item.ExtendUrl %>"><img src="http://www.lovexyyx.com<%= item.ImgUrl %>" width="124px" height="73px"></a></span>
<samp><a href="" class="grey"><%=item.Title%></a></samp>
</li>
<% }
} } %>

<%
WebFragmentList = BindWeBFragnenet(2,6);
if (WebFragmentList != null)
{
foreach (var item in WebFragmentList)
{
if (item.ID == 4)
{ %>
<li>
<span><a title="<%=item.Title %>" href="<%=item.ExtendUrl %>" target="_blank"><img src="http://www.lovexyyx.com<%= item.ImgUrl %>" width="124px" height="73px"></a></span>
<samp><a href="" class="grey"><%=item.Title%></a></samp>
</li>

<% }
else
{ %>
<li>
<span><a title="<%=item.Title %>" target="_blank" href="<%=item.ExtendUrl %>"><img src="http://www.lovexyyx.com<%= item.ImgUrl %>" width="124px" height="73px"></a></span>
<samp><a href="" class="grey"><%=item.Title%></a></samp>
</li>
<% }
} } %>

</ul>
</div>
</div>
<div class="btnright"><img src="/image/btnright.jpg"></div>
</div>
</div>
<div class="match">
<div class="matchtit">比赛专题介绍</div>
<div class="matchlist">
<div class="mbtnleft"><img src="/image/btnleft.jpg"></div>
<div class="ibox">
<div class="mlist">
<ul>
<% WebFragmentList = BindWeBFragnenet(3, 6);
if (WebFragmentList != null)
{
foreach (var item in WebFragmentList)
{
%>
<li>
<span><a title="<%=item.Title %>" href="<%=item.ExtendUrl %>" target="_blank" ><img src="http://www.lovexyyx.com<%=item.ImgUrl %>" width="124px" height="73px"></a></span>
<samp><a href="" class="grey"><%=item.Title%></a></samp>
</li>
<%}
} %>
<% WebFragmentList = BindWeBFragnenet(3, 6);
if (WebFragmentList != null)
{
foreach (var item in WebFragmentList)
{
%>
<li>
<span><a title="<%=item.Title %>" href="<%=item.ExtendUrl %>" target="_blank" ><img src="http://www.lovexyyx.com<%=item.ImgUrl %>" width="124px" height="73px"></a></span>
<samp><a href="" class="grey"><%=item.Title%></a></samp>
</li>
<%}
} %>


</ul>
</div>
</div>
<div class="mbtnright"><img src="/image/btnright.jpg"></div>
</div>
</div>
</div>
<script type="text/javascript">
$("#slide_x").cxSlide({ plus: true, minus: true });
</script>
</form>
</body>
</html>


FIndex.cs 代码


public partial class FIndex : UCPageBase
{

public string webadd = Game.Utils.ApplicationSettings.Get("qiantWeb");
private PlatformFacade platfomrFacade = new PlatformFacade();
public IList<WebFragmentInfo> WebFragmentList = null;
private NativeWebFacade webFacade = new NativeWebFacade();
public IList<GameKindItem> GameList = null;
protected void Page_Load(object sender, EventArgs e)
{

}

public IList<GameKindItem> GetGameKindItem(int typeId, int top)
{

IList<GameKindItem> GetHotGameList = platfomrFacade.GetGameKindsByTypeID(typeId, top);
return GetHotGameList;
}

#region 获取Bannder相关信息
public IList<WebFragmentInfo> BindWeBFragnenet(int typeId, int top)
{

IList<WebFragmentInfo> GetFragmentInfoList = webFacade.GetWebFragmentInfo(typeId, top);
return GetFragmentInfoList;
}
#endregion
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值