1.JS部分:
関数SWF(SRC、W、H){
html = '';
html+= '<object classid = clsid:d27cdb6e-ae6d-11cf-96b8-4445553540000 codebase = http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ision = 8,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0. id = main> ';
html += '<param name = alscriptaccess value = samedomain />';
html+= '<param name = movie value ='+src+' />';
html += '<param name = quality value = high />';
html += '<param name = wmode value = transparent />';
html+= '<embd src = main.swf quality = high bgcolor =#cc6600 width ='+w+'height ='+h+'name = main align = center alowscriptAccess = samedomain type = application/x-ockwave-flash pluginspage = http://ww.macromedia.com.
html += '<// object>';
document.write(html);
}
2.调用部分
<script> swf( 'http://www.vevb.com/benner.swf','1004'、'159')</script>