jeib

 

专业微信开发 网站制作  就在西安格创网络 

联系电话:18009249661 

 

原因:因为服务器或虚拟主机用了CDN加速,导致图片是调用远程缓存,只能显示FLASH控件,但图片不能正常显示,常见于西部数码等虚拟空间港台主机。

解决办法:

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

其次:下载 http://downinfo.myhostadmin.net/flash_fix.rar 到您本地

flash_fix.rar下载后将解压出来的focus.swf上传至网站根目录(wwwroot/)

之后将关键代码替换为下面的代码:

 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#version=6,0,0,0" 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>\');

此处注意原来文件中变量的命名 ,比如 原来是  var confgistr  ,此处是config  文件名要保持一至。

到此保存后访问便可看到熟悉的flash能加载图片了。

 

 专业微信开发 网站制作  就在西安格创网络

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-01-19
  • 2021-12-07
  • 2021-05-16
  • 2021-12-08
  • 2022-12-23
  • 2021-09-03
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-01
  • 2021-08-30
  • 2021-11-23
  • 2021-04-17
  • 2021-10-29
  • 2021-10-29
相关资源
相似解决方案