﻿
     $(function() {
     var NewsGY = $('#NewsGY');
     var d = new Date();
     $.get(
        '/XMl/XML_Detailright.aspx',
        {type:1, item: 8, timespan: d },
        function(xml) {
            var sTemp = '';
            $(xml).find('Item').each(function() {
                var title = $(this).attr('title');
                var httppath = $(this).attr('httppath');
                sTemp += '<div style="float:left; width:232px;height:22px;padding:4px 6px 0px 10px; text-align:left; overflow:hidden;line-height:19px;">';
                sTemp += '<a href="' + httppath + '" target="_blank" title="' + title + '">• ';
                sTemp += title;
                sTemp += '</a></div>';
            });
            NewsGY.html(sTemp);
        }
    );
    
    
     var NewsQG = $('#NewsQG');
     $.get(
        '/XMl/XML_Detailright.aspx',
        {type:2, item: 8, timespan: d },
        function(xml) {
            var sTemp = '';
            $(xml).find('Item').each(function() {
               var title = $(this).attr('title');
                var httppath = $(this).attr('httppath');
                sTemp += '<div style="float:left; width:232px;height:22px;padding:4px 6px 0px 10px; text-align:left; overflow:hidden;line-height:19px;">';
                sTemp += '<a href="' + httppath + '" target="_blank" title="' + title + '">• ';
                sTemp += title;
                sTemp += '</a></div>';
            });
            NewsQG.html(sTemp);
        }
    );
    
     var Newlhzb = $('#Newlhzb');
     $.get(
        '/XMl/XML_Detailright.aspx',
        {type:3, item: 8, timespan: d },
        function(xml) {
            var sTemp = '';
            $(xml).find('Item').each(function() {
               var title = $(this).attr('title');
                var httppath = $(this).attr('httppath');
                sTemp += '<div style="float:left; width:232px;height:22px;padding:4px 6px 0px 10px; text-align:left; overflow:hidden;line-height:19px;">';
                sTemp += '<a href="' + httppath + '" target="_blank" title="' + title + '">• ';
                sTemp += title;
                sTemp += '</a></div>';
            });
            Newlhzb.html(sTemp);
        }
    );
    
     var Newwhbm = $('#Newwhbm');
     $.get(
        '/XMl/XML_Detailright.aspx',
        {type:4, item: 6, timespan: d },
        function(xml) {
            var sTemp = '';
            $(xml).find('Item').each(function() {
               var title = $(this).attr('title');
                var httppath = $(this).attr('httppath');
                sTemp += '<div style="float:left; width:232px;height:22px;padding:4px 6px 0px 10px; text-align:left; overflow:hidden;line-height:19px;">';
                sTemp += '<a href="' + httppath + '" target="_blank" title="' + title + '">• ';
                sTemp += title;
                sTemp += '</a></div>';
            });
            Newwhbm.html(sTemp);
        }
    );
    
    
     var NewPicxx = $('#NewPicxx');
     $.get(
        '/XMl/XML_Detailright.aspx',
        {type:5, item: 2, timespan: d },
        function(xml) {
            var sTemp = '';
            $(xml).find('Item').each(function() {
                var title = $(this).attr('title');
                var httppath = $(this).attr('httppath');
                var picture = $(this).attr('picture');
                sTemp += '<div style="float:left; width:95px;height:98px;padding:12px 10px 0px 10px; text-align:left; overflow:hidden;">';
                sTemp += '<a href="' + httppath + '" target="_blank" title="' + title + '">';
                sTemp +='<img src="' + picture + '" alt="' + title + '" style="border:solid 1px #BCBABB;width:97px;height:73px;" />';
                sTemp += '</a><br/><br/>';
                sTemp += '<a href="' + httppath + '" target="_blank" title="' + title + '">';
                sTemp += title;
                sTemp += '</a></div>';
            });
            NewPicxx.html(sTemp);
        }
    );
 });
