Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
最近グーグルで検索しましたか?Google が検索を表示した後、マウスを検索用語の上に置くと、Google はサイトのプレビューを右側にシャドーボックスで表示し、ユーザーが DIV を制御 (閉じる) できるようにします。
どうすればそのスクリプトを達成できますか?
ありがとう
これらを試してください:
http://www.shadowbox-js.com/
http://api.jquery.com/hover/
そのポイントにたどり着くには多くのステップが必要です。
まず、JQueryを確認して、構文に慣れてください。
次に、次のようなことができる.hover()関数を読んでください。
$('#my_preview_link').hover(function(){ $('#my_preview_div').fadeIn(); },function(){ $('#my_preview_div').fadeOut(); });