案例展示
您的當(dāng)前位置:
首頁
>
標(biāo)簽搜索
";
if(href=="")
{
$(".code").css("display","none");
}
var currentid='';
if(currentid!='7')
{
switch(currentid)
{
case '1':
$('.kf_btn').css('background','url("images/kf/qing.png") left 33px no-repeat');
$('.top_bg').css('background','url("images/kf/qing1.png") left bottom no-repeat');
$('.othercolor').css('background','#40c0ac');
break;
case '2':
$('.kf_btn').css('background','url("images/kf/puper.png") left 33px no-repeat');
$('.top_bg').css('background','url("images/kf/puple1.png") left bottom no-repeat');
$('.othercolor').css('background','#8838cc');
break;
case '3':
$('.kf_btn').css('background','url("images/kf/kefu_yellow.png") left 33px no-repeat');
$('.top_bg').css('background','url("images/kf/yellow1.png") left bottom no-repeat');
$('.othercolor').css('background','#ffc713');
break;
case '4':
$('.kf_btn').css('background','url("images/kf/kefu_left.png") left 33px no-repeat');
$('.top_bg').css('background','url("images/kf/red1.png") left bottom no-repeat');
$('.othercolor').css('background','#e5212d');
break;
case '5':
$('.kf_btn').css('background','url("images/kf/kefu_cheng.png") left 33px no-repeat');
$('.top_bg').css('background','url("images/kf/cheng1.png") left bottom no-repeat');
$('.othercolor').css('background','#e65a22');
break;
case '6':
$('.kf_btn').css('background','url("images/kf/green.png") left 33px no-repeat');
$('.top_bg').css('background','url("images/kf/green1.png") left bottom no-repeat');
$('.othercolor').css('background','#78cf1b');
break;
case '8':
$('.float-kf').css('display','block');
break;
case '9':
$('.float-kf').css('display','none');
$('.kf-switch').css('display','block');
break;
}
}
var _windowScrollTop=0; //滾動(dòng)條距離頂端距離
var _windowWidth=$(window).width(); //窗口寬度
$(window).scroll(actionEvent).resize(actionEvent); //監(jiān)聽滾動(dòng)條事件和窗口縮放事件
//響應(yīng)事件
function actionEvent(){
_windowScrollTop = $(window).scrollTop(); //獲取當(dāng)前滾動(dòng)條高度
// _windowWidth=$(window).width();//獲取當(dāng)前窗口寬度
moveQQonline();//移動(dòng)面板
}
//移動(dòng)面板
function moveQQonline(){
//.stop()首先將上一次的未完事件停止,否則IE下會(huì)出現(xiàn)慢速僵死狀態(tài),然后重新設(shè)置面板的位置。
$(".kf").stop().animate({
top: _windowScrollTop+100
}, "fast");
$('.alignCenter').stop().animate({
top: _windowScrollTop+133
}, "fast");
$(".kf-switch").stop().animate({
top: _windowScrollTop+100
}, "fast");
$(".float-kf").stop().animate({
top: _windowScrollTop+100
}, "fast");
}
$(".kf_btn").toggle(
function()
{
$('.open').addClass('close');
$('.alignCenter').hide();
$(".kf_main").animate({width:'hide',opacity:'hide'},'normal',function(){
$(".kf_main").hide();
var href="";
if(href==""){
$(".code").css("display","none");
}else{
$('.e_code img').animate({width:'hide',opacity:'hide'});
}
});
},
function(){
$('.open').removeClass('close');
$(".kf_main").animate({opacity:'show'},'normal',function(){
$(".kf_main").show();
var href="";
if(href==""){
$(".code").css("display","none");
}else{
$('.e_code img').animate({opacity:'show'});
}
});
}
);
$('#hidden_share').click(function(){
$('.alignCenter').show();
})
$('.alignCenter .title img').click(function(){
$('.alignCenter').hide();
})
-->
本溪|
正蓝旗|
武川县|
于田县|
和龙市|
花垣县|
藁城市|
乐平市|
泸西县|
昌江|
永康市|
邓州市|
大姚县|
汕头市|
德清县|
涿州市|
阿拉善右旗|
天津市|
双辽市|
揭西县|
宣恩县|
盐池县|
榕江县|
甘谷县|
万山特区|
体育|
邛崃市|
义马市|
扎囊县|
慈溪市|
永新县|
镇康县|
大渡口区|
土默特左旗|
遵义市|
盐山县|
桂平市|
长宁区|
无极县|
渭南市|
双城市|