Ajaxでタブインタフェースを実現するためのライブラリ
2006年02月22日
CSS Tabs seem to be all the rage with the kids these days. I love the idea of them. It seems that the most popular method of creating tabs using CSS is the Sliding Doors method. They seem to look the coolest and are very easy to implement. However, they're so... static.
Ajax Tabsを使えば次のようなCSSベースでデザインされたタブインタフェースの部品が簡単に作れます。

Ajaxを使ってタブが更新されるため、各タブ内のページ(HTML)は独立したファイルにすることが可能です。
(例えば、page1.html, page2.html, page3.htmlのような感じにページ分け可能)
HTMLソースも次のような感じのシンプルなものになります。
CSSベースでデザイン出来るので独自カスタマイズも容易ですね。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>havocStudios: Ajax Tabs Demo</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="description" content="Demo of havocStudios ajax tabs" />
<meta name="keywords" content="tabs ajax css " />
<style type="text/css" media="screen">@import "tabs.css";</style>
<script src="ajax.js" type="text/javascript"></script>
<script src="tabs.js" type="text/javascript"></script><script type="text/javascript">
function doOnLoad() {
OpenTab("tab_page1", "Page 1", "page1.html", false, '');
}
</script>
</head>
<body onload="doOnLoad()">
<div id="tabContainer">
<div id="tabs">
<ul id="tabList">
</ul>
</div>
<div id="tabPanels"></div>
</div>
</body>
</html>
閉じるボタンなんかも気が利いてます。
投稿者 KJ : 2006年02月22日 11:59
|
![]()
間違いの指摘をしていただける方はメールでお願いします
最新のブログ記事
- 便利なPhotoshopプラグインコレクション
- 2009年1月6日 管理人のブックマーク
- 高級感のあるクールな3Dテキストを作成するPhotoshopチュートリアル
- ウェブ上で動作するweb2.0な関数電卓「web2.0calc.com」
- ハイクオリティなVista風アイコンセット92種「iVista Icon Pack 2」
- 2009年1月5日 管理人のブックマーク
- alert等のウィンドウ内ダイアログを実現するjQueryプラグイン「jQuery Alert Dialogs」
- PHPでWordのdocファイルやPDFをテキストとして読み取る方法
- これさえやればCSSをマスターできるかもしれないCSSチュートリアル&サンプル20
- ライブドアのレコメンデーションエンジン「Cicindela」
- インストール無しで使えるブラウザ上スピードダイヤル




















