1.js 部分:
función swf (src, w, h) {
html = '';
html += '<object classid=clsid:d27cdb6e-ae6d-11cf-96b8-444553540000 codebase=http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0 width='+w+' height='+h+' id = main> ';
html += '<param name = lEtlEdcriptAccess value = samedomain />';
html+= '<param name = Movie Value ='+src+' />';
html += '<param name = calidad valor = high />';
html += '<param name = wmode value = transparent />';
html+= '<incrustar src = main.swf Quality = high bgcolor =#cc6600 width ='+w+'height ='+h+'name = main align = Center LEACTACECESS = samedomain type = Application/x-shockwave-flash pluginspage = http: //wwww.macromedia.com/go/getflashplahplahplahplahpage/http: //wwww.macromedia.com/go/getflashplahplahplahplahyer/>';
html += '<// objeto>';
document.write (html);
}
2. 调用部分
<script> swf ('http://www.vevb.com/benner.swf','1004','159') </script>