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>
閉じるボタンなんかも気が利いてます。
最新のブログ記事(新着順)
- 2012年2月10日 管理人のブックマーク
- ブラウザ上でPDFを表示するJSライブラリ「PDF.js」
- 次世代の検索フォームを作成するjQuery&CSS3サンプル
- 2012年2月9日 管理人のブックマーク
- faviconを書き換えてfacebookの通知っぽくしてくれるfaviconアラート実装ライブラリ「Tinycon」
- ページめくりを実現するためのjQueryプラグイン集
- 2012年2月8日 管理人のブックマーク
- HTMLをアップするとCSSのスケルトンを自動生成してくれる「bearcss」
- HTML5で綺麗でインタラクティブなグラフが描けるライブラリ「Flotr2」
- 2012年2月7日 管理人のブックマーク
- 過去のエントリ



















間違いの指摘をしていただける方はメール、あるいはTwitterでお願いします(クリック)




