Google – ブックマーク http://www.google.co.jp/bookmarks/ SBMへの登録ですが、やはりブックマークレットでの登録が便利です。 Googleブックマークのブックマークレットで、いいの物はないかと探していました。 こちらで紹介されてたりしたのですが、これだと登録する際ブックマークするページから遷移してしまいます。 Going My Way: Google Bookmarkにさっと追加できるBookmarklet http://kengo.preston-net.com/archives/002495.shtml javascript:location.href='http://www.google.com/bookmarks/mark?op=add&bkmk='+encodeURIComponent(location.href)+'&
No.1です。ランダムに、というのはJavascript側でランダムに 文章を出すのではなく、JSPなり何なりで取得してきたページに 対して特定の文字列が含まれているかどうかを取得する。 …という意味で受け取って良いでしょうか? ページ内で所定の文字を検索させる機能については、 下記ページが参考になると思います。 ■ページ内検索機能をつける http://computer.shipweb.jp/soft/pageinserch.htm 表示されてから○秒後にファンクションを実行する場合、 タイマーを使います。下記ページが参考になります。 ■タイマーを作る http://www.geocities.jp/miyake_kobo/js/koubun_00 … 上記リンク先のスクリプトを組み合わせて、ちょっと改良して 以下のようなコードを作成してみました。 -------------------
タイトル変えました。旧タイトル「JavaScriptでよく使う書き方」。よく使うけど毎回忘れる。 正規表現にマッチするかどうか。 RegExp#testを使う。 /abc/.test("abcdefg") // => true String#searchはマッチした位置を返す。マッチしない場合は-1。先頭にマッチすると0でfalseなので注意。真偽値が欲しい場合はString#searchを使わない。 "abcdefg".search(/xxx/) // => -1 "abcdefg".search(/def/) // => 3 "abcdefg".search(/abc/) == false // => true 正規表現の部分マッチを得る。 部分マッチを得るには、RegExp#execかString#matchを使う。execとmatchの速度は大して変わらない。 正規表現のベンチマー
+profile AUTHOR:Cecho http://iddy.jp/profile/Cecho/ +recent entry 広告を消すためにできるただひとつの投稿 (08.22)OracleのTableLockについて (06.12)言語間での暗号復号について (06.11)そして半年後・・・。 (06.05)仕事としての趣味か、趣味としての仕事か (12.08) +category ごみ箱 (10)おぼえがき (3) +monthly 2011.08 (1)2010.06 (2)2009.06 (1)2008.12 (1)2008.11 (2)2008.09 (1)2008.08 (1)2008.04 (1)2008.03 (2)2008.02 (1) +recent comment おにめ (08.22)みんな の プロフィール (03.21) +recent trackbac
A Simple jQuery Stylesheet Switcher 5分で実装可能なページの文字サイズ変更+クッキーに保存サンプルが公開。 ページで、小・中・大のように文字サイズを変えられるようにしておくと便利ですね。 asahi.com の導入例 実装方法が、微妙に面倒という場合もこのサンプルを使えば簡単に実装できる筈です。 文字サイズに限らず、CSSを丸ごと変えてしまえるので、スタイルを変更して保存ということも簡単に出来ます。 デモページ HTMLは、次のように、href は # ですが、rel属性に付け替えたいcssを指定しておきます。 <ul id="nav"> <li><a href="#" rel="/path/to/style1.css">Default CSS</a></li> <li><a href="#" rel="/path/to/style2.css">Larg
Create a unique Gallery by using z-index and jQuery | This Blog Use jQuery 訪問者驚きの手めくり風、画像ギャラリーを作成できるサンプル。 以下がデモで、実際に試してみましょう。驚きの効果が得られるはずです。 HTML定義部分。分かりやすいコードも魅力です。 <!-- relevant for the tutorial - start --> <div class="grid_6 prefix_1 suffix_1" id="gallery"> <div id="pictures"> <!--画像の定義部分--> <img src="images/picture1.png" alt="" /> <img src="images/picture2.png" alt="" /> <img src="images/pictu
これでサイトに独自の右クリックメニュー実装は誰でも簡単「jQuery Context Menu Plugin」 2009年03月12日- jQuery Context Menu Plugin これでサイトに独自の右クリックメニュー実装は誰でも簡単「jQuery Context Menu Plugin」。 ちょっと前までだと独自の右クリックメニューを作るのはすごく大変でした。特にクロスブラウザで動作することなんかを考慮すると本当に大変でした。 が、このライブラリを使えば簡単に実装できてしまいます。 特定のエレメント上のみに右クリックメニューを設定できるという、柔軟なつくりになっています。 どのアイテム上でクリックしたかっていうのがイベントハンドラで受けられるところも汎用的になっていていいです。 このライブラリ1つとってみても、jQueryを使う意味が出てきそうです。 jQueryは本当にデフ
STEP1. エクセルとかからCSV (TSV)をコピーしてを貼り付け STEP2. オプションを選択して変換 細かい設定 列目までをTHEADとする。(0でTHEADなし) TBODYの行目までをTHとする。 TBODY THに深度を埋め込んだクラス名を追加する。(1〜) クラス名: " + n" ひとつめのTHに深度クラスを追加しない。(lv1を追加しない) n列ごとにTRにクラス名を追加する。(0〜) クラス名: 列数 : クラス名に列数を追加する。(nrow0, nrow1,,)
MULTICOL. はHTMLで雑誌のような美しい段組みレイアウトを実現するだけのシンプルなjQueryプラグインです。 もちろん、日本製のプラグインなので日本語もきれいに段組みにします。 一 或春の日暮です。 唐の西の門の下に、ぼんやり空を仰いでいる、一人の若者がありました。 若者は名を杜子春といって、元は金持の息子でしたが、今は財産を費な身分になっているのです。 何しろその頃洛陽といえば、天下に並ぶもののない、繁昌は、まるで画のような美しさです。 しかし杜子春は相変らず、門の壁に身を凭かと思う程、かすかに白く浮んでいるのです。 「日は暮れるし、腹は減るし、その上もうどこへ行っても、泊めてくれる所はなさそうだし——こんな思いをして生きている位なら、一そ川へでも身を投げて、死んでしまった方がましかも知れない」 杜子春はひとりさっきから、こんな取りとめもないことを思いめぐらしてい
あるページのタイトルとページのURLをリンクにして、プロンプトで表示します。 あちこちに同じようなものがありそうですが、簡単そうだったので作ってみました。 ブログを投稿するときに、いちいちソースを表示してタイトル取得して、アドレス欄のURLコピーしてリンクを作って、とやっていたら面倒だったので作りました。 ・通常リンクバージョン get page link ←これを「右クリック」→「お気に入りに追加」でOK javascript:window.prompt('','<a href=\''+ location.href +'\'>'+ document.title + '</a>');void(0); ・新しいウィンドウで開くバージョン get page link ←これを「右クリック」→「お気に入りに追加」でOK javascript:window.prompt('','<a href=\
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く