Home > Web Front-end > JS Tutorial > body text

js calls flash effect code_javascript skills

WBOY
Release: 2016-05-16 19:05:02
Original
1160 people have browsed it
复制代码 代码如下:

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)

}
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template