1.js 部分:
fonction swf (src, w, h) {
html = '';
html + = '<objet 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 = permetscriptAccess value = samedomain />';
html + = '<param name = film value =' + src + '/>';
html + = '<param name = qualité valeur = high />';
html + = '<param name = wMode value = transparent />';
html + = '<embed src = main.swf qualité = high bgcolor = # cc6600 width =' + w + 'height =' + h + 'name = main align = Center perledcriptAccess = samedomain type = application / x-shockwave-flashspage / httplayer /';
html + = '<// objet>';
Document.Write (HTML);
}
2. 调用部分
<Script> swf ('http://www.vevb.com/benner.swf','1004','159') </cript>