savesnapshot.htm

来自「Windows Web脚本开发指南/(美) Dan Heflin, Todd N」· HTM 代码 · 共 71 行

HTM
71
字号
<html>

<head>
<meta name="save" CONTENT="snapshot">
<title>saveSnapshot Default DHTML Behavior</title>
<style>
	.saveSnapshot { behavior:url(#default#savesnapshot) }
</style>
</head>

<body bgcolor="#FF00FF">
<table border="0" width="100%" height="82">
  <tr>
    <td width="15%" height="78"><img border="0" src="snapshot.gif" width="64" height="64"></td>
    <td width="85%" valign="middle" align="center" height="78">
      <p align="center"><font size="5"><b>saveSnapshot DHTML Default Behavior
      Demo</b></font></p>
      <p>&nbsp;</td>
  </tr>
</table>
<font size="3">This page will use the saveSnapshot DHTML
behavior to save the data on the page when it is saved as an HTML Web Page, HTML
Only.<br>
<br>
</font>
<form>
  <table border="0" width="99%">
    <tr>
      <td width="38%">Textbox:</td>
      <td width="67%"><input class="saveSnapshot" type="text" id="txtItem1" size="20"></td>
    </tr>
    <tr>
      <td width="38%">Scrolling Textbox:</td>
      <td width="67%"><textarea class="saveSnapshot" rows="3" id="txtScrolling" cols="32"></textarea></td>
    </tr>
    <tr>
      <td width="38%">Checkbox:</td>
      <td width="67%"><input  class="saveSnapshot" type="checkbox" id="chkItem" value="ON"></td>
    </tr>
    <tr>
      <td width="38%">Radio Buttons</td>
      <td width="67%"><input class="saveSnapshot" type="radio" checked name="optButton" id="optButton">One&nbsp;&nbsp;&nbsp;
        <input class="saveSnapshot" type="radio" name="optButton" id="optButton2" >Two</td>
    </tr>
    <tr>
      <td width="38%">Single Item Drop Down:</td>
      <td width="67%"><select class="saveSnapshot" size="1" id="ddSingle">
          <option selected value="1">Item 1</option>
          <option value="2">Item 2</option>
          <option value="3">Item 3</option>
          <option value="4">Item 4</option>
          <option value="5">Item 5</option>
        </select></td>
    </tr>
    <tr>
      <td width="38%">Multiple Item Drop Down:</td>
      <td width="67%"><select class="saveSnapshot" size="3" id="ddMultiple" multiple name="ddMultiple">
          <option value="1">Item 1</option>
          <option value="2">Item 2</option>
          <option value="3">Item 3</option>
          <option value="4">Item 4</option>
          <option value="5">Item 5</option>
        </select></td>
    </tr>
  </table>
</form>

</body>

</html>

⌨️ 快捷键说明

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