<html>
<head>
<title>幻灯片代码</title>
</head>

<body bgcolor="#FFFFFF" text="#000000">

<!--幻灯代码开始, 调整以下cms调用参数以获取您想要的图片-->
<CMS action="LIST" return="List" NodeID="{$NodeInfo.NodeID}" Num="5" where=" c.Photo!='' " />
  <script type="text/javascript">
	<!--
	var pic_width = 281 //图片宽
	var pic_height = 192 //图片高
	var text_height = 50 //图片标题高,可以不要标题显示设为0
	var swfpath = '/www/picviewer.swf'  //picviewer.swf的位置,请修改成你的, 默认在/www/
	var swf_height = pic_height+text_height //Flash高,会自动计算

	//调用字段： 图片Photo、链接URL、标题Title
	var pics='<loop name="List" var="var" key="key" >[$var.Photo][@(($key==sizeof($List)-1)?'':'|')]</loop>'
	var links='<loop name="List" var="var" key="key" >[$var.URL][@(($key==sizeof($List)-1)?'':'|')]</loop>'
	var texts='<loop name="List" var="var" key="key" >[$var.Title][@(($key==sizeof($List)-1)?'':'|')]</loop>'
	
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ pic_width +'" height="'+ swf_height +'">');
	document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="'+swfpath+'"><param name="quality" value="high"><param name="bgcolor" value="#ffffff">');
	document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
	document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+pic_width+'&borderheight='+pic_height+'&textheight='+text_height+'">');
	document.write('<embed src="'+swfpath+'" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+pic_width+'&borderheight='+pic_height+'&textheight='+text_height+'" menu="false" bgcolor="#ffffff" quality="high" width="'+ pic_width +'" height="'+ pic_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');  document.write('</object>');
	//-->
  </script>
<!--幻灯代码结束-->

</body>
</html>
