﻿    $(function(){
     $("#sou").click(function(){
         var word=$.trim($("#keywords").val());
         if(word=="")
         {
              window.location="../zixunlist.html";
         }
         else
         { 
               window.location="../zixunlist.aspx?word="+word;
         }
  });
   $("#content").keypress(function(e){
    if (e.which == 13){
      $("#sou").click();
      return false;
    }
    });
       getzhuanti();getdianji();
       $("#guanggao").load("../yinxiang/html/newsguanggao.htm");
    });
    function getzhuanti(){
       $.ajax({
           url: "../yinxiang/chuli.aspx",
           data:"getlist=gettopic",
           type: "get",
           dataType: "html",
           cache: false,
          beforeSend: function(result){
             $("#topiclist").html("<img src='../Icons/loading_process.gif' />");
          },
          success: function(result) {
             $("#topiclist").html(result);
          },
          error: function(result, status) { 
　　          if (status == 'error') {
　　　　          alert("系统发生错误");
　　          }
           }
        });
    }
   function getdianji(){
       $.ajax({
           url: "../yinxiang/chuli.aspx",
           data:"getlist=gettimeclick",
           type: "get",
           dataType: "html",
           cache: false,
          beforeSend: function(result){
             $("#clicklist").html("<img src='../Icons/loading_process.gif' />");
          },
          success: function(result) {
             $("#clicklist").html(result);
          },
          error: function(result, status) { 
　　          if (status == 'error') {
　　　　          alert("系统发生错误");
　　          }
           }
        });
    }


