代码如下:
function tmh__make_ad_fodder(src, width, height)
{
src = src.replace(" ", "");
var TEMP_IMAGE = '
';
var TEMP_FLASH = '
';
return (/\.swf$/gi.test(src) == true ? TEMP_FLASH : TEMP_IMAGE)
.replace(/\$src\$/gi, src)
.replace(/\$width\$/gi, width)
.replace(/\$height\$/gi, height)
}