特定のパネルをプログラムで開くには、JavaScript 関数を使用します。 たとえば、クリックすると特定のタブ付きのパネルが開かれるボタンをページに配置できます。
Spry ではゼロからカウントを開始するシステムが使用されています。そのため、値 0 は、左端の最初のタブ付きのパネルを表します。 タブ付きのパネルに ID がある場合、ID を使用してパネルを参照することもできます。
次の関数を使用して特定のタブ付きのパネルを開きます。
<button onclick="TabbedPanels1.showPanel(0)" >open first panel</button>
<button onclick="TabbedPanels1.showPanel('tabID')">open panel</button>
<script type="text/javascript">
var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
</script>
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/ja_JP/Spry/1.4/WS69221DB5-2671-4681-BE08-D49CEBC3124B.html