为提升港台主机在国内的访问速度,我司对港台主机的图片进行了国内缓存(访问速度比非缓存情况下能提升一倍)。 部分用户使用了bcastr3.swf的通用播放器的网页,可能因此出现幻灯片无法播放图片的现象。
您可以在您的网站程序中将这个播放器更新到一个新版本就可以恢复显示了。以下步骤建议有网页代码基础的技术人员进行操作,且操作前先对要操作文件备份,避免将网站程序修改出错导致网站无法正常访问。
首先:在您的网站源码中找到使用bcastr3.swf的文件,一般来说在模板文件里。比如bcastr3.swf在您的模板首页里。您的模板文件是放在wwwroot/template/default/index.htm,请将index.htm文件下载到您本地,并先备份。
其次:下载http://downinfo.myhostadmin.net/flash_fix.txt和http://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.txt和http://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('
document.write('');
document.write('');
document.write('');
document.write('');
document.write('');
document.write('');
document.write('');
需要图片有过渡效果的用以下代码(文件下载:http://downinfo.myhostadmin.net/flash_focus2.zip):
var swf_width=947
var swf_height=402
var text_height=0
var flashCode = '
flashCode = flashCode + '';
flashCode = flashCode + '';
flashCode = flashCode + '';
flashCode = flashCode + '';
flashCode = flashCode + '';
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('
document.write('');
document.write('');
document.write('');
document.write('');
document.write('');
document.write('');
document.write('');
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('
"document.write('');"&vbcrlf& _
"document.write('');"&vbcrlf& _
"document.write('');"&vbcrlf& _
"document.write('');"&vbcrlf& _
"document.write('');"&vbcrlf& _
"document.write('');"&vbcrlf& _
"document.write('');"&vbcrlf& _
4.metinfo系统: 找methtml.inc.php文件
case 2:
$methtml_flash.="\n";
break;
5.成品网站:直接上传focus.swf到其目录下,将flash文件名修改替换,不需要改代码.
6.图片在xml文件中找到相应代码文件替换代码:
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('
document.write(''); //此处xml路径换实际更改
document.write('');
document.write('');
document.write('');
document.write('');
document.write('');
document.write('');
更换后通过浏览器开发工具检测,注意变量的定义,赋值等。如代码中有“files”变量但浏览器却报错未定义。
来源:西部数码
seozixuewang
手机扫码阅读
专业的技术驱动型网络技术公司,公司成立于2009年,12年专注数字产品开发,用创新迎合客户不断增长的需求,为客户提供专业的数字化解决方案, 为企业和品牌在不断变化的数字化环境中脱颖而出。
威海网站建设, 威海微信公众号开发, 威海企业邮箱, 威海行业网站, 威海系统开发, 威海软件开发, 威海APP开发, 威海域名注册, 威海商标查询, 威海商标注册, 威海商标设计, 威海知识产权代理, 威海房产销控系统, 威海缺陷跟踪系统, 威海企业云/私有云解决方案, 威海企业邮局