【发布时间】:2011-07-21 06:12:40
【问题描述】:
我有三个链接,猫、狗、蛇。当我将鼠标悬停在每个链接上时,与每个链接相关的内容应该会发生变化。
因此,如果我将鼠标悬停在 cat 上,则会出现 cat 内容,如果我将鼠标悬停在 dog 上,则 cat 内容会平滑消失,并且会出现 dog 内容......等等。
链接是:狗猫蛇<div>
<span style="display:none;"> Cat Content</span>
<span style="display:none;"> Dog Content</span>
<span style="display:none;"> Snake Content</span>
</div>
我怎样才能让它完全正常工作,并有一些平滑的褪色?
【问题讨论】:
-
我会使用 jquery 选项卡 :) 更好,并使用鼠标悬停选项,jqueryui.com/demos/tabs/#mouseover 演示链接,我知道它可能不适合您,但是您可以使用它,并且还有免费的主题:)
-
不这样,我不喜欢
标签: jquery jquery-plugins jquery-selectors jquery-events