Initial commit,修正
This commit is contained in:
Executable
+94
@@ -0,0 +1,94 @@
|
||||
// 交互效果
|
||||
|
||||
/*更新进度左右切换*/
|
||||
$(".li_left").click(function(){
|
||||
$(".update_dl").stop().animate({left:-440},500,function(){
|
||||
$(".update_dl").css({left:-220})
|
||||
$(".update_dl dd:first").insertAfter(".update_dl dd:last");
|
||||
});
|
||||
});
|
||||
$(".li_right").click(function(){
|
||||
$(".update_dl").stop().animate({left:440},500,function(){
|
||||
$(".update_dl").css({left:220})
|
||||
$(".update_dl dd:last").insertBefore(".update_dl dd:first");
|
||||
});
|
||||
});
|
||||
|
||||
/*核心产品菜单切换*/
|
||||
$(document).ready(function() {
|
||||
$(".float_qr").hide();
|
||||
$(".float").hide();
|
||||
$(".controls_a").mouseenter(function(){
|
||||
$(".float_qr").show(500);
|
||||
});
|
||||
|
||||
$(".controls_a").mouseleave(function(){
|
||||
$(".float_qr").hide(500);
|
||||
});
|
||||
|
||||
$(".float_box,.float_qr").hide();
|
||||
$(".float").show();
|
||||
$(".float_box span").click(function(){
|
||||
$(".float").show(500);
|
||||
$(".float_box").hide(500);
|
||||
$(".float_box span").css({"display":"none"});
|
||||
$(".float_x").css({"display":"block"});
|
||||
});
|
||||
|
||||
$(".float_x").click(function(){
|
||||
$(".float").hide(500);
|
||||
$(".float_box").show(500);
|
||||
$(".float_box span").css({"display":"block"});
|
||||
$(".float_x").css({"display":"none"});
|
||||
});
|
||||
|
||||
$(".float_box").click(function(){
|
||||
$(".float").show(500);
|
||||
$(".float_box").hide(500);
|
||||
$(".float_box span").css({"display":"none"});
|
||||
$(".float_x").css({"display":"block"});
|
||||
});
|
||||
});
|
||||
$(".core_con").hide();
|
||||
$(".core_con:first").show();
|
||||
$(".corecpin .ul_switch li").click(function(){
|
||||
var n=$(".corecpin .ul_switch li").index(this);
|
||||
$(".corecpin .ul_switch li").removeClass("curli");
|
||||
$(this).addClass("curli");
|
||||
$(".core_con").hide();
|
||||
$(".core_con:eq("+n+")").show();
|
||||
});
|
||||
|
||||
/*功能介绍菜单切换*/
|
||||
$(".function_div").hide();
|
||||
$(".function_div:first").show();
|
||||
$(".function_top dd a").click(function(){
|
||||
var n=$(".function_top dd a").index(this);
|
||||
$(".function_top dd a").removeClass("dda");
|
||||
$(this).addClass("dda");
|
||||
$(".function_div").hide();
|
||||
$(".function_div:eq("+n+")").show();
|
||||
});
|
||||
|
||||
$(".newsbox").hide();
|
||||
$(".newsbox:first").show();
|
||||
$(".news_con .ul_switch li").click(function(){
|
||||
var n=$(".news_con .ul_switch li").index(this);
|
||||
$(".news_con .ul_switch li").removeClass("curli");
|
||||
$(this).addClass("curli");
|
||||
$(".newsbox").hide();
|
||||
$(".newsbox:eq("+n+")").show();
|
||||
});
|
||||
|
||||
//右侧在线咨询插件
|
||||
$(document).ready(function(){
|
||||
|
||||
|
||||
});
|
||||
|
||||
//$(function(){
|
||||
$(".float_controls #top").click(function(){
|
||||
$('html,body').animate({'scrollTop':0},500); //返回顶部动画 数值越小时间越短
|
||||
});
|
||||
//});
|
||||
|
||||
Reference in New Issue
Block a user