do ajax loading at bottom of the screen.

scroll down scroll down scroll down scroll down scroll down scroll down scroll down scroll down scroll down scroll down scroll down scroll down scroll down scroll down scroll down scroll down scroll down scroll down scroll down scroll down scroll down scroll down scroll down scroll down scroll down scroll down scroll down scroll […]

一段关于Ajax的JS

/*modify @20140218 by simon*/ function show_rand_tab(){ var num = Math.floor(Math.random() * 9 + 1); var tab_index= “marinr_server_cont1_name_” + num; $(“#”+tab_index).addClass(“on”); var get_data_id = $(“#”+tab_index).attr(“dataid”); $.get(“/index.get.data.webservice.php”, { svcid: get_data_id}, function(data){ $(“#”+$(“#”+tab_index).attr(“data”)).html(data); }); $(“#”+$(“#”+tab_index).attr(“data”)).show(); } show_rand_tab(); $(“.marinr_server_con_sl > ul > li”).click(function () { $(“.marinr_server_con_sl > ul > li”).removeClass(“on”); $(this).addClass(“on”); var now_obj = $(this); $(“.marinr_server_cont[data=’marinr_server_cont1′]”).hide(); var has_ajax_data = […]

[转载]jQuery cookie用法

原文地址:cookie用法”>jQuery cookie用法作者:江南梦 $.cookie(‘the_cookie’); // get cookie $.cookie(‘the_cookie’, ‘the_value’); // set cookie $.cookie(‘the_cookie’, ‘the_value’, { expires: 7 }); // set cookie with an expiration date seven days in the future $.cookie(‘the_cookie’, ”, { expires: -1 }); // delete cookie   $.cookie(‘the_cookie’, null); // delete cookie   $.cookie(‘the_cookie‘,‘the_value‘, {expires: 7, path: ‘/‘, domain:‘80tvb.com‘, secure: true});//完整调用方式  //或者这样:$.cookie(‘the_cookie‘,‘the_value‘); //删除Cookie: $.cookie(‘the_cookie‘,null); […]

[转载]使用jquery做搜索引擎效果

原文地址:使用jquery做搜索引擎效果作者:Hope 当用户输入电话号码的时候,会自动出现提示。类似于google搜索引擎效果, 之前用javascript写过一个,但是目前使用jquery更为简单。   代码如下:         var line = 0;         var sendType;         function del(){             if($(“#newDiv”)){                 $(“#newDiv”).remove();                 line = 0;             }         }           $(document).ready(function(){             //文本框失去焦点时层消失             $(document.body).click(function(){                 del();             });                        $(document).keydown(function(){                 // 38 上  40下 13 回车                 if($(“#newDiv”)){                     if(event.keyCode == 40){                         $(“table tbody […]