-1
A
回答
0
若要当鼠标停留在图像显示,但然后隐藏在不鼠标滑过:
<html>
<head>
<script type="text/javascript">
function showIt(imgsrc)
{
document.getElementById('imageshow').src=imgsrc;
document.getElementById('imageshow').style.display='block';
}
function hideIt()
{
document.getElementById('imageshow').style.display='none';
}
</script>
</head>
<body>
<img src="image1.jpg" onmouseover="showIt(this.src)" onmouseout="hideIt()"><br>
<img src="image2.jpg" onmouseover="showIt(this.src)" onmouseout="hideIt()">
<br>
<br>
<br>
<img src="" id="imageshow" style="display:none">
</body>
</html>
有它显示的默认图像,即使你没有鼠标悬停在某图像,但随后显示的图像,如果你将鼠标悬停在它:
<html>
<head>
<script type="text/javascript">
function showIt(imgsrc)
{
document.getElementById('imageshow').src=imgsrc;
}
function hideIt()
{
document.getElementById('imageshow').src="default.jpg";
}
</script>
</head>
<body>
<img src="image1.jpg" onmouseover="showIt(this.src)" onmouseout="hideIt()"><br>
<img src="image2.jpg" onmouseover="showIt(this.src)" onmouseout="hideIt()">
<br>
<br>
<br>
<img src="default.jpg" id="imageshow">
</body>
</html>
有它显示一个图像,当鼠标悬停你,然后继续显示甚至WH最后的图像带你鼠标移开它:
<html>
<head>
<script type="text/javascript">
function showIt(imgsrc)
{
document.getElementById('imageshow').src=imgsrc;
}
</script>
</head>
<body>
<img src="image1.jpg" onmouseover="showIt(this.src)"><br>
<img src="image2.jpg" onmouseover="showIt(this.src)">
<br>
<br>
<br>
<img src="default.jpg" id="imageshow">
</body>
</html>
希望这有助于..
相关问题
- 1. 鼠标悬停图像并显示另一个,使用jQuery
- 2. 显示鼠标悬停的图像
- 3. 将鼠标悬停在另一图像上时显示图像
- 4. 如何在鼠标悬停在图像中时显示图像?
- 5. 鼠标悬停的图像模糊图像和显示文字
- 6. 使用jquery悬停显示图像
- 7. jquery - 使用悬停显示图像
- 8. 悬停图像? (鼠标)
- 9. JQuery更改鼠标悬停的图像
- 10. JQuery鼠标悬停图像覆盖
- 11. 鼠标悬停在图像上时可点击图标显示
- 12. 图像悬停 - 鼠标显示为文本图标?
- 13. 需要在悬停时显示图像 - 使用raphaeljs的图像地图
- 14. jQuery来改变图像和字幕显示鼠标悬停
- 15. 使用鼠标悬停在其他div中显示图像
- 16. 鼠标悬停显示像jQuery工具提示一个div
- 17. 当鼠标悬停在图像上时标签隐藏/显示?
- 18. 我需要显示在图像的顶部一个div:悬停
- 19. 使用jquery更改鼠标悬停上显示的图像的位置
- 20. 显示隐藏图像使用jquery鼠标悬停的DIV问题
- 21. 将鼠标悬停在图像变化的另一个图像
- 22. 将鼠标悬停另一图像隐藏动画图像
- 23. jquery显示行上悬停的图像
- 24. 使用css悬停显示图像
- 25. 悬停显示/隐藏图像标题
- 26. 鼠标悬停时的jQuery图像滑块和鼠标悬停时的重置
- 27. 放大鼠标悬停图像,而不使用Jquery推动其他图像?
- 28. 图像悬停时,如何在悬停时显示图像?
- 29. Javascript。将鼠标悬停在右侧显示图像的图像上。
- 30. 将鼠标悬停在图像上并在该图像上显示链接
我想显示图像的基团,与相邻的实际图像的弹出和隐藏弹出时,鼠标移出。我不想使用任何Div。 – Sheeraz