欢迎来到 0713网站目录
登录

    为提升港台主机在国内的访问速度,我司对港台主机的图片进行了国内缓存(访问速度比非缓存情况下能提升一倍)。 部分用户使用了bcastr3.swf的通用播放器的网页,可能因此出现幻灯片无法播放图片的现象。
您可以在您的网站程序中将这个
播放器更新到一个新版本就可以恢复显示了。以下步骤建议有网页代码基础的技术人员进行操作,且操作前先对要操作文件备份,避免将网站程序修改出错导致网站无法正常访问。

 

首先:在您的网站源码中找到使用bcastr3.swf的文件,一般来说在模板文件里。比如bcastr3.swf在您的模板首页里。您的模板文件是放在wwwroot/template/default/index.htm,请将index.htm文件下载到您本地,并先备份。

 

其次:下载http://downinfo.myhostadmin.net/flash_fix.txthttp://downinfo.myhostadmin.net/flash_fix.rar到您本地flash_fix.rar下载后将解压出来的focus.swf上传至网站根目录(wwwroot/

用记事本或者其他经常使用的网页编辑工具打开模板index.htm文件,在源码状态下,找到以下代码:

 

用下载的flash_fix.txt文档中的代码进行替换。如图:

 

注意,以下四项如果原来文件里已经有设置,则不用复制这四项:

var swf_width=288;       //宽度
var swf_height=235;     //高度
var files = '';                  //用|分隔的图片列表
var links = '';                 //用|分隔的连接

若需轮播图片带有过渡效果的请下载:http://downinfo.myhostadmin.net/flash_focus2.txthttp://downinfo.myhostadmin.net/flash_focus2.zip 到您本地将flash_focus2.zip解压出来的focus2.swf上传至网站根目录(wwwroot/).

如果实在难以解决,可以提交提交工单,申请改为非缓存模式,但这样会导致访问速度较慢。

以下附各大程序的swf相关文件替换方法:


1.dede系统:templates/模板目录/模板文件

    var config = '6|0xffffff|0x0099ff|50|0xffffff|0x0099ff|0x000000'; 
    var swf_dir="/focus.swf"; //flash播放器路径
 document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" width="'+swf_width+'" height="'+swf_height+'">');
 document.write('<param name="movie" value="'+swf_dir+'" />');
 document.write('<param name="quality" value="high" />');
 document.write('<param name="menu" value="false" />');
 document.write('<param name="wmode" value="transparent" />');
 document.write('<param name="FlashVars" value="config='+config+'&bcastr_flie='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'" />');
 document.write('<embed src="'+swf_dir+'" wmode="opaque" FlashVars="config='+config+'&bcastr_flie='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'" menu="false" quality="high" width="'+swf_width+'" height="'+swf_height+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
 document.write('</object>');

需要图片有过渡效果的用以下代码(文件下载:http://downinfo.myhostadmin.net/flash_focus2.zip):

     var swf_width=947

     var swf_height=402

     var text_height=0

     var flashCode = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/hotdeploy/flash/swflash.cab#version=6,0,0,0" width="'+ swf_width +'" height="'+ swf_height +'">';

     flashCode = flashCode + '<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="/focus2.swf"><param name="quality" value="high"><param name="bgcolor" value="#F0F0F0">';

     flashCode = flashCode + '<param name="menu" value="false"><param name=wmode value="opaque">';

     flashCode = flashCode + '<param name="FlashVars" value="pics='+files+'&links='+links+'&texts='+texts+'&borderwidth='+swf_width+'&borderheight='+swf_height+'&textheight='+text_height+'">';

     flashCode = flashCode + '<embed src="/focus2.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer"; type="application/x-shockwave-flash" width="'+ swf_width +'" height="'+ swf_height +'" FlashVars="pics='+files+'&links='+links+'&texts='+texts+'&borderwidth='+swf_width+'&borderheight='+swf_height+'&textheight='+text_height+'"></embed>';

     flashCode = flashCode + '</object>';

     document.write(flashCode)


2.ecshop系统:找cycle_image.js文件

  var swf_config = "6|0xffffff|0x0099ff|50|0xffffff|0x0099ff|0x000000"
  var swf_dir="/focus.swf"; 
   document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" width="'+swf_width+'" height="'+swf_height+'">');
 document.write('<param name="movie" value="'+swf_dir+'?bcastr_xml_url=data/flashdata/default/data.xml" />');
 document.write('<param name="quality" value="high" />');
 document.write('<param name="menu" value="false" />');
 document.write('<param name="wmode" value="transparent" />');
 document.write('<param name="FlashVars" value="config='+swf_config+'" />');
 document.write('<embed src="'+swf_dir+'?bcastr_xml_url=data/flashdata/default/data.xml" wmode="opaque" FlashVars="config='+swf_config+'" menu="false" quality="high" width="'+swf_width+'" height="'+swf_height+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
 document.write('</object>');

3.AspCms系统:inc/AspCms_MainClass.asp文件

   sFiles&vbcrlf& sLinks &vbcrlf& sTexts&vbcrlf& _
   "var texts='' ;"&vbcrlf& _
   "config=configtg"&vbcrlf& _
   "var swf_dir=""/focus.swf"";"&vbcrlf& _
 "document.write('<object classid=""clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"" codebase=""http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"" width=""'+swf_width+'"" height=""'+swf_height+'"">');"&vbcrlf& _
 "document.write('<param name=""movie"" value=""'+swf_dir+'"" />');"&vbcrlf& _
 "document.write('<param name=""quality"" value=""high"" />');"&vbcrlf& _
 "document.write('<param name=""menu"" value=""false"" />');"&vbcrlf& _
 "document.write('<param name=""wmode"" value=""transparent"" />');"&vbcrlf& _
 "document.write('<param name=""FlashVars"" value=""config='+config+'&bcastr_flie='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'"" />');"&vbcrlf& _
 "document.write('<embed src=""'+swf_dir+'"" wmode=""opaque"" FlashVars=""config='+config+'&bcastr_flie='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'"" menu=""false"" quality=""high"" width=""'+swf_width+'"" height=""'+swf_height+'"" type=""application/x-shockwave-flash"" pluginspage=""http://www.macromedia.com/go/getflashplayer"" />');"&vbcrlf& _
 "document.write('</object>');"&vbcrlf& _

4.metinfo系统: 找methtml.inc.php文件

  

case 2:

$methtml_flash.="<script type=\"text/javascript\">\n";

   $methtml_flash.="var swf_width=".$width.";\n";

   $methtml_flash.="var swf_height=".$height.";\n";

   $methtml_flash.="var files='".$imgurl."';\n";

   $methtml_flash.="var links='".$imglink."';\n";

   $methtml_flash.="var texts='';\n";

   $methtml_flash.="var swf_dir = '/focus.swf';\n";

   $methtml_flash.="var config = '4|0xffffff|0x0099ff|50|0xffffff|0x0099ff|0x000000';\n";

   $methtml_flash.="document.write('<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab\" width=\"'+swf_width+'\" height=\"'+swf_height+'\">');\n";


   $methtml_flash.="document.write('<param name=\"movie\" value=\"'+swf_dir+'\" />');\n";

   $methtml_flash.="document.write('<param name=\"quality\" value=\"high\" />');\n";

   $methtml_flash.="document.write('<param name=\"menu\" value=\"false\" />');\n";

   $methtml_flash.="document.write('<param name=\"wmode\" value=\"transparent\" />');\n";

   $methtml_flash.="document.write('<param name=\"FlashVars\" value=\"config='+config+'&&bcastr_flie='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'\" />');\n";

   $methtml_flash.="document.write('<embed src=\"'+swf_dir+'\" wmode=\"opaque\" FlashVars=\"config='+config+'&bcastr_flie='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'\" menu=\"false\" quality=\"high\" width=\"'+swf_width+'\" height=\"'+swf_height+'\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />');\n";

   $methtml_flash.="document.write('</object>'); \n";

   $methtml_flash.="</script>\n";

break;

5.成品网站:直接上传focus.swf到其目录下,将flash文件名修改替换,不需要改代码.

6.图片在xml文件中找到相应代码文件替换代码:

  <script type="text/javascript" >
  var swf_config = "6|0xffffff|0x0099ff|50|0xffffff|0x0099ff|0x000000"
  var swf_dir="/focus.swf"; 
  var swf_width=975;
  var swf_height=372;
   document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" width="'+swf_width+'" height="'+swf_height+'">');
 document.write('<param name="movie" value="'+swf_dir+'?bcastr_xml_url=xml/bcastr.xml" />'); //此处xml路径换实际更改
 document.write('<param name="quality" value="high" />');
 document.write('<param name="menu" value="false" />');
 document.write('<param name="wmode" value="transparent" />');
 document.write('<param name="FlashVars" value="config='+swf_config+'" />');
 document.write('<embed src="'+swf_dir+'?bcastr_xml_url=xml/bcastr.xml" wmode="opaque" FlashVars="config='+swf_config+'" menu="false" quality="high" width="'+swf_width+'" height="'+swf_height+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
 document.write('</object>');
    </script>

更换后通过浏览器开发工具检测,注意变量的定义,赋值等。如代码中有“files”变量但浏览器却报错未定义。

  

特别提示:

推荐

最新

最新文章

discuz、ecshop、帝国cms部署https(ssl)后会员无法登录
𝗦𝗵𝗮𝗿𝗲 | 秦岚高清壁纸
壁纸 | 张碧晨抹胸鱼尾裙写真
为什么访问网站的时候,网址后面出现随机?jdfwkey=0plwb1字符,是否影响正常访问?
网站没排名:为什么网站在Google上没有排名?
[原创]织梦程序(DeDeCms)常见问题集锦
谷歌SEO外链怎么做?18种高质量外链建设指南(含实操方法)
win2008/2012系统10月补丁更新后JET引擎连接excel异常的解决办法
直面历史不是仇恨教育
常见程序搜索关键字转码
飒!24位湖北姑娘,天安门参阅!
org域名为什么禁止备案
从域名到网站,只需四步!
电信、双线、多线等线路的差别是什么?如何选择?
如何选择合适的虚拟主机
不求与人相比,但求超越自己。
虚拟主机购买其他常见问题
𝗦𝗵𝗮𝗿𝗲 | 张雅钦高清壁纸
𝑺𝒉𝒂𝒓𝒆壁纸|陈都灵|女神在世,权威二字
选择多大空间和流量的主机合适

猜你想看

开机后不能直达想看的节目,如何为老年人选择一台操作便利的电视
在团队中的选人技巧,知道这五点,你也是管理高手
连接车载蓝牙后,高德导航却没声音,非常危险,只因不懂如何设置
汽车有划痕自助补漆到底靠谱吗?如果喷坏了怎么办?
劳动、劳务合同分清楚再签?职场老资格:劳务合同不用购买社保
有三大理由,最好别买混动车,电动车也要远离
车子出现不明原因划痕,应该如何应对?
一键启动按钮真的需要先按1次,等自检完之后再按1次启动吗
今日秋分,记得吃“蒸3样,煮3样,忌3样”,润燥祛寒
汽车走高速哪条车道最安全?
两性关系:怎样让女人经常想你,这3个技巧很实用
最强电视盒子来了:采用A12X芯片,遥控器带显示屏
高情商的十种表现
北京有名的律师事务所都怎么收费,北京律师收费标准
选MHEV还是PHEV?一文让你轻松了解两者的区别和优劣势!
切掉一个肾,对身体会有什么影响?
陈都灵|哇塞!太适合当壁纸啦~
高血压年轻化:你需要注意这些健康信号
多地启动下半年事业单位招聘 这些事项需关注
汽车挡风玻璃裂了可以修复吗?汽车玻璃修复有用吗?