gpt4 book ai didi

javascript - HTML , Jquery 鱼眼菜单

转载 作者:行者123 更新时间:2023-11-30 06:54:51 25 4
gpt4 key购买 nike

我使用了鱼眼 jquery “interface.js” 我想制作第三个元素id="default" 应该像鼠标悬停效果一样显示默认值,请提前帮助我谢谢

HTML

<div class="dock" id="dock1">
<div class="dock-container2">
<a class="dock-item2" href="#" ><span>E-Mail</span><img src="images/ui/img1.png" alt="home" width="40"/></a>
<a class="dock-item2" href="#"><span>Contact</span><img src="images/ui/img2.png" alt="contact" width="50" /></a>
<a class="dock-item2" href="#" id="default"><span>Car</span><img src="images/ui/img3.png" alt="portfolio" width="60"/></a>
<a class="dock-item2" href="#"><span>Home</span><img src="images/ui/img4.png" alt="music" width="70" /></a>
<a class="dock-item2" href="#"><span>Air Line</span><img src="images/ui/img5.png" alt="video" width="80" /></a>
<a class="dock-item2" href="#"><span>Train</span><img src="images/ui/img6.png" alt="history" width="70"/></a>
<a class="dock-item2" href="#"><span>Hotel</span><img src="images/ui/img7.png" alt="calendar" width="60"/></a>
<a class="dock-item2" href="#"><span>Links</span><img src="images/ui/img8.png" alt="links" width="50"/></a>
<a class="dock-item2" href="#"><span>Call Us</span><img src="images/ui/img9.png" alt="rss" width="40" /></a>
</div>
</div>

脚本

$(document).ready(function() {
$('#dock1').Fisheye({
maxWidth: 60,
items: 'a',
itemsText: 'span',
container: '.dock-container2',
itemWidth: 40,
proximity: 80,
alignment: 'left',
valign: 'top',
halign: 'center'
});
$("#pagecontent").slider();
});

最佳答案

尝试这样的事情:

$(".dock-container2:nth-child(3)").attr("id", "default")

关于javascript - HTML , Jquery 鱼眼菜单,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4415432/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com