HKGalden站務臺
發表文章發起投票
[拋西瓜落海] nimda/void, 十秒內就改得返好個 search, 唔該你快手搞掂佢
XX壼頁面...

$(document).ready(function(){
    
    if(!$('.adContainer').height()){

 curpg = 1;
 $(window).keydown(function(e){
  if(e.target.tagName.toLowerCase() !== 'input' && e.target.tagName.toLowerCase() !== 'textarea' && e.keyCode == 37 || e.target.tagName.toLowerCase() !== 'input' && e.target.tagName.toLowerCase() !== 'textarea' && e.keyCode == 39){
   if(e.keyCode == 37 && curpg-1 > 0){
    location.href = '/topics/to/'+(curpg-1);
   }
   if(e.keyCode == 39 && curpg+1 <= 15){
    location.href = '/topics/to/'+(curpg+1);
   }
   return false;
  }
 });
    $(document).on('click','#xpndruls',function(){
  $('#rules').slideToggle(300);
  $(this).toggleClass('expanded');
 }); 
 $(document).on('click','#ftr .ftgl',function(){
  if(!$(this).hasClass('active')){
   var idt =  $(this).attr('class').match(/.*([A-Z]2).*/)[1];
   var selected = $(this);
   $.ajax({
    type:'GET',
    url:'/ajax/filterFrm/'+idt,
    dataType:'json',
    success:function(data){
     if(data.status === 1){
      $('#tpli>tbody').empty().html(data.newtps);
      $('#tpglnks').empty().html(data.newpagin);
      $('head style#initsvc').empty().html(data.newcss);
      $('#ftr').find('.ftgl.active').removeClass('active');
      selected.addClass('active');
     }
    },
   });
  }
 });
 
 $('#SearchBox').submit(function(e){
  e.preventDefault();
  var st = document.SearchBox.SearchOptoin.value;
  var sq = document.SearchBox.SearchQuery.value;
  if(sq.length > 0 ){
   location.href = '/search/' + st + '/' + sq;
  }else{
   notify('請輸入關鍵字');
  }
 });
});

function loadBlkTopic(id){
 $.ajax({
  type:'GET',
  url:'/ajax/loadToprow/'+id,
  dataType:'json',
  success:function(r){
   $("#"+id).html(r.data);
   $("#"+id).removeClass('blked');
  }
 });
}    
    

delete 漏左 if(!$('.adContainer').height()){ 整死左個 search 同 temporary unblock 呀老友 (其實左右 hotkey 都死左)
Good7Bad0
2014/05/28, 3:01:55 下午
本貼文共有 0 個回覆
此貼文已鎖,將不接受回覆
發表文章發起投票