带标题与摘要的flash图片播放器 时间: 2007/08/20 美工服务 演示地址 下载该压缩包 用法 在需要的放置该播放器的位置放入<script type="text/javascript"><br /> var xmlData = "<?xml version='1.0' encoding='utf-8'?>"<br /> xmlData = xmlData + "<root>"<br /> xmlData = xmlData + "<photo pUrl='http://www.xuandun.net/upload/200707292138105707.jpg' gUrl='http://www.xuandun.net/' fName='标题1' sName='摘要1' />" <br /> <!-- pUrl图片地址 gUrl 链接地址 fName 图片标题 sName 图片简单摘要 --> <br /> <!-- 每添加一个图片 就增加一段这个代码下面就是例子 --> <br /> xmlData = xmlData + "<photo pUrl='http://www.xuandun.net/upload/200707292138418738.jpg' gUrl='http://www.xuandun.net/' fName='标题2' sName='摘要2' />"<br /> xmlData = xmlData + "<photo pUrl='http://www.xuandun.net/upload/4ac9903302000yq0.jpg' gUrl='http://www.xuandun.net/' fName='标题3' sName='摘要3' />"<br /> xmlData = xmlData + "<photo pUrl='http://www.xuandun.net/upload/200707292139107815.jpg' gUrl='http://www.xuandun.net/' fName='标题4' sName='摘要4' />"<br /> xmlData = xmlData + "</root>";<br /> var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;<br /> function myFlash_DoFSCommand(command, args){<br /> var myFlshObj = InternetExplorer ? myFlash : document.myFlash;<br /> if(myFlshObj){<br /> myFlshObj.SetVariable("xmlString", xmlData);<br /> }<br /> }<br /> if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && <br /> navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {<br /> document.write('<script language=vbscript\> \n');<br /> document.write('on error resume next \n');<br /> document.write('Sub myFlash_FSCommand(ByVal command, ByVal args)\n');<br /> document.write(' call myFlash_DoFSCommand(command, args)\n');<br /> document.write('end sub\n');<br /> document.write('</script\> \n');<br /> }<br /> </script><br /> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" id="myFlash" height="200" width="320"><br /> <param name="movie" value="play.swf"><br /> <!-- 压缩包里的paly.swf 可以随便放 注意修改地址 还有下面的play.swf 注意修改--> <br /> <param name="quality" value="high"><br /> <param name="wmode" value="opaque"><br /> <embed wmode="transparent" src="play.swf" quality="high" name="myFlash" swliveconnect="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" height="200" width="320"><br /> </object><br />