﻿







<xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" version="1.0" exclude-result-prefixes="xsl msxsl ddwrt" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:SharePoint="Microsoft.SharePoint.WebControls" xmlns:ddwrt2="urn:frontpage:internal">
	<xsl:output method="html" indent="no"/>
	<xsl:decimal-format NaN=""/>
	<xsl:param name="dvt_apos">&apos;</xsl:param>
	<xsl:variable name="dvt_1_automode">0</xsl:variable>
	<xsl:template match="/" xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:SharePoint="Microsoft.SharePoint.WebControls">
		<xsl:call-template name="dvt_1"/>
	</xsl:template>
	
	<xsl:template name="dvt_1">
		<style type="text/css">   
		.ms-vb-date {color:#666; font-size:8pt; font-family:微软雅黑, Arial, Helvetica, sans-serif;}
		#play img {border:0px}   
		#play {width:200px;height:140px;overflow:hidden;margin:0;}   
		#play_text {position:absolute;margin:124px 0 0 80px;height:20px;width:90px;z-index:1002}   
		#play_text ul {list-style-type:none; width:90px;height:50px;display:block;padding-top:0px;_padding-top:0px;filter: Alpha(Opacity=80);opacity:0.8;}   
		#play_text ul li {width:14px;height:14px;float:left;background-color:#000;display:block;color:#FFF;text-align:center;margin:1px;cursor:pointer;font-family:&quot;Courier New&quot;;}   
		#play_list a{display:block;width:346px;height:191px;position:absolute;overflow:hidden}
		</style> <script type='text/javascript' src='/Javascript/jquery.js'></script> <script language="JavaScript" type="text/javascript"><xsl:comment><![CDATA[
		var t = n = count = 0;
		$(function(){
			count = $("#play_list a").size();
			$("#play_list a:not(:first-child)").hide();
			
			$("#play_text li:first-child").css({"background":"#fff",'color':'#000'});   
			$("#play_text li").click(function() {   
				var i = $(this).text() - 1;   
				n = i;   
				if (i >= count) return;   
				$("#play_list a").filter(":visible").fadeOut(500).parent().children().eq(i).fadeIn(1000);   
				$(this).css({"background":"#fff",'color':'#000'}).siblings().css({"background":"#000",'color':'#fff'});   
			});   
			t = setInterval("showAuto()", 3000);   
			$("#play").hover(function(){clearInterval(t)}, function(){t = setInterval("showAuto()", 3000);});
		})
		
		function showAuto()
		{
			n = n >= (count - 1) ? 0 : n+1;
			$("#play_text li").eq(n).trigger('click');
		}
		]]></xsl:comment></script>          
		<xsl:variable name="dvt_StyleName">Table</xsl:variable>
		<xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row"/>
		<xsl:variable name="RowLimit" select="5" />
		<table border="0" width="200" height="140" cellpadding="2" cellspacing="0">
			<tr>
			<td width="100%">
				<div id="play">
					<div id="play_text">
						<ul>
							<li>1</li>
							<li>2</li>
							<li>3</li>
							<li>4</li>
							<li>5</li>
						</ul>
					</div>
					<div id="play_list">
						<xsl:call-template name="dvt_2.body">
							<xsl:with-param name="Rows" select="$Rows"/>
						</xsl:call-template>
					</div>				
				</div>
			</td>
			</tr>
		</table>
		
	</xsl:template>
	
	<xsl:template name="dvt_2.body">
		<xsl:param name="Rows"/>
		<xsl:for-each select="$Rows">
			<xsl:sort select="@Modified" order="descending" data-type="text" />
			<a href="{@URLTarget}" target="_blank">
				<img width="200" height="140" src="{@FileRef}" />
			</a>
		</xsl:for-each>
	</xsl:template>
	
</xsl:stylesheet>	
