<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
	<title>Silverlight相册演示 -- DVBBS ASP.NET论坛官方</title>
	<!--动网论坛是使用量最多、覆盖面最广的免费中文论坛，也是国内知名的技术讨论站点，希望我们辛苦的努力可以为您带来很多方便-->
	<link href="<%=CurrentSkinPath%>style.css" rel="stylesheet" type="text/css" />
	</head>
	<script language="javascript">
		//Silverlight相册演示
		var ShowPhotoBar = {
			ImgsList : [],			
			//sliverlight 图片数据
			SilverlightShow : function(){
				var piclist = ShowPhotoBar.ImgsList;
				var count = piclist.length;
				for (var i = 0; i < count; i += 1) {
					if (i>11)
					{
						break;
					}else{
						Dvbbs.AlbumImages[i] = piclist[i].pic;
					};
				};
			}
		}

		//图片JSON数据
		ShowPhotoBar.ImgsList = [
		<!--{for(int i = 0; i < Album.PhotosLen && i < 12; i++)}-->
		{
		"id":"<%=Album.photos[i].id.ToString()%>",
		"title":"<%=Album.photos[i].imgtitle.ToString()%>",
		"pic":"<%=Album.photos[i].ImgFile.ToString()%>",
		"url":"album_photo.aspx?photoid=<%=Album.photos[i].id.ToString()%>"
		}
		<!--{if(i<(Album.PhotosLen-1) && i < 12)}-->
		,
		<!--{endif}-->
		<!--{endfor}-->
		];		
	</script>
	
	<script type="text/javascript" src="templates/scripts/Silverlight.js"></script>
	<script type="text/javascript" src="templates/<%=CurrentTemplateName%>/scripts/Silverlight/demo1/Default_html.js"></script>
	<script type="text/javascript" src="templates/<%=CurrentTemplateName%>/scripts/Silverlight/demo1/demo.xaml.js"></script>
<body>
<div style="background:black; padding:0px;height:580px;">
	<div style="text-align:center;width:100%"><!--#include file="_temppager.htm"--></div>
	<div id="SilverlightControlHost">
		<script type="text/javascript">
			if (navigator.userAgent.indexOf("MSIE")!=-1)
			{			
				ShowPhotoBar.SilverlightShow();
				createSilverlight('templates/<%=CurrentTemplateName%>/scripts/Silverlight/demo1/demo.xml');
			}
		</script>
	</div>
</div>
</body>
</html>