csstabebtest.htm

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

HTM
29
字号
<html XMLNS:IE>
<head>
    <?IMPORT NAMESPACE="IE" IMPLEMENTATION="csstabeb.htc">
</head>
<script language="JavaScript">
function setTabSeq(value){ 
   objArea.setTabSeq(value);
}
function init(){
   objArea.tbValue = "Initial value";  
}
function clicked(){
     alert("Primary document was clicked.");
}
</script>
<body onload="init()">
<p>
Everything that is not in the shaded area is part of the primary document<br>
<input type="text"><br>
<input type="button" value="Component in Tab Seq." onclick="setTabSeq(true)">
<input type="button" value="Component Not in Tab Seq." onclick="setTabSeq(false)">
</p>This shaded area is an Element behavior<br>
<IE:csstabeb id="objArea" style="font-size:24;background-color:lightgrey" onclick="clicked()" ></IE:csstabeb><br>
This starts the primary document again<br><br>
<input type="button" value="Get TextBox Value" onclick="{alert('Textbox value = ' + objArea.tbValue);}">
<br><input type="text">
</body>
</html>

⌨️ 快捷键说明

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