Although there are many JavaScript frameworks available, jQuery has remained the most popular and influential in web design and development. Its main purpose is to simplify the process of writing complex JavaScript functions by bundling them into methods that can be called with just one line of code. This makes it lightweight and easy to extend with free plugins for almost any functionality you ca
jQueryでは通常、背景色や文字色などでの16進数を使った色指定「#ffffff」といった値を アニメーション処理させることは出来ません。(数値化されていない値は処理できない。) これらの色指定をアニメーション処理させるには、値を数値化することが必要になるのですが 簡単にそれらの処理をしてくれるプラグイン「jquery.color.js」というものがあったのでご紹介。 Color Animations ≫Color Animations | jQuery Plugins このプラグインファイルを使うことで16進数で指定された色指定を 「rgb(nn, nn, nn)」の様な感じに変換して処理してくれます。 例えば、 ——————————————————- 白「#ffffff」 → 「rgb(255,255,255)」 黒「#000000」 → 「rgb(0,0,0)」 赤「#ff0000
前の記事「HTML5でモダンブラウザのCSS3バグを回避するためのハック方法」に関連して、jQuery で HTML5 データ属性にユーザーエジェント文字列を格納する方法を調べていました。その結果、ちょっと整理をしておいた方が良いかなと思う点を共有したいと思います。 ご存知の方も多いと思いますが、jQuery には .data() や jQuery.data() という、DOM 要素に データ を紐付けて記憶しておく仕組みが元々ありました。jQuery 1.4.3 からは、 API レベルでの 親和性 が考慮された形で HTML5 data-* 属性を取り込む仕様が導入されました。 HTML5 時代では、クライアント・サイドで実行されるコード量も増え、データ属性を扱う機会もちょくちょく出てくるのではないでしょうか。そこで今回は、 HTML5 data-* 属性のおさらい jQuery Da
jQuery API jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers. If you're new to jQuery, we recommend that you check out the jQuery Learning Center. If you're updating to a newer version of jQuery, be sure to rea
History API を使ってみます。 正確には、History API をクロスブラウザ対応でラップしてある history.js を使ってみます。 history.js は jquery-history を再実装したもので、 jQuery のプラグインとしてしか使えなかったものを汎用的に再実装し、 各種ライブラリへのアダプタを用意したものです。 アダプタは YUI や Prototype などにも対応しているらしいので、 jQuery 以外の JavaScript ライブラリと組み合わせることもできます。 なお、ブラウザの履歴に関する操作は Mozilla のサイトで網羅的に解説されています。 Manipulating the browser history ライブラリの読み込み ブラウザの履歴 (window.history) には back() や go() などの API があ
Memo While there are some legitimate bugs and differences in state handling even in modern browsers, they are relatively small enough now that you can just use the native HTML5 History API. If you intend to support legacy browsers, then History.js is your bet. This notice is here as History.js does not receive enough funding to be maintained, so it exists only in legacy condition for legacy browse
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く