This repository has been archived by the owner on Nov 27, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 739
/
index.html
755 lines (747 loc) · 36.6 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>SWFObject 2 HTML and JavaScript generator v1.2</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!--
SWFObject 2 HTML and JavaScript generator v1.2 <http://code.google.com/p/swfobject/>
Copyright (c) 2007-2009 Geoff Stearns, Michael Williams, and Bobby van der Sluis
This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
-->
<style type="text/css" media="screen">
body { width:780px; }
.col1, .col2, .col3, .col4 { float:left; display:inline; }
.col1 { width:150px; }
.col2 { width:600px; }
.col3 { width:120px; }
.col4 { width:180px; }
.help, .clear { clear:left; }
div.clear { height:1px; }
#alternativeContent, #output { width:760px; }
#publishingMethodHelp, #alternativeContentHelp, #replaceIdHelp { display:none; width:700px; }
#toggleReplaceId, #isIdReq, #toggleAttsParamsContainer { display:none; }
* { font-family:"Lucida Grande","Lucida Sans Unicode",Verdana,sans-serif; font-size:12px; line-height:21px; }
textarea { font-family:Courier, monospace; line-height:14px; }
div { vertical-align:text-bottom; }
fieldset { margin:6px 0; }
input { line-height:normal; }
h1 { font-size:18px; }
a { color:blue; }
.info { border-bottom:1px dotted #666; cursor:help; }
.req { color:red; }
.note { font-size:10px; color:#666; }
.help { margin:0 0 10px; padding:10px 10px 0; border:1px solid #ccc; background-color:#ffc; }
.help h2, .help h3, .help p, .help ul, .help li { margin:0; font-size:11px; line-height:14px; }
.help h2, .help p, .help ul { padding-bottom:10px; }
.help h3 { color:#666; }
</style>
<script type="text/javascript">
//<![CDATA[
var flashvarsTotal = 1;
function generateOutput() {
var so = document.getElementById("swfobject").value;
var pm = document.getElementById("publishingMethod").selectedIndex; // 1 = dynamic, 0 = static
var swf = document.getElementById("swf").value;
var w = document.getElementById("width").value;
var h = document.getElementById("height").value;
var u = document.getElementById("unit").selectedIndex; // 1 = percentage, 0 = pixels
if (u) {
w += "%";
h += "%";
}
var maj = document.getElementById("major").value;
var min = document.getElementById("minor").value;
var rel = document.getElementById("release").value;
var xi = document.getElementById("expressInstall").checked;
var xis = document.getElementById("expressInstallSwf").value;
var rid = document.getElementById("replaceId").value;
var id = document.getElementById("attId").value;
var nam = document.getElementById("attName").value;
var cls = document.getElementById("attClass").value;
var ali = document.getElementById("align").value;
var pl = document.getElementById("play").value;
var lp = document.getElementById("loop").value;
var men = document.getElementById("menu").value;
var qua = document.getElementById("quality").value;
var sca = document.getElementById("scale").value;
var sal = document.getElementById("salign").value;
var wmd = document.getElementById("wmode").value;
var bgc = document.getElementById("bgcolor").value;
var dfn = document.getElementById("devicefont").value;
var stb = document.getElementById("seamlesstabbing").value;
var slc = document.getElementById("swliveconnect").value;
var afs = document.getElementById("allowfullscreen").value;
var asa = document.getElementById("allowscriptaccess").value;
var anw = document.getElementById("allownetworking").value;
var bas = document.getElementById("base").value;
var doct = document.getElementById("htmlTemplate").value;
var chen = document.getElementById("charEncoding").value;
var ac = document.getElementById("alternativeContent").value;
var o;
var e = " />";
if (doct == "html4transitional") {
o = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">";
o += "\n<html>";
e = ">";
}
else if (doct == "html4strict") {
o = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">";
o += "\n<html>";
e = ">";
}
else if (doct == "xhtml1transitional") {
o = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";
o += "\n<html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en\" xml:lang=\"en\">";
}
else {
o = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">";
o += "\n<html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en\" xml:lang=\"en\">";
}
o += "\n\t<head>";
o += "\n\t\t<title></title>";
o += "\n\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=" + chen + "\"" + e;
o += "\n\t\t<scr" + "ipt type=\"text/javascript\" src=\"" + so + "\"></scr" + "ipt>";
o += "\n\t\t<scr" + "ipt type=\"text/javascript\">";
if (pm) {
o += "\n\t\t\tvar flashvars = {};";
for (var i = 1; i < flashvarsTotal + 1; i++) {
var fvName = document.getElementById("flashvarsName" + i).value;
var fvValue = document.getElementById("flashvarsValue" + i).value;
if (fvName != "" && fvValue != "") {
o += "\n\t\t\tflashvars." + fvName + " = \"" + fvValue + "\";";
}
}
o += "\n\t\t\tvar params = {};";
if (pl != "0") { o += "\n\t\t\tparams.play = \"" + pl + "\";"; }
if (lp != "0") { o += "\n\t\t\tparams.loop = \"" + lp + "\";"; }
if (men != "0") { o += "\n\t\t\tparams.menu = \"" + men + "\";"; }
if (qua != "0") { o += "\n\t\t\tparams.quality = \"" + qua + "\";"; }
if (sca != "0") { o += "\n\t\t\tparams.scale = \"" + sca + "\";"; }
if (sal != "0") { o += "\n\t\t\tparams.salign = \"" + sal + "\";"; }
if (wmd != "0") { o += "\n\t\t\tparams.wmode = \"" + wmd + "\";"; }
if (bgc != "") { o += "\n\t\t\tparams.bgcolor = \"" + bgc + "\";"; }
if (dfn != "0") { o += "\n\t\t\tparams.devicefont = \"" + dfn + "\";"; }
if (stb != "0") { o += "\n\t\t\tparams.seamlesstabbing = \"" + stb + "\";"; }
if (slc != "0") { o += "\n\t\t\tparams.swliveconnect = \"" + slc + "\";"; }
if (afs != "0") { o += "\n\t\t\tparams.allowfullscreen = \"" + afs + "\";"; }
if (asa != "0") { o += "\n\t\t\tparams.allowscriptaccess = \"" + asa + "\";"; }
if (anw != "0") { o += "\n\t\t\tparams.allownetworking = \"" + anw + "\";"; }
if (bas != "") { o += "\n\t\t\tparams.base = \"" + bas + "\";"; }
o += "\n\t\t\tvar attributes = {};";
if (id != "") { o += "\n\t\t\tattributes.id = \"" + id + "\";"; }
if (nam != "") { o += "\n\t\t\tattributes.name = \"" + nam + "\";"; }
if (cls != "") { o += "\n\t\t\tattributes.styleclass = \"" + cls + "\";"; }
if (ali != "0") { o += "\n\t\t\tattributes.align = \"" + ali + "\";"; }
var xiv = xi ? "\"" + xis + "\"" : false;
o += "\n\t\t\tswfobject.embedSWF(\"" + swf + "\", \"" + rid + "\", \"" + w + "\", \"" + h + "\", \"" + maj + "." + min + "." + rel + "\", " + xiv + ", flashvars, params, attributes);"
}
else {
var xiv = xi ? ", \"" + xis + "\"" : "";
o += "\n\t\t\tswfobject.registerObject(\"" + id + "\", \"" + maj + "." + min + "." + rel + "\"" + xiv + ");";
}
o += "\n\t\t</scr" + "ipt>";
o += "\n\t</head>";
o += "\n\t<body>";
if (pm) {
o += "\n\t\t<div id=\"" + rid + "\">";
o += "\n\t\t\t" + ac.replace(/\n/g, "\n\t\t\t");
o += "\n\t\t</div>";
}
else {
var atts = "";
if (id != "") { atts += " id=\"" + id + "\""; }
if (nam != "") { atts += " name=\"" + nam + "\""; }
if (cls != "") { atts += " class=\"" + cls + "\""; }
if (ali != "0") { atts += " align=\"" + ali + "\""; }
o += "\n\t\t<div>";
o += "\n\t\t\t<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\"" + w + "\" height=\"" + h + "\"" + atts + ">";
o += "\n\t\t\t\t<param name=\"movie\" value=\"" + swf + "\"" + e;
if (pl != "0") { o += "\n\t\t\t\t<param name=\"play\" value=\"" + pl + "\"" + e; }
if (lp != "0") { o += "\n\t\t\t\t<param name=\"loop\" value=\"" + lp + "\"" + e; }
if (men != "0") { o += "\n\t\t\t\t<param name=\"menu\" value=\"" + men + "\"" + e; }
if (qua != "0") { o += "\n\t\t\t\t<param name=\"quality\" value=\"" + qua + "\"" + e; }
if (sca != "0") { o += "\n\t\t\t\t<param name=\"scale\" value=\"" + sca + "\"" + e; }
if (sal != "0") { o += "\n\t\t\t\t<param name=\"salign\" value=\"" + sal + "\"" + e; }
if (wmd != "0") { o += "\n\t\t\t\t<param name=\"wmode\" value=\"" + wmd + "\"" + e; }
if (bgc != "") { o += "\n\t\t\t\t<param name=\"bgcolor\" value=\"" + bgc + "\"" + e; }
if (dfn != "0") { o += "\n\t\t\t\t<param name=\"devicefont\" value=\"" + dfn + "\"" + e; }
if (stb != "0") { o += "\n\t\t\t\t<param name=\"seamlesstabbing\" value=\"" + stb + "\"" + e; }
if (slc != "0") { o += "\n\t\t\t\t<param name=\"swliveconnect\" value=\"" + slc + "\"" + e; }
if (afs != "0") { o += "\n\t\t\t\t<param name=\"allowfullscreen\" value=\"" + afs + "\"" + e; }
if (asa != "0") { o += "\n\t\t\t\t<param name=\"allowscriptaccess\" value=\"" + asa + "\"" + e; }
if (anw != "0") { o += "\n\t\t\t\t<param name=\"allownetworking\" value=\"" + anw + "\"" + e; }
if (bas != "") { o += "\n\t\t\t\t<param name=\"base\" value=\"" + bas + "\"" + e; }
var fvrs = "";
for (var i = 1; i < flashvarsTotal + 1; i++) {
var fvName = document.getElementById("flashvarsName" + i).value;
var fvValue = document.getElementById("flashvarsValue" + i).value;
if (fvName != "" && fvValue != "") {
if (fvrs != "") { fvrs += "&" };
fvrs += fvName + "=" + fvValue;
}
}
if (fvrs != "") { o += "\n\t\t\t\t<param name=\"flashvars\" value=\"" + fvrs + "\"" + e; }
o += "\n\t\t\t\t<!--[if !IE]>-->";
var atts2 = "";
if (cls != "") { atts2 += " class=\"" + cls + "\""; }
if (ali != "0") { atts2 += " align=\"" + ali + "\""; }
o += "\n\t\t\t\t<object type=\"application/x-shockwave-flash\" data=\"" + swf + "\" width=\"" + w + "\" height=\"" + h + "\"" + atts2 + ">";
if (pl != "0") { o += "\n\t\t\t\t\t<param name=\"play\" value=\"" + pl + "\"" + e; }
if (lp != "0") { o += "\n\t\t\t\t\t<param name=\"loop\" value=\"" + lp + "\"" + e; }
if (men != "0") { o += "\n\t\t\t\t\t<param name=\"menu\" value=\"" + men + "\"" + e; }
if (qua != "0") { o += "\n\t\t\t\t\t<param name=\"quality\" value=\"" + qua + "\"" + e; }
if (sca != "0") { o += "\n\t\t\t\t\t<param name=\"scale\" value=\"" + sca + "\"" + e; }
if (sal != "0") { o += "\n\t\t\t\t\t<param name=\"salign\" value=\"" + sal + "\"" + e; }
if (wmd != "0") { o += "\n\t\t\t\t\t<param name=\"wmode\" value=\"" + wmd + "\"" + e; }
if (bgc != "") { o += "\n\t\t\t\t\t<param name=\"bgcolor\" value=\"" + bgc + "\"" + e; }
if (dfn != "0") { o += "\n\t\t\t\t\t<param name=\"devicefont\" value=\"" + dfn + "\"" + e; }
if (stb != "0") { o += "\n\t\t\t\t\t<param name=\"seamlesstabbing\" value=\"" + stb + "\"" + e; }
if (slc != "0") { o += "\n\t\t\t\t\t<param name=\"swliveconnect\" value=\"" + slc + "\"" + e; }
if (afs != "0") { o += "\n\t\t\t\t\t<param name=\"allowfullscreen\" value=\"" + afs + "\"" + e; }
if (asa != "0") { o += "\n\t\t\t\t\t<param name=\"allowscriptaccess\" value=\"" + asa + "\"" + e; }
if (anw != "0") { o += "\n\t\t\t\t\t<param name=\"allownetworking\" value=\"" + anw + "\"" + e; }
if (bas != "") { o += "\n\t\t\t\t\t<param name=\"base\" value=\"" + bas + "\"" + e; }
if (fvrs != "") { o += "\n\t\t\t\t\t<param name=\"flashvars\" value=\"" + fvrs + "\"" + e; }
o += "\n\t\t\t\t<!--<![endif]-->";
o += "\n\t\t\t\t\t" + ac.replace(/\n/g, "\n\t\t\t\t\t");
o += "\n\t\t\t\t<!--[if !IE]>-->";
o += "\n\t\t\t\t</object>";
o += "\n\t\t\t\t<!--<![endif]-->";
o += "\n\t\t\t</object>";
o += "\n\t\t</div>";
}
o += "\n\t</body>";
o += "\n</html>";
document.getElementById("output").value = o;
}
function clearOutput() {
document.getElementById("output").value = "";
}
function checkRequired() {
var pm = document.getElementById("publishingMethod").selectedIndex; // 1 = dynamic, 0 = static
var a1 = document.getElementById("isIdReq");
var a2 = document.getElementById("toggleReplaceId");
var attId = document.getElementById("attId");
var replaceId = document.getElementById("replaceId");
if (pm) {
if (replaceId.value == "") { replaceId.value = "myAlternativeContent"; }
if (attId.value == "myFlashContent") { attId.value = ""; }
if (a1.style.display != "none") { a1.style.display = "none"; }
if (a2.style.display != "block") { a2.style.display = "block"; }
}
else {
if (attId.value == "") { attId.value = "myFlashContent"; }
if (replaceId.value == "myAlternativeContent") { replaceId.value = ""; }
if (a1.style.display != "inline") { a1.style.display = "inline"; }
if (a2.style.display != "none") { a2.style.display = "none"; }
}
}
function checkAltContent() {
var doct = document.getElementById("htmlTemplate").value;
var acn = "<a href=\"http://www.adobe.com/go/getflashplayer\">\n\t<img src=\"http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif\" alt=\"Get Adobe Flash player\"";
if (doct == "html4transitional" || doct == "html4strict") {
acn += ">\n</a>";
}
else {
acn += " />\n</a>";
}
var ac = document.getElementById("alternativeContent").value;
if (ac == "" ||
ac == "<a href=\"http://www.adobe.com/go/getflashplayer\">\n\t<img src=\"http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif\" alt=\"Get Adobe Flash player\">\n</a>" ||
ac == "<a href=\"http://www.adobe.com/go/getflashplayer\">\n\t<img src=\"http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif\" alt=\"Get Adobe Flash player\" />\n</a>") {
document.getElementById("alternativeContent").value = acn;
}
}
function toggleSection(toggle, toggleable) {
if (toggleable.style.display == "" || toggleable.style.display == "inline") {
toggleable.style.display = "none";
toggle.firstChild.nodeValue = "+";
}
else {
toggleable.style.display = "inline";
toggle.firstChild.nodeValue = "-";
}
}
function toggleAttsParamsCont() {
var tb = document.getElementById("toggleAttsParams");
var tc = document.getElementById("toggleAttsParamsContainer");
if (tc.style.display == "" || tc.style.display == "none") {
tc.style.display = "block";
tb.firstChild.nodeValue = "less";
}
else {
tc.style.display = "none";
tb.firstChild.nodeValue = "more";
}
}
function addFlashvar() {
var t = flashvarsTotal;
var h = "\n<div class=\"col1 clear\"> </div>";
h += "\n<div class=\"col3\"><label for=\"flashvarsName" + t + "\">name:</label></div>";
h += "\n<div class=\"col4\"><input type=\"text\" id=\"flashvarsName" + t + "\" name=\"flashvarsName" + t + "\" value=\"\" size=\"15\" /></div>";
h += "\n<div class=\"col3\"><label for=\"flashvarsValue" + t + "\">value:</label></div>";
h += "\n<div class=\"col4\"><input type=\"text\" id=\"flashvarsValue" + t + "\" name=\"flashvarsValue" + t + "\" value=\"\" size=\"15\" /></div>";
var m = document.getElementById("addFlashvarMarker");
var d = document.createElement("div");
d.innerHTML = h;
m.parentNode.insertBefore(d, m);
}
window.onload = function() {
checkRequired();
document.getElementById("publishingMethod").onchange = function() {
checkRequired();
};
checkAltContent();
document.getElementById("htmlTemplate").onchange = function() {
checkAltContent();
};
document.getElementById("togglePublishingMethodHelp").onclick = function() {
var el = document.getElementById("publishingMethodHelp");
el.style.display = el.style.display == "block" ? "none" : "block";
return false;
};
document.getElementById("toggleAlternativeContentHelp").onclick = function() {
var el = document.getElementById("alternativeContentHelp");
el.style.display = el.style.display == "block" ? "none" : "block";
return false;
};
document.getElementById("toggleReplaceIdHelp").onclick = function() {
var el = document.getElementById("replaceIdHelp");
el.style.display = el.style.display == "block" ? "none" : "block";
return false;
};
document.getElementById("toggle1").onclick = function() {
toggleSection(this, document.getElementById("toggleable1"));
return false;
};
document.getElementById("toggle2").onclick = function() {
toggleSection(this, document.getElementById("toggleable2"));
return false;
};
document.getElementById("toggle3").onclick = function() {
toggleSection(this, document.getElementById("toggleable3"));
return false;
};
document.getElementById("toggle4").onclick = function() {
toggleSection(this, document.getElementById("toggleable4"));
return false;
};
document.getElementById("toggleAttsParams").onclick = function() {
toggleAttsParamsCont();
return false;
};
document.getElementById("addFlashvar").onclick = function() {
flashvarsTotal++;
addFlashvar();
return false;
};
document.getElementById("generate").onclick = function() {
generateOutput();
};
document.getElementById("clear").onclick = function() {
clearOutput();
};
};
//]]>
</script>
</head>
<body>
<h1>SWFObject 2 HTML and JavaScript generator v1.2</h1>
<div class="note">Asterisk (<span class="req">*</span>) indicates required field</div>
<fieldset>
<legend>SWFObject configuration [ <a id="toggle1" href="#">-</a> ]</legend>
<div id="toggleable1">
<div class="col1">
<label for="swfobject" title="The relative or absolute path to your swfobject.js file" class="info">SWFObject (.js):</label> <span class="req">*</span>
</div>
<div class="col2">
<input type="text" id="swfobject" name="swfobject" value="swfobject.js" size="20" />
</div>
<div class="clear"> </div>
<div class="col1">
<label for="publishingMethod">Publishing method:</label> <span class="req">*</span>
</div>
<div class="col2">
<select id="publishingMethod" name="publishingMethod">
<option value="static">Static publishing</option>
<option value="dynamic">Dynamic publishing</option>
</select>
<a id="togglePublishingMethodHelp" href="#">what is this?</a>
</div>
<div class="clear"> </div>
<div id="publishingMethodHelp" class="help">
<h2>Static publishing</h2>
<h3>Description</h3>
<p>Embed Flash content and alternative content using standards compliant markup, and use unobtrusive JavaScript to resolve the issues that markup alone cannot solve.</p>
<h3>Pros</h3>
<p>The embedding of Flash content does not rely on JavaScript and the actual authoring of standards compliant markup is promoted.</p>
<h3>Cons</h3>
<p>Does not solve 'click-to-activate' mechanisms in Internet Explorer 6+ and Opera 9+ and is harder to author (without using this generator).</p>
<h2>Dynamic publishing</h2>
<h3>Description</h3>
<p>Create alternative content using standards compliant markup and embed Flash content with unobtrusive JavaScript.</p>
<h3>Pros</h3>
<p>Avoids 'click-to-activate' mechanisms in Internet Explorer 6+ and Opera 9+ and is easy to author (even without using this generator).</p>
<h3>Cons</h3>
<p>The embedding of Flash content relies on JavaScript, so if you have the Flash plug-in installed, but have JavaScript disabled or use a browser that doesn't support JavaScript, you will not be able to see your Flash content, however you will see alternative content instead. Flash content will also not be shown on a device like Sony PSP, which has very poor JavaScript support, and automated tools like RSS readers are not able to pick up Flash content.</p>
</div>
<div class="col1">
<label title="Flash version consists of major, minor and release version" class="info">Detect Flash version:</label> <span class="req">*</span>
</div>
<div class="col2">
<input type="text" id="major" name="major" value="9" size="4" maxlength="2" />
.
<input type="text" id="minor" name="minor" value="0" size="4" maxlength="4" />
.
<input type="text" id="release" name="release" value="0" size="4" maxlength="4" />
</div>
<div class="clear"> </div>
<div class="col1">
<label for="expressInstall" title="The relative or absolute path to your expressInstall.swf file, check checkbox to activate" class="info">Adobe Express Install:</label>
</div>
<div class="col2">
<input type="checkbox" id="expressInstall" name="expressInstall" value="1" />
<input type="text" id="expressInstallSwf" name="expressInstallSwf" value="expressInstall.swf" size="20" />
</div>
<div class="clear"> </div>
<div id="toggleReplaceId">
<div class="col1">
<label for="replaceId">HTML container id:</label> <span class="req">*</span>
</div>
<div class="col2">
<input type="text" id="replaceId" name="replaceId" value="" size="20" />
<a id="toggleReplaceIdHelp" href="#">what is this?</a>
</div>
<div id="replaceIdHelp" class="help">
<p>Specifies the id attribute of the HTML container element that will be replaced with Flash content if enough JavaScript and Flash support is available.</p>
<p>This HTML container will be generated automatically and will embed your alternative HTML content as defined in the HTML section.</p>
</div>
<div class="clear"> </div>
</div>
</div>
</fieldset>
<fieldset>
<legend>SWF definition [ <a id="toggle2" href="#">-</a> ]</legend>
<div id="toggleable2">
<div class="col1">
<label for="swf" title="The relative or absolute path to your Flash content .swf file" class="info">Flash (.swf):</label> <span class="req">*</span>
</div>
<div class="col2">
<input type="text" id="swf" name="swf" value="untitled.swf" size="20" />
</div>
<div class="clear"> </div>
<div class="col1">
<label title="Width x height (unit)" class="info">Dimensions:</label> <span class="req">*</span>
</div>
<div class="col2">
<input type="text" id="width" name="width" value="800" size="6" maxlength="6" />
x
<input type="text" id="height" name="height" value="600" size="6" maxlength="6" />
<select id="unit" name="unit">
<option value="pixels">pixels</option>
<option value="percentage">percentage</option>
</select>
</div>
<div class="clear"> </div>
<div class="col1">
<label for="attId" class="info" title="Uniquely identifies the Flash movie so that it can be referenced using a scripting language or by CSS">Flash content id</label> <span id="isIdReq" class="req">*</span>
</div>
<div class="col2">
<input type="text" id="attId" name="attId" value="" size="15" />
</div>
<div class="clear"> </div>
<div id="toggleAttsParamsContainer">
<div class="col1"><label class="info" title="HTML object element attributes">Attributes:</label></div>
<div class="col3">
<label for="attName" class="info" title="Uniquely names the Flash movie so that it can be referenced using a scripting language">name</label>
</div>
<div class="col4">
<input type="text" id="attName" name="attName" value="" size="15" />
</div>
<div class="clear"> </div>
<div class="col1"> </div>
<div class="col3">
<label for="attClass" class="info" title="Classifies the Flash movie so that it can be referenced using a scripting language or by CSS">class</label>
</div>
<div class="col4">
<input type="text" id="attClass" name="attClass" value="" size="15" />
</div>
<div class="clear"> </div>
<div class="col1"> </div>
<div class="col3">
<label for="align" class="info" title="HTML alignment of the object element. If this attribute is omitted, it by default centers the movie and crops edges if the browser window is smaller than the movie.">align</label>
</div>
<div class="col4">
<select id="align" name="align">
<option value="0">Choose...</option>
<option value="middle">middle</option>
<option value="left">left</option>
<option value="right">right</option>
<option value="top">top</option>
<option value="bottom">bottom</option>
</select>
</div>
<div class="clear"> </div>
<div class="col1">
<label class="info" title="HTML object element nested param elements">Parameters:</label>
</div>
<div class="col3">
<label for="play" class="info" title="Specifies whether the movie begins playing immediately on loading in the browser. The default value is true if this attribute is omitted.">play</label>
</div>
<div class="col4">
<select id="play" name="play">
<option value="0">Choose...</option>
<option value="true">true</option>
<option value="false">false</option>
</select>
</div>
<div class="col3">
<label for="loop" class="info" title="Specifies whether the movie repeats indefinitely or stops when it reaches the last frame. The default value is true if this attribute is omitted.">loop</label>
</div>
<div class="col4">
<select id="loop" name="loop">
<option value="0">Choose...</option>
<option value="true">true</option>
<option value="false">false</option>
</select>
</div>
<div class="clear"> </div>
<div class="col1"> </div>
<div class="col3">
<label for="menu" class="info" title="Shows a shortcut menu when users right-click (Windows) or control-click (Macintosh) the SWF file. To show only About Flash in the shortcut menu, deselect this option. By default, this option is set to true.">menu</label>
</div>
<div class="col4">
<select id="menu" name="menu">
<option value="0">Choose...</option>
<option value="true">true</option>
<option value="false">false</option>
</select>
</div>
<div class="col3">
<label for="quality" class="info" title="Specifies the trade-off between processing time and appearance. The default value is 'high' if this attribute is omitted.">quality</label>
</div>
<div class="col4">
<select id="quality" name="quality">
<option value="0">Choose...</option>
<option value="best">best</option>
<option value="high">high</option>
<option value="medium">medium</option>
<option value="autohigh">autohigh</option>
<option value="autolow">autolow</option>
<option value="low">low</option>
</select>
</div>
<div class="clear"> </div>
<div class="col1"> </div>
<div class="col3">
<label for="scale" class="info" title="Specifies scaling, aspect ratio, borders, distortion and cropping for if you have changed the document's original width and height.">scale</label>
</div>
<div class="col4">
<select id="scale" name="scale">
<option value="0">Choose...</option>
<option value="showall">showall</option>
<option value="noborder">noborder</option>
<option value="exactfit">exactfit</option>
<option value="noscale">noscale</option>
</select>
</div>
<div class="col3">
<label for="salign" class="info" title="Specifies where the content is placed within the application window and how it is cropped.">salign</label>
</div>
<div class="col4">
<select id="salign" name="salign">
<option value="0">Choose...</option>
<option value="tl">tl</option>
<option value="tr">tr</option>
<option value="bl">bl</option>
<option value="br">br</option>
<option value="l">l</option>
<option value="t">t</option>
<option value="r">r</option>
<option value="b">b</option>
</select>
</div>
<div class="clear"> </div>
<div class="col1"> </div>
<div class="col3">
<label for="wmode" class="info" title="Sets the Window Mode property of the Flash movie for transparency, layering, and positioning in the browser. The default value is 'window' if this attribute is omitted.">wmode</label>
</div>
<div class="col4">
<select id="wmode" name="wmode">
<option value="0">Choose...</option>
<option value="window">window</option>
<option value="opaque">opaque</option>
<option value="transparent">transparent</option>
<option value="direct">direct</option>
<option value="gpu">gpu</option>
</select>
</div>
<div class="col3">
<label for="bgcolor" class="info" title="Hexadecimal RGB value in the format #RRGGBB, which specifies the background color of the movie, which will override the background color setting specified in the Flash file.">bgcolor</label>
</div>
<div class="col4">
<input type="text" id="bgcolor" name="bgcolor" value="" size="15" maxlength="7" />
</div>
<div class="clear"> </div>
<div class="col1"> </div>
<div class="col3">
<label for="devicefont" class="info" title="Specifies whether static text objects that the Device Font option has not been selected for will be drawn using device fonts anyway, if the necessary fonts are available from the operating system.">devicefont</label>
</div>
<div class="col4">
<select id="devicefont" name="devicefont">
<option value="0">Choose...</option>
<option value="true">true</option>
<option value="false">false</option>
</select>
</div>
<div class="col3">
<label for="seamlesstabbing" class="info" title="Specifies whether users are allowed to use the Tab key to move keyboard focus out of a Flash movie and into the surrounding HTML (or the browser, if there is nothing focusable in the HTML following the Flash movie). The default value is true if this attribute is omitted.">seamlesstabbing</label>
</div>
<div class="col4">
<select id="seamlesstabbing" name="seamlesstabbing">
<option value="0">Choose...</option>
<option value="true">true</option>
<option value="false">false</option>
</select>
</div>
<div class="clear"> </div>
<div class="col1"> </div>
<div class="col3">
<label for="swliveconnect" class="info" title="Specifies whether the browser should start Java when loading the Flash Player for the first time. The default value is false if this attribute is omitted. If you use JavaScript and Flash on the same page, Java must be running for the FSCommand to work.">swliveconnect</label>
</div>
<div class="col4">
<select id="swliveconnect" name="swliveconnect">
<option value="0">Choose...</option>
<option value="true">true</option>
<option value="false">false</option>
</select>
</div>
<div class="col3">
<label for="allowfullscreen" class="info" title="Enables full-screen mode. The default value is false if this attribute is omitted. You must have version 9,0,28,0 or greater of Flash Player installed to use full-screen mode.">allowfullscreen</label>
</div>
<div class="col4">
<select id="allowfullscreen" name="allowfullscreen">
<option value="0">Choose...</option>
<option value="true">true</option>
<option value="false">false</option>
</select>
</div>
<div class="clear"> </div>
<div class="col1"> </div>
<div class="col3">
<label for="allowscriptaccess" class="info" title="Controls the ability to perform outbound scripting from within a Flash SWF. The default value is 'always' if this attribute is omitted.">allowscriptaccess</label>
</div>
<div class="col4">
<select id="allowscriptaccess" name="allowscriptaccess">
<option value="0">Choose...</option>
<option value="always">always</option>
<option value="sameDomain">sameDomain</option>
<option value="never">never</option>
</select>
</div>
<div class="col3">
<label for="allownetworking" class="info" title="Controls a SWF file's access to network functionality. The default value is 'all' if this attribute is omitted.">allownetworking</label>
</div>
<div class="col4">
<select id="allownetworking" name="allownetworking">
<option value="0">Choose...</option>
<option value="all">all</option>
<option value="internal">internal</option>
<option value="none">none</option>
</select>
</div>
<div class="clear"> </div>
<div class="col1"> </div>
<div class="col3">
<label for="base" class="info" title="Specifies the base directory or URL used to resolve all relative path statements in the Flash Player movie. This attribute is helpful when your Flash Player movies are kept in a different directory from your other files.">base</label>
</div>
<div class="col4">
<input type="text" id="base" name="base" value="" size="15" />
</div>
<div class="clear"> </div>
<div class="col1">
<label class="info" title="Method to pass variables to a Flash movie.">Flashvars:</label> <a id="addFlashvar" href="#">add</a>
</div>
<div class="col3">
<label for="flashvarsName1">name:</label>
</div>
<div class="col4">
<input type="text" id="flashvarsName1" name="flashvarsName1" value="" size="15" />
</div>
<div class="col3">
<label for="flashvarsValue1">value:</label>
</div>
<div class="col4">
<input type="text" id="flashvarsValue1" name="flashvarsValue1" value="" size="15" />
</div>
<div id="addFlashvarMarker"></div>
</div>
<div class="clear"> </div>
<div class="col1"><a id="toggleAttsParams" href="#">more</a></div>
<div class="clear"> </div>
</div>
</fieldset>
<fieldset>
<legend>HTML definition [ <a id="toggle3" href="#">-</a> ]</legend>
<div id="toggleable3">
<div class="col1">
<label for="htmlTemplate">HTML Template:</label>
</div>
<div class="col2">
<select id="htmlTemplate" name="htmlTemplate">
<option value="xhtml1strict">XHTML 1.0 Strict</option>
<option value="xhtml1transitional">XHTML 1.0 Transitional</option>
<option value="html4strict">HTML 4.01 Strict</option>
<option value="html4transitional">HTML 4.01 Transitional</option>
</select>
</div>
<div class="clear"> </div>
<div class="col1">
<label for="charEncoding">Character encoding:</label>
</div>
<div class="col2">
<select id="charEncoding" name="charEncoding">
<option value="iso-8859-1">iso-8859-1</option>
<option value="utf-8">utf-8</option>
</select>
</div>
<div class="clear"> </div>
<div class="col1">
<label for="alternativeContent">Alternative content:</label>
</div>
<div class="col2">
<a id="toggleAlternativeContentHelp" href="#alternativeContentHelp">what is this?</a>
</div>
<div id="alternativeContentHelp" class="help">
<p>The object element allows you to nest alternative content inside of it, which will be displayed if Flash is not installed or supported.
This content will also be picked up by search engines, making it a great tool for creating search-engine-friendly content.</p>
<p>Summarized, you should use alternative content for the following:</p>
<ul>
<li>When you like to create content that is accessible for people who browse the Web without plugins</li>
<li>When you like to create search-engine-friendly content</li>
<li>To tell visitors that they can have a richer user experience by downloading the Flash plugin</li>
</ul>
</div>
<div class="clear"> </div>
<div class="col2">
<textarea id="alternativeContent" name="alternativeContent" rows="6" cols="10"></textarea>
</div>
<div class="clear"> </div>
</div>
</fieldset>
<div class="col1">
<input type="button" class="button" id="generate" name="generate" value="Generate" />
<input type="button" class="button" id="clear" name="clear" value="Clear" />
</div>
<div class="clear"> </div>
<fieldset>
<legend>Generated output [ <a id="toggle4" href="#">-</a> ]</legend>
<div id="toggleable4">
<div class="col2">
<textarea id="output" name="output" rows="32" cols="10"></textarea>
</div>
<div class="clear"> </div>
</div>
</fieldset>
</body>
</html>