﻿// JScript 文件

	//显示前八条新闻
function getNewsTop()
{
       $.ajax({
            type:"post",
            url:"getNewTop.ashx",
          dataType:"json",
            success:function(data)
            {  
             var showstring="";
            
               showstring+="<div class='newmore'><a href='showAllNews.aspx'>更多&nbsp;&gt;&gt;</a></div>";
                
                for(var i=0;i<data.length;i++)
               {
                   
                   
                 showstring+=" <p><a href='shownews.aspx?newid="+data[i].NewInfo_ID+"'>"+data[i].NewInfo_Title+"</a></p>";
                 
                }
              
         
            
              document.getElementById("content2").innerHTML=showstring;
              
               
                
         
            }
   
          });
}




//显示公告信息
function showAffiche()
{
     $.ajax({
            type:"post",
            url:"Handler/ShowAfficheInfo.ashx",
            dataType:"json",
            success:function(data)
            {  
            var str1=" ";
            str1+="<marquee  scrolldelay='250'  onMouseOver='this.stop()' direction='up' onMouseOut='this.start()' align='top' VSPACE='4'>";
            str1+="<p>";
                for(var i=0;i<data.length;i++)
               {          
                   str1+="<span class='text1'>"+data[i].AfficheTitle+"：</span>"+data[i].AfficheContext+"<br />";  
                   
               } 
               str1+="</p>";
            str1+="</marquee>";
           
               document.getElementById("content1").innerHTML=str1;
            }
   
          });
}





