国产成人精品999视频&日本一区二区亚洲人妻精品&久久久精品国产99久久精&99热这里只有成人精品国产&精品国产剧情av一区二区&成人亚洲精品久久久久app&国产精品美女高潮抽搐A片

Categories


Tags


港臺(tái)機(jī)房主機(jī)flash無(wú)法正常使用的解決方法

為提升港臺(tái)主機(jī)在國(guó)內(nèi)的訪(fǎng)問(wèn)速度,我司對(duì)港臺(tái)主機(jī)的圖片進(jìn)行了國(guó)內(nèi)緩存(訪(fǎng)問(wèn)速度比非緩存情況下能提升一倍)。 部分用戶(hù)使用了bcastr3.swf的通用播放器的網(wǎng)頁(yè),可能因此出現(xiàn)幻燈片無(wú)法播放圖片的現(xiàn)象。

您可以在您的網(wǎng)站程序中將這個(gè)播放器更新到一個(gè)新版本就可以恢復(fù)顯示了。以下步驟建議有網(wǎng)頁(yè)代碼基礎(chǔ)的技術(shù)人員進(jìn)行操作,且操作前先對(duì)要操作文件備份,避免將網(wǎng)站程序修改出錯(cuò)導(dǎo)致網(wǎng)站無(wú)法正常訪(fǎng)問(wèn)。

首先:在您的網(wǎng)站源碼中找到使用bcastr3.swf的文件,一般來(lái)說(shuō)在模板文件里。比如bcastr3.swf在您的模板首頁(yè)里。您的模板文件是放在wwwroot/template/default/index.htm,請(qǐng)將index.htm文件下載到您本地,并先備份。

其次:下載http://downinfo.myhostadmin.net/flash_fix.txt和http://downinfo.myhostadmin.net/flash_fix.rar到您本地flash_fix.rar下載后將解壓出來(lái)的focus.swf上傳至網(wǎng)站根目錄(wwwroot/)

用記事本或者其他經(jīng)常使用的網(wǎng)頁(yè)編輯工具打開(kāi)模板index.htm文件,在源碼狀態(tài)下,找到以下代碼:

用下載的flash_fix.txt文檔中的代碼進(jìn)行替換。如圖:

注意,以下四項(xiàng)如果原來(lái)文件里已經(jīng)有設(shè)置,則不用復(fù)制這四項(xiàng):

var swf_width=288;       //寬度

var swf_height=235;     //高度

var files = '';                  //用|分隔的圖片列表

var links = '';                 //用|分隔的連接

若需輪播圖片帶有過(guò)渡效果的請(qǐng)下載:http://downinfo.myhostadmin.net/flash_focus2.txt和http://downinfo.myhostadmin.net/flash_focus2.zip 到您本地將flash_focus2.zip解壓出來(lái)的focus2.swf上傳至網(wǎng)站根目錄(wwwroot/).

如果實(shí)在難以解決,可以提交提交工單,申請(qǐng)改為非緩存模式,但這樣會(huì)導(dǎo)致訪(fǎng)問(wèn)速度較慢。

以下附各大程序的swf相關(guān)文件替換方法:

1.dede系統(tǒng):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#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>');

需要圖片有過(guò)渡效果的用以下代碼(文件下載: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系統(tǒng):找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#version=6,0,0,0" 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系統(tǒng):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#version=6,0,0,0"" 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系統(tǒng): 找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#version=6,0,0,0\" 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.成品網(wǎng)站:直接上傳focus.swf到其目錄下,將flash文件名修改替換,不需要改代碼.

6.圖片在xml文件中找到相應(yīng)代碼文件替換代碼:

<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#version=6,0,0,0" width="'+swf_width+'" height="'+swf_height+'">');

document.write('<param name="movie" value="'+swf_dir+'?bcastr_xml_url=xml/bcastr.xml" />'); //此處xml路徑換實(shí)際更改

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>

更換后通過(guò)瀏覽器開(kāi)發(fā)工具檢測(cè),注意變量的定義,賦值等。如代碼中有“files”變量但瀏覽器卻報(bào)錯(cuò)未定義。

來(lái)源:西部數(shù)碼


Public @ 2013-11-27 15:45:54

CMS模板開(kāi)發(fā)應(yīng)該注意什么?

建議盡量自己開(kāi)發(fā)模板,或者外包開(kāi)發(fā)模板,在網(wǎng)站上線(xiàn)初期模板不需要多么華麗,實(shí)用,復(fù)合SEO規(guī)范即可。下面是我們總結(jié)了一些模板開(kāi)發(fā)需要注意的事項(xiàng),供大家參考。1.CSS樣式,javaScript 代碼外置在頁(yè)面源代碼中盡量不要出現(xiàn)CSS樣式,JavaScript代碼。因?yàn)槌霈F(xiàn)會(huì)影響搜索引擎抓取的速度和數(shù)量。百度搜索引擎不會(huì)抓取 JavaScript代碼?!?nbsp; Css樣式表外置到Css文件夾

Public @ 2018-05-14 15:44:49

投資域名的基本技巧

現(xiàn)在股市猥瑣,比特幣深不可測(cè),2015年底,一個(gè)新的投資領(lǐng)域,越來(lái)越引起人們的關(guān)注,那就是域名,最近關(guān)于誰(shuí)誰(shuí)誰(shuí)靠賣(mài)了個(gè)域名,賺了幾百萬(wàn),幾千萬(wàn)的新聞不絕于耳,一時(shí)間,無(wú)數(shù)散戶(hù)大媽開(kāi)始?xì)⑷胗蛎顿Y領(lǐng)域,就如當(dāng)初買(mǎi)黃金、買(mǎi)比特幣似的,中國(guó)人對(duì)域名的瘋狂,讓世界為止震撼!據(jù)說(shuō)6位數(shù)以下的數(shù)字COM域名都被搶光了!雙拼COM域名也絕了。看到這種情況,我真的想說(shuō),大家別著急!這也許又是一場(chǎng)炒作而已,想要進(jìn)去

Public @ 2010-08-29 16:00:24

網(wǎng)站流量超標(biāo)排查

網(wǎng)站出現(xiàn)流量超標(biāo)時(shí)分析及解決思路為:查看網(wǎng)站訪(fǎng)問(wèn)統(tǒng)計(jì)---->結(jié)合訪(fǎng)問(wèn)統(tǒng)計(jì)分析網(wǎng)站訪(fǎng)問(wèn)日志---->確定原因采取相應(yīng)措施。一.查看網(wǎng)站訪(fǎng)問(wèn)統(tǒng)計(jì)1. 登錄到虛擬主機(jī)管理面板,點(diǎn)擊“訪(fǎng)問(wèn)統(tǒng)計(jì)”圖片.png2.首先查看訪(fǎng)問(wèn)統(tǒng)計(jì)中瀏覽器與非瀏覽器流量確定流量類(lèi)型。圖片.png3.根據(jù)流量類(lèi)型詳細(xì)查看訪(fǎng)問(wèn)統(tǒng)計(jì)數(shù)據(jù):3.1如是瀏覽器流量占用高,可查看圖片.png圖片.png圖片.png圖片.png

Public @ 2015-01-11 16:00:47

虛擬主機(jī)亂碼目錄文件刪除(適用Linux系統(tǒng))

如果您的虛擬主機(jī)目錄文件存在亂碼或無(wú)法刪除的問(wèn)題,可以嘗試以下步驟解決: 1. 進(jìn)入虛擬主機(jī)的控制面板,找到“文件管理器”或“FTP管理器”等相關(guān)工具,嘗試刪除亂碼文件或文件夾。如果無(wú)法刪除,繼續(xù)下一步。 2. 登錄虛擬主機(jī)的Linux系統(tǒng),使用命令行工具進(jìn)入目標(biāo)文件夾。例如,要進(jìn)入網(wǎng)站根目錄的命令為: ```cd /home/username/public_html/``` 其中,`/h

Public @ 2023-06-11 01:50:30

更多您感興趣的搜索

0.437487s