- <ul>
- {php $i=0;}
- {loop $archives $arc}{php $k=$i+1;}
- <li{if $k<2} class="dotline"{/if}><span class="date">{$arc[adddate]}</span><a onClick=(script removed)ShowFLT({$k}) href="(script removed)void(null)">{$arc[title]}</a>
- <p id=lm{$k} style="display: none"><a href="{$arc[url]}">{cut(strip_tags($arc['content']),200)}</a></p></li>
- {php $i++; }
- {/loop}
- </ul>
- <script language="JavaScript">
- var number=2; //定展開至少條目數(shù)
- function lmYC()
- {
- var lbmc;
- for (i=1;i<=number;i++)
- {
- lbmc = eval('lm' + i);
- lbmc.style.display = 'none';
- }
- }
- function ShowFLT(i) {
- lbmc = eval('lm' + i);
- if (lbmc.style.display == 'none')
- {
- lmYC();
- lbmc.style.display = '';
- }
- else {
- lbmc.style.display = 'none';
- }
- }
- </script>