www.gusucode.com > 渝海网站反向链接数量查询工具 1.2源码程序 > code/js/link.js

    /*
 * editor by yuhairuanjian;
 * http://www.haiphp.com/
 */
var $jq = jQuery.noConflict();

$jq(document).ready(function(){
	$jq("#selectall").click(function() {
	    if(this.checked){
	        $jq("input[id='checkbox']").each(function(){this.checked=true;});
	    }else{
	        $jq("input[id='checkbox']").each(function(){this.checked=false;});
	    }
    });
	$jq("form#shoulu").submit(function(){
		if($jq(".input_1").val()==""){alert("Error: Domain name information can't for empty!");return false;}
		$jq('#leftcontent_1').empty();
		var aa="";
        $jq("input[id='checkbox']").each(function(){
            if(this.checked){
            	aa+=$jq(this).val()+" ";
            }
		});
        //alert(aa);
		$jq('#leftcontent_1').append("<br><br><center><img src='./images/ajax-loader.gif'><br><br>正在获取数据,请稍后</center>");
		$jq.post("link.php",{message:$jq(".input_1").val(),address:aa},function(Date){
			$jq('#leftcontent_1').empty();
			$jq('#leftcontent_1').html(Date);
			//alert(Date);
		});
		return false; 
		//$jq(this).bind("submit", function(){ return false; });
	});
	$jq('.urls').click(function(){
		var b = $jq(this).text();
		$jq(".input_1").val(b);
		return false;
	});
});