タグ

pluginsとjqueryに関するIanLewisのブックマーク (2)

  • jQuery Splitter Plugin

    The documentation below is for version 1.5.1; see the release notes for the changes from previous versions. Download version 1.5.1 Demos Minimal vertical splitter: Demonstrates minimal code/markup needed to create a splitter. All the styles are included in the HTML file for this example. Vertical splitter: Vertical splitter with fixed height and fluid width. Horizontal splitter: Horizontal splitte

    IanLewis
    IanLewis 2009/05/12
    A resizable splitter plugin for jQuery.
  • ブロックを一発で揃えるシンプルなJavaScript

    2カラムや3カラムのレイアウトのWebページを作るときに、左右のブロック要素の高さをビシッと揃えたい。特に背景を敷いている場合など、コンテンツの内容に応じて高さをしっかり合わせたいケースは少なくない。 CSSでは少々面倒なこの問題を解決してくれる便利なJavaScriptライブラリはすでにいくつかあるが(以前に紹介した「MJL」の機能の1つにもある)、今回は単機能で使いやすい、シンプルなスクリプトを紹介しよう。Web制作を手がけているハムさん作の「jQuery SameHeight Plugin」(jquery.sameHeight-1.1.js)だ。 その名のとおり、JavaScript/Ajaxライブラリ「jQuery」を使って書かれているこのスクリプトは、親要素に対して特定のクラス名を設定するだけでもっとも高い子要素に合わせて高さを自動調整してくれるもの。スクリプトも使い方もごくシン

    ブロックを一発で揃えるシンプルなJavaScript
    IanLewis
    IanLewis 2008/11/18
    A jquery plugin that sets blocks to the same height on a page.
  • 1