Files

100 lines
3.5 KiB
Plaintext
Raw Permalink Normal View History

<%@ Page Title="" Language="C#" MasterPageFile="/shop/Telesa.Master" AutoEventWireup="true" CodeBehind="shop.aspx.cs" Inherits="Mtxfw.shop.shop_index" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MyHead" runat="server">
<script src="/scripts/uaredirect.js" type="text/JavaScript"></script>
<script type="text/javascript"> uaredirect("/mobile/");</script>
<link href="/shop/css/shop.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
isCategory = 1;
//图片轮换
(function () {
$.fn.picshow = function (o) {
var o = $.extend({
pause: 4000,
fspd: 500,
auto: true
}, o || {});
return this.each(function () {
var $cont = $(".ps-cont > a", this), $title = $(".ps-title > h3", this), $nav = $(".ps-nav > a", this), $pre = $(".ps-nav > .pre", this), $next = $(".ps-nav > .next", this),
len = $cont.length;
var interval = null, index = 0, isOver = true;
if (o.auto) { $cont.hover(function () { clearInterval(interval); }, auto); }
if (o.auto) {
$nav.each(function (i) {
$(this).hover(function () {
clearInterval(interval);
roll(i);
}, auto);
});
} else {
$nav.each(function (i) {
$(this).hover(function () { roll(i); });
});
}
function auto() {
clearInterval(interval);
interval = setInterval(function () { roll(index == (len - 1) ? 0 : index + 1); }, o.pause);
}
function roll(i) {
if (isOver) {
isOver = false;
$cont.hide();
$cont.eq(i).fadeIn(o.fspd, function () { isOver = true; });
$nav.removeClass("hover");
$nav.eq(i).addClass("hover");
$title.hide();
$title.eq(i).show();
index = i;
}
}
//init
$cont.eq(index).show();
$nav.eq(index).addClass("hover");
if (o.auto) { auto(); }
});
}
})(jQuery);
$(function () {
/*picfocus();
$(window).resize(function () {
picfocus();
});*/
$("#picShow").picshow();
});
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MyContent" runat="server">
<div class="indexbanner">
<div class="contentWrapper">
<div id="containerbox">
<div class="picShow" id="picShow">
<div class="ps-cont">
<%=strAds%>
</div>
<div class="ps-nav ps-tnav">
<%=strAdsa%>
</div>
</div>
</div>
<div class="newsbox">
<h3><a href="#" class="hover" id="newsmenu0" onmouseover="onnewsmenu(0)">商城公告</a></h3>
<ul id="newsbox0"><%=strnews%>
</ul>
</div>
</div>
</div>
<div class="clearfix"></div>
<div class="contentWrapper">
<%=strproducts%>
</div>
</asp:Content>