我有这种编码方式,它只是在单击链接时交换图像,我还显示了一些位于图像上的隐藏 html 内容。
<script>
if($.browser.msie && parseInt($.browser.version) <= 6){
$('#contentone, #contenttwo, #contentthree, #contentfour, .linksBackground').hide();
}
$('#contentone, #contenttwo, #contentthree, #contentfour').hide();
$("#linkone").click(function() {
$('#contenttwo, #contentthree, #contentfour').hide("1500");
$("#imageone").attr("src","Resources/Images/TEMP-homeOne.jpg");
$("#contentone").show("1500");
});
$("#linktwo").click(function() {
$('#contentone, #contentthree, #contentfour').hide("1500");
$("#imageone").attr("src","Resources/Images/TEMP-homeTwo.jpg");
$("#contenttwo").show("1500");
});
$("#linkthree").click(function() {
$('#contentone, #contenttwo, #contentfour').hide("1500");
$("#imageone").attr("src","Resources/Images/TEMP-homeThree.jpg");
$("#contentthree").show("1500");
});
$("#linkfour").click(function() {
$('#contentone, #contenttwo, #contentthree').hide("1500");
$("#imageone").attr("src","Resources/Images/TEMP-homeFour.jpg");
$("#contentfour").show("1500");
});
</script>
有谁知道我如何进一步修改它以在用户滚动链接时显示一个小缩略图?
我只需要一个提示,因为我不知道该去哪里......我可以通过鼠标悬停来实现它吗?