<div id="dplayer4" style="margin:0px auto;padding:0px;width:310px;height:180px;">不支持flash</div>
<script type="text/javascript" src="http://mat1.qq.com/www/js/swfobjectopt.js"></script>
<script language="javascript" type="text/javascript">
//说明文字
var titles = "2009年国家科学最高技术奖颁布|MOTO智尚XT800手机新体验|科学家发现太阳系外最小行星|跨年度诺基亚10大畅销手机一览";
//图片链接
var imgs = "http://img1.gtimg.com/tech/pics/27046/27046406.jpg|http://img1.gtimg.com/0/4/466/46631_1200x1000_0.jpg|http://img1.gtimg.com/tech/pics/27095/27095380.jpg|http://img1.gtimg.com/digi/pics/27093/27093425.jpg"
//图片链接地址
var urls = "http://tech.qq.com/a/20100111/000229.htm|http://www.hicdma.com/templates/vsens/sales_promotion/moto_xt800/index.jsp|http://tech.qq.com/a/20100112/000090.htm|http://digi.qq.com/a/20100112/000642.htm"
var pw = 264; //宽度
var ph = 182; //高度
var Times = 4000; //变化时间
var sizes = 14; //说明文字大小
var isbold="yes"; //说明文字是否加粗
var txtcolor =0xFFFFFF; //说明文字颜色
var txtLeft = 4; //说明文字左边距离
var umcolor = 0xB0B0B0; //
var nubtouming = 100;
var hovertouming = 100;
var btnbg =0xCB0E02;
var bgnub = 0x000000; //数字背景颜色
var hovercolor =0xFFFFFF; //鼠标移动数字上数字样式
var rname="开能教育"; //右键菜单
var rlink="http://www.edukn.cn"; //右键菜单链接
var flash = new SWFObject("http://mat1.gtimg.com/tech/flash/focus_flash2.swf", "mymovie", pw, ph, "7", "");
flash.addParam("allowFullScreen", "true");
flash.addParam("allowScriptAccess", "always");
flash.addParam("quality", "high");
flash.addParam("wmode", "Transparent");
flash.addVariable("pw", pw);
flash.addVariable("ph", ph);
flash.addVariable("Times", Times);
flash.addVariable("sizes", sizes);
flash.addVariable("isbold", isbold);
flash.addVariable("umcolor", umcolor);
flash.addVariable("bgnub", bgnub);
flash.addVariable("btnbg", btnbg);
flash.addVariable("hovercolor", hovercolor);
flash.addVariable("txtcolor", txtcolor);
flash.addVariable("txtLeft", txtLeft);
flash.addVariable("nubtouming", nubtouming);
flash.addVariable("hovertouming", hovertouming);
flash.addVariable("rname", rname);
flash.addVariable("rlink", rlink);
flash.addVariable("urls", urls);
flash.addVariable("titles", titles);
flash.addVariable("imgs", imgs);
flash.write("dplayer4"); //添加到的位置
</script>
PHPCMS中调用
<?php $arrchildid=$CATEGORY[11]['arrchildid'];
$titles = ""; $imgs = "" ; $urls = "";?>
{get sql="SELECT a.title,a.thumb,a.description,a.url FROM phpcms_content a,phpcms_content_position b WHERE a.catid IN($arrchildid) AND a.contentid=b.contentid AND thumb!='' AND b.posid=2" rows="5"}
{php $titles .= $titles=="" ? $r[title] : "|".$r[title]; }
{php $imgs .= $imgs=="" ? "http://www.edukn.cn/".$r[thumb] : "|"."http://www.edukn.cn/".$r[thumb];}
{php $urls .= $urls=="" ? "http://www.edukn.cn/".$r[url] : "|"."http://www.edukn.cn/".$r[url];}
{/get}
var titles = "<?=$titles?>";
var imgs = "<?=$imgs?>";
var urls = "<?=$urls?>";