51 |
// Common slide style |
// Common slide style |
52 |
var l = document.createElementNS (this.NS_XHTML1, 'link'); |
var l = document.createElementNS (this.NS_XHTML1, 'link'); |
53 |
l.setAttribute ('rel', 'stylesheet'); |
l.setAttribute ('rel', 'stylesheet'); |
54 |
l.setAttribute ('href', this.SLIDE_XBL_BASE+'xhtml2.css'); |
l.setAttribute ('href', |
55 |
|
/* URI-reference== */ |
56 |
|
this.SLIDE_XBL_BASE+'xhtml2.css' |
57 |
|
/* ==URI-reference */); |
58 |
h.appendChild (l); |
h.appendChild (l); |
59 |
|
|
60 |
l = document.createElementNS (this.NS_XHTML1, 'link'); |
l = document.createElementNS (this.NS_XHTML1, 'link'); |
61 |
l.setAttribute ('rel', 'stylesheet'); |
l.setAttribute ('rel', 'stylesheet'); |
62 |
l.setAttribute ('href', this.SLIDE_XBL_BASE+'slide-style.css'); |
l.setAttribute ('href', |
63 |
|
/* URI-reference== */ |
64 |
|
this.SLIDE_XBL_BASE+'slide-style.css' |
65 |
|
/* ==URI-reference */); |
66 |
h.appendChild (l); |
h.appendChild (l); |
67 |
|
|
68 |
// Slide listing style |
// Slide listing style |
69 |
l = document.createElementNS (this.NS_XHTML1, 'link'); |
l = document.createElementNS (this.NS_XHTML1, 'link'); |
70 |
l.setAttribute ('rel', 'stylesheet'); |
l.setAttribute ('rel', 'stylesheet'); |
71 |
l.setAttribute ('href', this.SLIDE_XBL_BASE+'slide-list.css'); |
l.setAttribute ('href', |
72 |
|
/* URI-reference== */ |
73 |
|
this.SLIDE_XBL_BASE+'slide-list.css' |
74 |
|
/* ==URI-reference */); |
75 |
l.setAttribute ('title', 'Slide List'); |
l.setAttribute ('title', 'Slide List'); |
76 |
h.appendChild (l); |
h.appendChild (l); |
77 |
|
|
78 |
// Slide showing style |
// Slide showing style |
79 |
l = document.createElementNS (this.NS_XHTML1, 'link'); |
l = document.createElementNS (this.NS_XHTML1, 'link'); |
80 |
l.setAttribute ('rel', 'stylesheet alternate'); |
l.setAttribute ('rel', 'stylesheet alternate'); |
81 |
l.setAttribute ('href', this.SLIDE_XBL_BASE+'slide-show.css'); |
l.setAttribute ('href', |
82 |
|
/* URI-reference== */ |
83 |
|
this.SLIDE_XBL_BASE+'slide-show.css' |
84 |
|
/* ==URI-reference */); |
85 |
l.setAttribute ('title', 'Slideshow'); |
l.setAttribute ('title', 'Slideshow'); |
86 |
h.appendChild (l); |
h.appendChild (l); |
87 |
} |
} |
123 |
if (n < 0) n = slides.length + n; // -1 = slides.length-1 |
if (n < 0) n = slides.length + n; // -1 = slides.length-1 |
124 |
else if (slides.length <= n) n = 0; |
else if (slides.length <= n) n = 0; |
125 |
for (var i = 0; i < slides.length; i++) { |
for (var i = 0; i < slides.length; i++) { |
126 |
slides[i].setAttribute ('-isCurrentSlide', (i == n ? 'yes' : 'no')); |
slides[i].setAttributeNS (this.NS_SLIDE, 'isCurrentSlide', |
127 |
|
(i == n ? 'yes' : 'no')); |
128 |
} |
} |
129 |
this.currentSlideIndex = n; |
this.currentSlideIndex = n; |
130 |
]]></body> |
]]></body> |
200 |
</binding> |
</binding> |
201 |
<binding id="seqNo"> |
<binding id="seqNo"> |
202 |
<implementation> |
<implementation> |
203 |
<field name="seqNo">[]</field> |
<field name="NS_SLIDE">'urn:x-suika-fam-cx:markup:slide:1'</field> |
204 |
<constructor type="application/x-javascript" xml:space="preserve"><![CDATA[ |
<constructor type="application/x-javascript" xml:space="preserve"><![CDATA[ |
205 |
var t; |
var t; |
206 |
var seqName = this.getAttribute ('name'); |
var seqName = this.getAttribute ('name'); |
213 |
} else { |
} else { |
214 |
t[seqName] = 1; |
t[seqName] = 1; |
215 |
} |
} |
216 |
this.setAttribute ('-seq-no', t[seqName]); |
this.setAttributeNS (this.NS_SLIDE, 's:seq-no', t[seqName]); |
217 |
]]></constructor> |
]]></constructor> |
218 |
</implementation> |
</implementation> |
219 |
</binding> |
</binding> |