<html>
<body>
<%
//SysDownloadFlashFashion等于0时就是本地下载
if(SysDownloadFlashFashion==0){%>
<div id="LoGo" style="width:800px;height:435px;border:1px solid #606080;cursor:pointer;" align="center">
<div style="margin-top:180px;" id="hideMarquee">正在检测插件<br><br></div>
<marquee id="marquee" style='padding: 0px; white-space: nowrap;border:1px solid #606080;' direction="right" scrollamount=20 height='20' width='220'>
<div>■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■</div>
</marquee>
</div>
<div id="Chrome" style="display:none">
<%}else{%>
<div id="Chrome">
<%}%>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
id="uploadfile" width="800" height="435"
<%if(SysDownloadFlashFashion==1){%>
codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab"
<%}else{ %>
codebase"plugins">
<% } %>
<param name="wmode" value="opaque" />
<param name="movie" value="uploadfile.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#869ca7" />
<param name="allowScriptAccess" value="sameDomain" />
<embed src="uploadfile.swf" wmode="opaque" quality="high" bgcolor="#869ca7"
width="800" height="435" name="uploadfile" align="middle" id="uploadfile"
play="true"
loop="false"
quality="high"
allowScriptAccess="sameDomain"
type="application/x-shockwave-flash"
<%if(SysDownloadFlashFashion==1){%>
pluginspage="http://www.adobe.com/go/getflashplayer"
<% }else{%>
pluginspage="<%=context%>/plugins/Install_Flash_Player_9_Plugin.exe">
<% } %>
</embed>
</object>
</div>
</body>
<script>
var tishi=0;
function InstallFlash()
{
if((brower().isIE) || (brower().isIE7) || (brower().isIE8) && <%=SysDownloadFlashFashion%>==0)
{
LoGo.onclick=function()
{
if(tishi==0)
{
window.location.href="plugins/install_flash_player_10_active_x.exe";
alert(message.uploadfile_js_IE_plugins_downLoad_remind);
tishi=-1;
}
}
}
if(brower().isFirefox && <%=SysDownloadFlashFashion%>==0)
{
uploadfile.onclick=function()
{
if(tishi==0)
{
window.location.href="plugins/Install_Flash_Player_9_Plugin.exe";
alert(message.uploadfile_js_fireFox_plugins_downLoad_remind);
tishi=-1;
}
}
}
if(brower().isChrome && <%=SysDownloadFlashFashion%>==0)
{
Chrome.onmouseover=function()
{
if(tishi==0)
{
window.location.href="plugins/Install_Flash_Player_9_Plugin.exe";
alert(message.uploadfile_js_Chrome_plugins_downLoad_remind);
tishi=-1;
}
}
}
}
</script>
<SCRIPT LANGUAGE="JavaScript">
var swf = false;
if((brower().isIE) || (brower().isIE7) || (brower().isIE8))
{
try
{
swf = new ActiveXObject('ShockwaveFlash.ShockwaveFlash');//IE已经安装Flash插件
if(swf)
{
LoGo.style.display="none";
Chrome.style.display="block";
}
}
catch(e)//没有安装Flash插件
{
swf = false;
marquee.style.display="none";
hideMarquee.innerHTML=message.uploadfile_js_hideMarquee_remind;
hideMarquee.style.cursor="hand";
}
}
else if((brower().isFirefox) || (brower().isChrome))
{
LoGo.style.display="none";
Chrome.style.display="block";
swf = navigator.plugins["Shockwave Flash"];//FireFox,Chrome
}
if(!swf)
{
InstallFlash();
}
</script>
</html>
Flash插件支持本地和网上下载
最新推荐文章于 2024-03-26 09:54:05 发布