background preloader

Tiny Scrollbar: A lightweight jQuery plugin

Tiny Scrollbar: A lightweight jQuery plugin
Magnis dis parturient montes Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut vitae velit at velit pretium sodales. Maecenas egestas imperdiet mauris, vel elementum turpis iaculis eu. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Vivamus sed tellus quis orci dignissim scelerisque nec vitae est. Adipiscing risus Quisque vel felis ligula. Aliquam accumsan aliquam urna, id vulputate ante posuere eu.

Select2 2.0 Gets or sets the selection. If the value parameter is not specified, the id attribute of the currently selected element is returned. If the value parameter is specified it will become the current selection. val method invoked on a single-select with an unset value will return "", while a val method invoked on an empty multi-select will return []. Example: alert("Selected value is: "+$("#e8").select2("val")); $("#e8").select2("val", "CA"); Notice that in order to use this method you must define the initSelection function in the options so Select2 knows how to transform the id of the object you pass in val() to the full object it needs to render selection. Gets or sets the selection. data method invoked on a single-select with an unset value will return null, while a data method invoked on an empty multi-select will return []. Reverts changes to DOM done by Select2. Opens the dropdown. Closes the dropdown. Notifies Select2 that a drag and drop sorting operation has started. change val added object

広大なカンバスを使って次々にコンテンツをスライドさせるスクリプト -jmpress.js 一枚の広大なカンバスにウェブサイトを設置するように、各コンテンツをダイナミックなスライドのアニメーションで表示するjQueryのプラグインを紹介します。 jmpress.js jmpress.jsのデモ まずは、そのダイナミックなアニメーションが楽しめるデモページから紹介します。 デモページ 動きの仕組みは、下記ページを見るとよく分かると思います。 jmpress.jsの動きの仕組みのデモ デモは他にもたくさんあります。 Simple シンプルなデモ。 Vaction 写真を使ったデモ。 Animation さまざまなアニメーションが試せます。 Automatic Layout レイアウトも変幻自在です。 Nested Templates ネストしたコンテンツにも対応。 Zoomable マウスホイールとキーボードで段階的に拡大・縮小。 デザインはjQuery UIのテーマにも対応しており、さまざまなデザインが簡単に利用できます。 テーマ左上から、base、sunny、le-frog、ui-darkness 対応ブラウザは、下記の通りです。 Chrome/ChromiumSafariFirefoxIEOperaiPad impress.jsからの移行 jmpress.jsは「impress.js」のjQuery版で、impress.jsの特徴全てと更に多くの機能を備えています。 impressのデモをjmpress.jsで動かしたデモ jmpress.jsの使い方 ルートとなるdiv要素に「id="jmpress"」をつけ、各コンテンツをdiv要素で配置します。 JavaScript 対象となるコンテンツをjQueryのセレクタで指定し、jmpressを実行します。 スライドアニメーションの設定 スライドアニメーションは個々の要素に設定します。 詳しい実装方法は、ドキュメントが用意されています。 jmpress.js -Docs

スクロールするとカーテンが上がるようにパネルが非同期で動くページが作れるjQueryプラグイン「Curtain.js Curtain.js スクロールするとカーテンが上がるようにパネルが非同期で動くページが作れるjQueryプラグイン「Curtain.js」単なるスクロールする縦長ページではなく、スクロールするとブロック要素が別々に動いて面白い演出が作れます。左下のナビゲーションでページ送りをしたりも出来るみたい 今なら、これを使ってサイトを作れば、玄人なWEB業界の人も目を丸くするかもしれませんね。 関連エントリ ページ内スクロールならコレにおまかせ!なjQueryプラグイン「Page Scroller Page Scroller: A Simple Page Scrolling Plugin ページ内スクロールならコレにおまかせ!なjQueryプラグイン「Page Scroller」。ページ内を上や下に移動できるだけではなく、ページ内のマークアップを読み込んでナビゲーションを作ってくれた上でスクロールできたりもしますjQueryプラグインなので、$('#main').pageScroller(); みたいに呼ぶだけです ページの左サイドにナビゲーションを表示する例 綺麗なスキンがかぶって表示されます 上下矢印のナビゲーションも可能 サイドではなく、ページトップにナビゲーションを設定することも可能 右サイドにも移動可能 なかなか便利で使えそうですね。 関連エントリ 業務システムに単なるCSVもリッチに表現「js-tables js-tablesはCSV形式のテキストをフィルタリングやソートに対応したテーブル表示にしてくれるjQueryプラグインです。 js-tablesは業務システムで使えそうなjQueryプラグインです。CSVファイルやCSVのテキストを渡してフィルタリングや並び替えに対応したテーブルを表示してくれます。 サンプルです。元データはCSVファイルとなっています。 カラムごとに入っているデータをグルーピングして表示します。 end tagと入っているデータだけ抽出しました。 フィルタリングはインクリメンタルに行われます。 任意のCSVファイルを指定してテーブル化できます。 実際の使い方です。 CSVを表示する場合にはYahoo! js-tablesはJavaScript製、jQueryプラグインのオープンソース・ソフトウェア(Apache License 2.0)です。 MOONGIFTは読者の皆さまのサポートによって運営されています。 MOONGIFTはこう見る js-tablesは編集機能がないので、あくまでも閲覧向けの機能となります。 Webベースで大量のデータを表示すると動作が重たくなったり、最悪ブラウザが固まってしまうことがあります。 デモ:CSV Viewer

Related: