/
var loginUrl = "http://www.xsteach.com/login?goto=http://app.xsteach.com/"; $(function () { var timer0 = null; var timer1 = null; var searUrl = "http://bbs.xsteach.com/default/search"; $('#header .site-search .icon-search').click(function(){ var searKey = $('#header .site-search .search-input input').val(); if($.trim(searKey) == '') { alert('请输入帖子内容!'); return false; } window.location = searUrl+"?searKey="+encodeURIComponent(searKey); }); $('#header .site-search .search-input input').keypress(function(evt){ if(evt.keyCode == 13) { $('#header .site-search .icon-search').click(); return false; } }); $(document).on('mouseover', ".sq-showpan", function (event) { var nth = $(this).index('.sq-showpan'); if (nth == 0) { if (timer0) { clearTimeout(timer0); } } else { if (timer1) { clearTimeout(timer1); } } $(this).find('.sq-dispan').show(); }); $(document).on('mouseout', '.sq-showpan', function (event) { var nth = $(this).index('.sq-showpan'); var dispan = $(this).find('.sq-dispan'); if (nth == 0) { timer0 = setTimeout(function () { dispan.stop().hide(); }, 200); } else { timer1 = setTimeout(function () { dispan.stop().hide(); }, 100); } }); });
客户端下载

社交网络营销学院

随时随地畅想移动学习乐趣

微信
$('.download-btn').click(function(){ var url = '/default/increate-down-count'; ajaxed=$.ajax({ url:url, data:{}, dataType:'json', type:'get', async:false, success:function(res){ if(res) { return true; } } }); });
$(function () { var timer_wx = null; $('.weixin').hover(function () { if (timer_wx) { clearTimeout(timer_wx); } $('.weixin span').show(); }, function () { timer_wx = setTimeout(function () { $('.weixin span').stop().hide(); }, 200); }); adjustfooter(); setTimeout(function(){adjustfooter();},500); $(window).resize(function(){ adjustfooter(); }); }); function adjustfooter() { var bdHt = $('body').height(); var winHt = $(window).height(); if($('#footer.adjust').length > 0) { bdHt = bdHt + $('#footer').height() + 20; console.dir('addd'); } if(bdHt > winHt) { $('#footer.adjust').removeClass('adjust'); } else { $('#footer').addClass('adjust'); } }
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://"); document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F666eed3d1138aba8c53e5d28cf45cdff' type='text/javascript'%3E%3C/script%3E")); var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://"); document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Ff36a1ee07801030039e602686da09b24' type='text/javascript'%3E%3C/script%3E"));
for (var i = 1; i <= 3; i++) { $("#mu_li" + i).mouseover(function (i) { $("#mu_li_ul" + j).slideDown(); }); $("#mu_li" + i).mouseout(function () { $("#mu_li_ul" + i).hide(); }); }