📄 scripting image complete.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Scripting image complete.aspx.cs" Inherits="Scripting_image_complete" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Scripting image.complete</title>
<script type="text/javascript">
<!--
function loadIt(theImage,form) {
form.result.value = "";
document.images[0].src = theImage;
}
function checkLoad(form) {
form.result.value = document.images[0].complete;
}
//-->
</script>
</head>
<body>
<img alt="image" src="章节代码/第18章/CPU2.GIF" width="120" height="90" onload="" />
<form id="form1" runat="server">
<input type="button" value="Load keyboard" onclick="loadIt('章节代码/第18章/CPU1.GIF',this.form)" />
<input type="button" value="Load arch" onclick="loadIt('章节代码/第18章/ARCH.GIF',this.form)" />
<p><input type="button" value="Is it loaded yet?" onclick="checkLoad(this.form)" />
<input type="text" name="result" /></p>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -