我的轮播图中img的alt显示标题,是否可以让鼠标移入的时候alt也就是标题显示,鼠标移出alt不显示呢。
<script>
$(function(){
var oimg=$("#slide img");
oimg.mouseover(function(){
$(this).attr("alt");
})
})
</script>
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
类似这样