我试图弄清楚为什么此页面上的幻灯片不起作用(它仅适用于 FireFox,不适用于 Chrome 或 IE)。
如您所见,这是基于 Flash 的幻灯片,并从 xml 读取其数据。xml 也是使用 php 脚本生成的。
当我手动导航到php 脚本并为其提供正确的 slidehsow ID时,我可以验证是否生成了正确的 xml 。
该 php 脚本在嵌入代码的 flashvars 属性中调用。知道为什么不显示幻灯片吗?
这是整个代码:
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','680','height','251','src','topShow','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','topShow','FlashVars','xmlfile=http://www.credencegasservices.com/slideshow-xml.php?showID=8' ); //end AC code
</script>
<embed width="680" height="251" type="application/x-shockwave-flash" flashvars="xmlfile=http://www.credencegasservices.com/slideshow-xml.php?showID=8" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" quality="high" src="topShow.swf">
<noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="680" height="251">
<param name="FlashVars" value="xmlfile=http://www.credencegasservices.com/slideshow-xml.php?showID=8" />
<param name="movie" value="topShow.swf" />
<param name="quality" value="high" />
<embed src="topShow.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="680" height="251" FlashVars="xmlfile=http://www.credencegasservices.com/slideshow-xml.php?showID=8"></embed>
</object>
</noscript>