1.JS 部分 :
함수 swf (src, w, h) {
html = '';
html+= '<객체 classid = clsid : d27cdb6e-ae6d-11cf-96b8-44453540000 codebase = http : //fpdownload.macromedia.com/pub/shockwave/cabs/flash/flash/swflash.cab#version=8,0,0,0,0,0,0,0 높이 = '+h+'id = main> ';
html += '<param name = allistcriptAccess value = samedomain />';
html+= '<param name = movie value ='+src+' />';
html += '<param name = quality value = high />';
html += '<param name = wmode value = Transparent />';
html+= '<embed src = main.swf 품질 = 높은 bgcolor =#cc6600 너비 ='+w+'height ='+h+'name = main align = center alliginscriptAccess = samedomain type = application/x-shockwave-flash pluginspage = http : //www.macromedia.com/gegflashplashplayer repplayplayerplayer.
html += '<// object>';
document.write (html);
}
2. 调用部分
<cript> swf ( 'http://www.vevb.com/benner.swf' ,'1004', '159') </script>