Heim  >  Artikel  >  Web-Frontend  >  js调用flash的效果代码_javascript技巧

js调用flash的效果代码_javascript技巧

WBOY
WBOYOriginal
2016-05-16 19:05:021114Durchsuche
复制代码 代码如下:

function tmh__make_ad_fodder(src, width, height)
{
 src = src.replace(" ", "");
 var TEMP_IMAGE = 'js调用flash的效果代码_javascript技巧';
 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)

}
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn