133 lines
4.2 KiB
Plaintext
133 lines
4.2 KiB
Plaintext
<%@ Page Title="" Language="C#" MasterPageFile="~/Telesa.Master" AutoEventWireup="true" CodeBehind="shop.aspx.cs" Inherits="Mtxfw.shop.shop" %>
|
|
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="MyHead" runat="server">
|
|
<link href="/css/shop.css" rel="stylesheet" type="text/css" />
|
|
<style type="text/css">
|
|
.nav-category-list li#category10,.nav-category-list li#category11,.nav-category-list li#category12,.nav-category-list li#category13{ display:none;}
|
|
</style>
|
|
<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();
|
|
});*/
|
|
$(".zjbb-box ul li").myFocus({
|
|
type: "top"
|
|
});
|
|
$("#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">
|
|
<!--focus内容-->
|
|
</div>
|
|
<div class="ps-nav ps-tnav">
|
|
<!--focus标题-->
|
|
</div><!--首页 首页幻灯片-->
|
|
</div>
|
|
</div>
|
|
<div class="newsbox">
|
|
<h3><a href="/news.aspx?t=0" class="hover" id="newsmenu0" onmouseover="onnewsmenu(0)">商城公告</a><!--a href="/news.aspx?t=1" id="newsmenu1" onmouseover="onnewsmenu(1)">行业新闻</a--><a href="/news.aspx?t=0" class="more">更多>></a></h3>
|
|
<ul id="newsbox0"><!--商城公告-->
|
|
</ul>
|
|
<ul id="newsbox1" style=" display:none;"><!--行业新闻-->
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="clearfix"></div>
|
|
|
|
<div class="clearfix"></div>
|
|
<div class="contentWrapper">
|
|
<div class="home-star-goods">
|
|
<div class="xm-plain-box J_starGoodsCarousel">
|
|
<div class="box-hd">
|
|
<h3 class="title">限时抢购</h3>
|
|
<div class="more">
|
|
<div class="xm-recommend-page clearfix">
|
|
<a class="page-btn-prev page-btn-prev-disabled iconfont J_carouselPrev" onmouseout="autoPlay()" href="javascript:btnPrev();"></a><a class="page-btn-next iconfont J_carouselNext" href="javascript:btnNext();" onmouseout="autoPlay()"></a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="clearfix"></div>
|
|
<div class="box-bd">
|
|
<div class="xm-star-goods-list-wrap J_carouselWrap">
|
|
<div class="xm-star-goods-list clearfix J_carouselList">
|
|
<!--限时抢购内容-->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="home-rexiao-goods">
|
|
<!--图片-->
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!--分类商品内容-->
|
|
</div>
|
|
</asp:Content>
|