Home  >  Article  >  Web Front-end  >  js calls flash effect code_javascript skills

js calls flash effect code_javascript skills

WBOY
WBOYOriginal
2016-05-16 19:05:021148browse
复制代码 代码如下:

function tmh__make_ad_fodder(src, width, height)
{
 src = src.replace(" ", "");
 var TEMP_IMAGE = '';
 var TEMP_FLASH = '    ' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" '
    ' height="$height$" width="$width$"> '
    ' '
    ' '
    ' '
    '    ' wmode="opaque" TYPE="application/x-shockwave-flash" '
    ' PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"> '
    '';
 return (/.swf$/gi.test(src) == true ? TEMP_FLASH : TEMP_IMAGE)
  .replace(/$src$/gi, src)
  .replace(/$width$/gi, width)
  .replace(/$height$/gi, height)

}
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn