scripting image complete.aspx

来自「本代码为javascript编写的javascripting image com」· ASPX 代码 · 共 30 行

ASPX
30
字号
<%@ 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 + =
减小字号Ctrl + -
显示快捷键?