1 |
wakaba |
1.1 |
<!-- HSML Implementation : s:seqNo element displaying for WinIE -->
|
2 |
|
|
<PUBLIC:COMPONENT>
|
3 |
|
|
<PUBLIC:PROPERTY NAME="name" />
|
4 |
|
|
<SCRIPT LANGUAGE="JScript">
|
5 |
|
|
if (!element.document.__HSML_IMPLIE__)
|
6 |
|
|
element.document.__HSML_IMPLIE__ = new Array ();
|
7 |
|
|
if (!element.document.__HSML_IMPLIE__.seqNo)
|
8 |
|
|
element.document.__HSML_IMPLIE__.seqNo = new Array ();
|
9 |
|
|
|
10 |
|
|
<!-- s|seqNo -->
|
11 |
|
|
element.appendChild (document.createTextNode (' (' + incrementSeqNumber (name) + ')'));
|
12 |
|
|
function incrementSeqNumber (name) {
|
13 |
|
|
if (isNaN (element.document.__HSML_IMPLIE__.seqNo[name]))
|
14 |
|
|
element.document.__HSML_IMPLIE__.seqNo[name] = 0;
|
15 |
|
|
return ++element.document.__HSML_IMPLIE__.seqNo[name];
|
16 |
|
|
}
|
17 |
|
|
</SCRIPT>
|
18 |
|
|
</PUBLIC:COMPONENT>
|