我想显示悬停图像上的描述,但是当悬停在图像上,然后所有图像显示说明。 我有下面的代码....悬停图像显示说明
所有的<?php if ($product['thumb']) { ?>
<div class="image"><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" /></a></div>
<?php } ?>
<div style="display:none;" class="de"> Nunc ornare adipiscing orci eu consectetur. Ut justo libero, porttitor ac elementum luctus, bland..
<img alt="Based on 2 reviews." src="catalog/view/theme/kid/stars1-4.png"/>
</div>
<script type="text/javascript">
$this('.image').hover(function() {
// mouseOver function
$('.de').show();
}, function() {
// mouseOut function
$('.de').hide();
});
</script>
使用工具ti p或设置alt标记 –
检查答案中的小提琴。 – Jai