⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testframe.htm

📁 Windows Web脚本开发指南/(美) Dan Heflin, Todd Ney著 的源码
💻 HTM
字号:
<html>
<head>
<title>Frame Examples</title>
<style>
  .frame { behavior:url(frame.htc) ; }
</style>
</head>
<script language="JScript">
function initPage(){

	if (document.readyState == 'complete'){
		frmAddress.margin = "10";
		frmHomeDir.margin = "10";
		frmHomeDirChild.borderstyle ="inset";
		frmHomeDirChild.borderwidth = 5;
		frmHomeDirChild.color = "white";
		frmHomeDirChild.backgroundcolor = "gray";
	}
}
function changeCaption(objFrame, txtNewCaption){

	objFrame.caption = txtNewCaption;
}
</script>
<body bgcolor="#FFFFFF" onload="initPage()">
<div  class="frame" id="frmAddress" Caption="Address">
	<table border="0" width="100%">
  		<tr>
    		<td width="13%">Address:</td>
    		<td width="87%">
       		 <input type="text" name="T1" size="49">
    		</td>
  		</tr>
  		<tr>
    		<td width="13%">City</td>
    		<td width="87%"><input type="text" name="T1" size="20"></td>
  		</tr>
  		<tr>
    		<td width="13%">State:</td>
    		<td width="87%">
        		<select size="1" name="D1">
        			<option>IL</option>
        			<option>MA</option>
        			<option>ND</option>
        			<option>RI</option>
        			<option>WI</option>
        		</select>
    		</td>
  		</tr>
	</table>
</div>
  Change the caption to: <input type="text" id="txtTopFrameCaption" size="20"><input type="button" value="Change" id="btnFirstFrame" onclick="changeCaption(frmAddress, txtTopFrameCaption.value)"><br>
<br>
<table border="0" width="380" height="92">
  <tr>
       <td width="372">
			<div  class="frame" id="frmHomeDir" Caption="Home Directory">
				<div  class="frame" id="frmHomeDirChild" Caption="File Information" top="7" margin="15">
					<table border="0" width="50%">
  						<tr>
    						<td width="13%">Path:</td>
					    	<td width="87%"><input type="text" name="T1" size="27"></td>
  						</tr>
  						<tr>
					   	 	<td width="13%">File:</td>
					    	<td width="87%"><input type="text" name="T1" size="27"></td>
			  			</tr>
					</table>
				</div>
                  Change the caption to: <input type="text" id="txtInnerFrameCaption" size="13"><input type="button" value="Change" id="btnInnerFrame"onclick="changeCaption(frmHomeDirChild, txtInnerFrameCaption.value)"><br>
				<br>
              <input type="checkbox" name="chkBox">	 New File
			</div>
                  Change the caption to: <input type="text" id="txtSecondFrameCaption" size="13"><input type="button" value="Change" id="btnSecondFrame" onclick="changeCaption(frmHomeDir, txtSecondFrameCaption.value)"><br>
       </td>
	</tr>
</table>
</body>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -