2 * This script contains embed functions for common plugins. This scripts are complety free to use for any purpose.
\r
5 function writeFlash(p) {
\r
7 'D27CDB6E-AE6D-11cf-96B8-444553540000',
\r
8 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0',
\r
9 'application/x-shockwave-flash',
\r
14 function writeShockWave(p) {
\r
16 '166B1BCA-3F9C-11CF-8075-444553540000',
\r
17 'http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0',
\r
18 'application/x-director',
\r
23 function writeQuickTime(p) {
\r
25 '02BF25D5-8C17-4B23-BC80-D3488ABDDC6B',
\r
26 'http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0',
\r
32 function writeRealMedia(p) {
\r
34 'CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA',
\r
35 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0',
\r
36 'audio/x-pn-realaudio-plugin',
\r
41 function writeWindowsMedia(p) {
\r
44 '6BF52A52-394A-11D3-B153-00C04F79FAA6',
\r
45 'http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701',
\r
46 'application/x-mplayer2',
\r
51 function writeEmbed(cls, cb, mt, p) {
\r
54 h += '<object classid="clsid:' + cls + '" codebase="' + cb + '"';
\r
55 h += typeof(p.id) != "undefined" ? 'id="' + p.id + '"' : '';
\r
56 h += typeof(p.name) != "undefined" ? 'name="' + p.name + '"' : '';
\r
57 h += typeof(p.width) != "undefined" ? 'width="' + p.width + '"' : '';
\r
58 h += typeof(p.height) != "undefined" ? 'height="' + p.height + '"' : '';
\r
59 h += typeof(p.align) != "undefined" ? 'align="' + p.align + '"' : '';
\r
63 h += '<param name="' + n + '" value="' + p[n] + '">';
\r
65 h += '<embed type="' + mt + '"';
\r
68 h += n + '="' + p[n] + '" ';
\r
70 h += '></embed></object>';
\r