tryit_view.asp@filename=trydhtml_image_preload
来自「W3Schools tutorial..web designing」· ASP@FILENAME=TRYDHTML_IMAGE_PRELOAD 代码 · 共 21 行
ASP@FILENAME=TRYDHTML_IMAGE_PRELOAD
21 行
<html>
<head>
<script type="text/javascript">
img2=new Image();
img2.src="landscape3.gif";
function changeImage()
{
document.getElementById('myImage').src=img2.src;
}
</script>
</head>
<body>
<p>When you mouse over the image, a new image will appear.</p>
<img id="myImage" onmouseover="changeImage()" border="0" width="160" height="120" src="landscape2.jpg">
<p>The new image appears instantly, because your browser has already loaded the image.</p>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?