File: /www/wwwroot//www.zgesad.info/js/main.js
TouchSlide({
slideCell:"#picScroll",
titCell:".hd ul", //开启自动分页 autoPage:true ,此时设置 titCell 为导航元素包裹层
autoPage:true, //自动分页
pnLoop:"false", // 前后按钮不循环
switchLoad:"_src", //切换加载,真实图片路径为"_src"
effect:"leftLoop"
});
$(function(){
$(".m-menu .tit").click(function(){
$(".m-menu .tit span").toggleClass("mm").siblings(".m-menu .tit span").removeClass("mm")
// 修改数字控制速度, slideUp(500)控制卷起速度
$(".m-con").animate({
height:'toggle'
});
})
})
$(function(){
$(".subNav").click(function(){
$(this).toggleClass("currentDd").siblings(".subNav").removeClass("currentDd")
$(this).toggleClass("currentDt").siblings(".subNav").removeClass("currentDt")
// 修改数字控制速度, slideUp(500)控制卷起速度
$(this).next(".navContent").slideToggle(500).siblings(".navContent").slideUp(500);
})
})
$(".sea").click(function () {
$(".sea-con").animate({
height:'toggle'
});
});
$(".menu").click(function () {
$(".menu-con").animate({
height:'toggle'
});
});
$("#top").click(function(){$("body,html").animate({scrollTop:0},1000)});
$(function(){
$('.messageBtn').click(function(E){
E.preventDefault();
$(this).parents('form').submit();
});
$('.messageReplyBtn').click(function(E){
E.preventDefault();
$(this).parents('form.messageReplyFrom').submit();
});
$(".searchBtn").click(function(E){
E.preventDefault();
$(this).parents('form').submit();
});
});
$('.aqdiantl').click(function(){
$(this).next('.aqdianb').slideToggle();
$(this).toggleClass('aqdiantlh');
});
// 計算點擊次數
function update_click_num(url_return, id){
$.ajax({
'type' : 'post',
'url' : '/contact/update_click_num',
'data' : {
'id' : id,
},
'dataType' : 'json',
'success' : function () {
document.location.href=url_return;
},'eroor' : function () {
document.location.href=url_return;
}
});
}