📄 tryit_view.asp@filename=trydhtml_image_preload
字号:
<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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -