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(); });