当鼠标悬停/移出时,我试图显示/隐藏上一个/下一个按钮。但它似乎没有工作。我的代码有什么问题吗?
这是我的代码。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Portfolio</title>
<link rel="stylesheet" href="css/global.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<script src="js/jquery.easing.1.3.js"></script>
<script src="js/slides.jquery.js"></script>
<script>
$('.eachImage').on( "mouseover", function() {
$('#prevButton').show();
});
</script>
</head>
<body bgcolor="#FFFFFF">
<div id="container">
<div id="example">
<div id="slides">
<div class="slides_container">
<img src="imgs/test.png" width="800" height="456" class="eachImage">
</div>
<div id="prevButton"><a href="#" class="prev"><img src="imgs/arrow-prev.png" width="24" height="43" alt="Arrow Prev"></a></div>
<div id="nextButton"><a href="#" class="next"><img src="imgs/arrow-next.png" width="24" height="43" alt="Arrow Next"></a></div>
</div>
</div>
</div></body>
</html>
谢谢。