这里的js在哪里
我试图理解这里菜单背后的javascript http://www.canadastartup.com/。他们使用插件吗?有没有一个插件(最好是基于jquery的)可以产生类似的效果?
html 看起来像这样:
<ul class="nav sf-js-enabled">
<li><a href="">Home</a></li>
<li class="page_item page-item-61 current_page_item selectedLava">
<a title="" href="">About us</a>
</li>
<li class="page_item page-item-38"><a title="" href="">Marketing Services</a></li>
<li class="page_item page-item-47"><a title="" href="">Sales Services</a></li>
<li class="page_item page-item-31"><a title="" href="">Business Services</a></li>
<li class="page_item page-item-67"><a title="" href="">Contact us</a></li>
<li class="backLava"
style="left: 67px; top: 83px; width: 70px; height: 32px; overflow: hidden;">
<div class="leftLava"></div>
<div class="bottomLava"></div>
<div class="cornerLava"></div>
</li>
</ul> <!-- end ul.nav -->
I'm trying to understand the javascript behind the menu here http://www.canadastartup.com/. Are they using a plugin? Is there a plugin (preferably jquery based) that can give a similar effect?
The html looks something like this:
<ul class="nav sf-js-enabled">
<li><a href="">Home</a></li>
<li class="page_item page-item-61 current_page_item selectedLava">
<a title="" href="">About us</a>
</li>
<li class="page_item page-item-38"><a title="" href="">Marketing Services</a></li>
<li class="page_item page-item-47"><a title="" href="">Sales Services</a></li>
<li class="page_item page-item-31"><a title="" href="">Business Services</a></li>
<li class="page_item page-item-67"><a title="" href="">Contact us</a></li>
<li class="backLava"
style="left: 67px; top: 83px; width: 70px; height: 32px; overflow: hidden;">
<div class="leftLava"></div>
<div class="bottomLava"></div>
<div class="cornerLava"></div>
</li>
</ul> <!-- end ul.nav -->
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
看起来他们正在使用 superfish
虽然可能比看起来更多源代码第 162 行左右
looks like they are using superfish
though there may be more to it than that look around line 162 of source
我相信您正在寻找熔岩灯:
http://www.canadastartup.com/wp-content/themes/TheProfessional/js/jquery.lavalamp.1.3.3-min.js
虽然,如果您想自己学习如何操作,Net Tuts 上有一个很棒的视频教程:
http://net.tutsplus.com/tutorials/html-css-techniques/how-to-build-a-lava-lamp-style-navigation-menu/
I believe you are looking for the Lava Lamp:
http://www.canadastartup.com/wp-content/themes/TheProfessional/js/jquery.lavalamp.1.3.3-min.js
Although, if you want to learn how to do it yourself, a great video tutorial is the one on Net Tuts:
http://net.tutsplus.com/tutorials/html-css-techniques/how-to-build-a-lava-lamp-style-navigation-menu/
为了创建您看到的动画,他们似乎使用 jQuery Lavalamp 插件。
您可以在此处查看演示和教程。
To create the animation you see, they seem to be using the jQuery Lavalamp plugin.
You can check out the Demos and Tutorials here.