フォルダアイコンをマウスでドラッグ&ドロップすることで、好きな場所に入れ替えることができるというAJAXです。なかなか面白い。 まずはデモ画面、こんな感じです。 Folder tree with Drag and Drop capabilities Demo ご丁寧なことに、フォルダの仮想のアイコンも一緒に移動させることができます。エクスプローラの操作感覚を再現しています。 スクリプト自体はこちらから。 Folder tree with Drag and Drop capabilities
iandeth. Perl, Flash ActionScript, MySQL, Movable Type, システム開発 - そんなテーマのサイトdeth. まずはクロージャ基本形 function setFunc (){ var lex = '1 dayo'; return function (){ return lex }; } var obj = {}; obj.func = setFunc(); trace( lex ); // undefined trace( obj.func() ); // 1 dayo これをループ中におこなうと・・・ // set closure var arr = []; for (var i=0;i<3;i++){ var obj = {}; var lex = i + ' dayo'; obj.func = function (){ return
This is a fun effect I built for Chowhound that does one better for mouseovers. The problem with most menu systems is that they’re really touchy whether you’re too fast or slow with the mouse. The trick is to use a timeout with the effect, so it will wait a fraction of a second to pop-up, and a fraction of a second to go away…just enough to make the effect feel solid and not finicky. I won’t take
通常のマウスオーバーを使うメニューだと、展開まで早すぎる、あるいは遅すぎる場合が多々あるわけですが、このスクリプトだとちょうどいい速度で展開してくれるらしい。 スクリプトの詳細は以下の通り。 Timeout your Mouseovers 上記ページの「Roll over me」の上にマウスを乗せれば展開されます。確かに今までのものよりもスピードやタイミングがちょうどいい感じな気もする。ちょっと一呼吸置いてから展開される感じですね。
図2●作成したクライアントをテスト<br>クライアントから受信したデータをそのまま返送するサーバーを使ってテストした様子。入力データがそのまま表示されるのが分かります。 前回はAjaxの概念や利点を説明し,筆者が作成したAjaxアプリケーションを紹介しました。紹介したものの一つがインクリメンタル検索用アプリケーションです。検索ボタンをクリックして初めて検索される通常のWeb検索とは異なり,インクリメンタル検索はキーワードを1文字入力するたびに即座に検索を実行します。検索結果はKWICという形式で表示します(図1[拡大表示])。KWICはKeyWord In Contextの略で,前後の文脈付きで検索結果を表示する形式です。 今回から2回にわたり,このインクリメンタル検索を実現するAjaxアプリケーションを作成します。単なる動作説明用の「おもちゃ的な」サンプルではなく,実用性のあるツールとし
昨日の記事で、リンク元のページランクがわかるサービスがあったらいいなとつぶやいてましたが、調べてみたらできそうだったので、作ってみました。 Bookmarklet と Greasemnkey スクリプトのあわせ技です。 まず、以下のGreasemonkey スクリプトをインストールします。 showpagerank.user.js 次に Yahoo! Site Explorer ブックマークレットを使います。 リンク元のページランクを調べたいページで、このブックマークレットを実行。 すると、こんな感じでリンク元の一覧が表示され、ページタイトルの末尾にページランクが表示されていきます。 ホントは画像で表示したほうがインパクトがありそうですが、途中で面倒になりました(^^; 一気にデータを取得しようとすると、Firefoxがフリーズしたり、Googleに怒られたりしそうなので、データ取得にウェ
社外勉強会で、JavaScript Effect Programming というのをやろうと思って簡単なゲームを作った。 作る前の計画ではかなり重くなって、それを高速化していく様をレクチャーしようかと思っていたのですが…。 意外と軽い。。。これを高速化したって全然実感沸かないだろうなー (>_<)ヤバス ゲーム実行 → http://Sample.ECMAScript.jp/20060328.html ルール:ブロックの光の移動を寸止めでクリック(or キープレス)で止める。それを繰り返す。 明日、高速化した結果を載せます。
ソース 私と同じくRuby On Railsを勉強中の方には参考になるかと。 http://zorio.hp.infoseek.co.jp/data/checker.tbz2 動かしてる所は、 http://zorio532.fam.cx:8118/ これは何か 漫画のタイトルとか作家の名前とかを登録しておくと、新刊が出たらRSSで教えてくれるものです。 はてなダイアリーのRSSモジュールを使って、ここの左側にも出しています。 なぜ作ったか AWDwRを読み終わったので練習用に。 blogの横によくある今月の購入予定リストを自動作成してみたかった。 間違えて同じマンガを2回買ったことがあるから。 星界の戦記の5巻がいつ出るか全く見当が付かないから。 追記 ruby/amazonが必要です。 スキーマはdb/create_table.sqlにあります app/models/user.rbでs
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く