以前、個人的に作っていたサイトで、なんかメニューの見せ方を工夫できないかなと思って、「prototype.js」 と 「effects.js」 を利用してやって... 以前、個人的に作っていたサイトで、なんかメニューの見せ方を工夫できないかなと思って、「prototype.js」 と 「effects.js」 を利用してやってみたのが今回紹介するメニューのサンプル。 マウスオン / オフすると、隠れているサブメニューが滑らかに閉じたり開いたりします。クリックで開いたり、折りたたまれたりするメニューはよくありますが、それに無駄なエフェクトを施した版といったところ。 実際に動作しているサンプルはこちら。マウスオン / オフで滑らかに開閉しちゃいます。 さて、今回の材料は、 JavaScript ファイル 3種 本メニューの HTML ソース 本メニュー用 CSS の追加 JavaScript
BJKit(BeautifulJapaneseKit)htmlソースに簡単なJavascriptを記述するだけで、ページ上の文字列がアンチエイリアスの効いた美しい文字に代わります。 BJKit(BeautifulJapaneseKit)でビューティフルな見出しを生成 htmlソースに簡単なJavascriptを記述するだけで、ページ上の文字列がアンチエイリアスの効いた美しい文字に代わります。日本語にも対応しているので、様々な場面で利用することができます。 動的に表示するので、画像を作成する必要がない 新聞記事風、楷書風、POP調など、書体を自由にアレンジ出来る htmlの構造を崩さず、SEOやユーザービリティを犠牲にしない など、ページ作成の効率アップと同時に、表現力も向上させる手法です。 適用例 従来は、当ページの見出し(h1タグ)は下記のように表示されます。 従来の見出しの例 BJKi
By Patrick Griffiths and Dan Webb. CSS3 brings with it quite a funky little pseudo-class, :target, which can be used to highlight a targeted page anchor: h2:target { color: white; background: #f60; } Basically, using the above as an example, if someone were to select a link in a page with href="#balloon" and in that page was an h2 element with the attribute id="balloon" then not only will the page
IE6とIE7でサブウィンドウを開いたときの結果画面です。リンク文字をクリックすると実際のスクリプトが処理されます。 IE7ではサブウィンドウが、どのサイトのものかを示すロケーションバー(アドレスバー)が常に表示されるようです。 IE6、IE7ともWindows XP SP2上で実行させています。
Download files You can download the entires script from this Zip file. Configuration This script is easy to configure. All you have to do is to define how the active input should be highlighted. This is done by CSS. Then you have to call a function at the bottom of your page to initialize the script. Define CSS Here's an example how I have created the CSS in this demo .textInput,textarea{ /* Gene
A useful but often overrated JavaScript function is the browser detect. Sometimes you want to give specific instructions or load a new page in case the viewer uses, for instance, Safari. If you're new to JavaScript, don't use browser detects. You don’t need them. Please read the object detection page first. Use WhichBrowser This page used to contain my own browser detect script, but I found that I
Webプログラミングは,プロはもちろんアマチュアのプログラマの間でも,もはや欠かせない開発ジャンルの一つです。しかし,書籍や雑誌の解説記事のほとんどが,データベースがどうとか,サーバーサイドがどうとか,どうしてもディープな方向に進んでしまう傾向にあります。もちろん,それはそれで大切なことなんですが,いったい何割の人が,その技術を“自分の”ホームページに使っているでしょう。 最近話題の「リッチ・コンテンツ」にしても同様です。例えばFlash。たしかにActionScriptというスクリプト言語を使えば,動く,鳴る,つながると,いいこと尽くめです。でも,いかんせん「Macromedia Flash MX 2004を買ってきてね」とあっては,皆がみな使えるわけではありません。 Part1でも解説があったようにblog(ブログ)の認知度が上がり,利用率も増えて,プロバイダからの提供体制も整ってきて
PhotoShuffleはブログに貼られた写真を呼び出して自由にドラッグすることのできる今までにないブログパーツです。記事を読みながら自由に写真を閲覧することができます。PhotoShuffle FL はブログに貼られた写真を呼び出して自由にドラッグすることのできる今までにないブログパーツです。 記事を読みながら自由に写真を閲覧することができます。HTMLソースからの画像ファイルの取得はJavaScriptで実装していますが、JavaScriptでは表現できない写真を回転させたり、放り投げたりする表現に関してはFlashを用いています。 写真を閲覧するのにわざわざ別のウィンドウを開く必要はありません。 写真をクリックするとページ内に全ての写真が表示されます。 写真はドッラグして好きな位置に移動できるので、写真の下に隠れた記事を読むこともできます。 ページをスクロールすれば写真もそれに追従し
UPDATE! Development progress for Animator.js: 14-Nov-2006: Removed the dependency on prototype.js 16-Nov-2006: Added more transitions - check out the new bouncy and elastic transitions 9-Dec-2006: Allow people to specify CSS class names in CSSStyleSubject. 18 March 2007: improvements to AnimatorChain: seekTo() method (thanks Tim Stone) and resetOnPlay option (thanks Kaspar Fischer); 19 March 2007:
Page transition script. Not tested on MacIE yet. To add this to your page,add the following line to your code (preferably just under the body tag): <script src="http://bodytag.org/bt_melter/bt_melter.js" type="text/javascript"></script> Or just download the source here For best results, set body style="visibility:hidden;" and put lots of empty tags all through the text (such as <span></span>) Bett
Scott Jehl Designer / Developer Boston, MA HTML Text Drop Shadows (w/o CSS3) The drop shadow may not be a designer's most important tool, but on occasion the need arises to add some punch to a headline. One example could be for branding text that is positioned on top of an image; Depending on the colors of the image, your text might get lost without a shadow to pop it out. When it comes to HTML te
This collection of techniques to create boxes with rounded corners using CSS has become quite popular. The problem now is there are so many choices it’s hard to know which one to choose. To that end I’ve provided some more information about each method in order to help people choose which best fits their needs. Some of these techniques use CSS and one or more background images, some use CSS, JavaS
Abe Fettig’s Weblog 実Detecting IE7 in Javascript IE6とIE7を判別するJavascriptコード。 判別は次のようなコードで出来るようです。 if (typeof document.body.style.maxHeight != "undefined") { // IE 7, mozilla, safari, opera 9 } else { // IE6, older browsers } IE7もそろそろ正式版がリリースされるようですのでメモしておくとよいかも。 関連エントリ 古いバージョンのIEを1台のPCで使う方法 IE7 Is Coming This Month...Are you Ready?
This webpage was generated by the domain owner using Sedo Domain Parking. Disclaimer: Sedo maintains no relationship with third party advertisers. Reference to any specific service or trade mark is not controlled by Sedo nor does it constitute or imply its association, endorsement or recommendation.
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く