Flash插件支持本地和网上下载


<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>
1.<html> 2.<body> 3.<% 4. //SysDownloadFlashFashion等于0时就是本地下载 5. if(SysDownloadFlashFashion==0){%> 6. <div id="LoGo" solid #606080;cursor:pointer;" align="center"> 7. <div id="hideMarquee">正在检测插件<br><br></div> 8. <marquee id="marquee" 0px; white-space: nowrap;border:1px solid #606080;' direction="right" scrollamount=20 height='20' width='220'> 9. <div>■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■</div> 10. </marquee> 11. </div> 12. <div id="Chrome" 13. <%}else{%> 14. <div id="Chrome"> 15. <%}%> 16. <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 17. id="uploadfile" width="800" height="435" 18. <%if(SysDownloadFlashFashion==1){%> 19. codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab" 20. <%}else{ %> 21. codebase"plugins"> 22. <% } %> 23. <param name="wmode" value="opaque" /> 24. <param name="movie" value="uploadfile.swf" /> 25. <param name="quality" value="high" /> 26. <param name="bgcolor" value="#869ca7" /> 27. <param name="allowScriptAccess" value="sameDomain" /> 28. <embed src="uploadfile.swf" wmode="opaque" quality="high" bgcolor="#869ca7" 29. width="800" height="435" name="uploadfile" align="middle" id="uploadfile" 30. play="true" 31. loop="false" 32. quality="high" 33. allowScriptAccess="sameDomain" 34. type="application/x-shockwave-flash" 35. <%if(SysDownloadFlashFashion==1){%> 36. pluginspage="http://www.adobe.com/go/getflashplayer" 37. <% }else{%> 38. pluginspage="<%=context%>/plugins/Install_Flash_Player_9_Plugin.exe"> 39. <% } %> 40. </embed> 41. </object> 42. </div> 43.</body> 44.[removed] 45.var tishi=0; 46.function InstallFlash() 47.{ 48. if((brower().isIE) || (brower().isIE7) || (brower().isIE8) && <%=SysDownloadFlashFashion%>==0) 49. { 50. LoGo.onclick=function() 51. { 52. if(tishi==0) 53. { 54. [removed].href="plugins/install_flash_player_10_active_x.exe"; 55. alert(message.uploadfile_js_IE_plugins_downLoad_remind); 56. tishi=-1; 57. } 58. } 59. } 60. if(brower().isFirefox && <%=SysDownloadFlashFashion%>==0) 61. { 62. uploadfile.onclick=function() 63. { 64. if(tishi==0) 65. { 66. [removed].href="plugins/Install_Flash_Player_9_Plugin.exe"; 67. alert(message.uploadfile_js_fireFox_plugins_downLoad_remind); 68. tishi=-1; 69. } 70. } 71. } 72. if(brower().isChrome && <%=SysDownloadFlashFashion%>==0) 73. { 74. Chrome.onmouseover=function() 75. { 76. if(tishi==0) 77. { 78. [removed].href="plugins/Install_Flash_Player_9_Plugin.exe"; 79. alert(message.uploadfile_js_Chrome_plugins_downLoad_remind); 80. tishi=-1; 81. } 82. } 83. } 84.} 85.[removed] 86.[removed] 87.var swf = false; 88.if((brower().isIE) || (brower().isIE7) || (brower().isIE8)) 89.{ 90. try 91. { 92. swf = new ActiveXObject('ShockwaveFlash.ShockwaveFlash');//IE已经安装Flash插件 93. if(swf) 94. { 95. LoGo.style.display="none"; 96. Chrome.style.display="block"; 97. } 98. } 99. catch(e)//没有安装Flash插件 100. { 101. swf = false; 102. marquee.style.display="none"; 103. hideMarquee[removed]=message.uploadfile_js_hideMarquee_remind; 104. hideMarquee.style.cursor="hand"; 105. } 106.} 107.else if((brower().isFirefox) || (brower().isChrome)) 108.{ 109. LoGo.style.display="none"; 110. Chrome.style.display="block"; 111. swf = navigator.plugins["Shockwave Flash"];//FireFox,Chrome 112.} 113.if(!swf) 114.{ 115. InstallFlash(); 116.} 117.[removed] 118.</html>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值