Microsoft FrontPage Page 对象模型中的属性基于 Microsoft Internet Explorer 4.0 中的属性。有关特定属性的详细信息,请单击下面表格中的链接。
注意 有些属性有多个相关联的主题。有关各个属性的详细信息,请参考 Microsoft Developer Network。
注意 有关 IFPStyleState 对象及其属性的信息,请参阅 FrontPage 编程项目。此超链接将转到站点。您可以随时切换回帮助。
accessKey | alt |
返回顶端 | |
background(属性)
BaseHref border |
borderBottomColor |
返回顶端 | |
cancelBubble
clientInformation |
code
codeBas(对象实现的位置) |
返回顶端 | |
dataFld | dialogLeft |
返回顶端 | |
elements | event |
返回顶端 | |
face | fontStyle |
返回顶端 | |
hash | href(相对链接的基本 URL) |
返回顶端 | |
id | innerText |
返回顶端 | |
lang | linkColor
location |
返回顶端 | |
margin | name(窗口或框架) |
返回顶端 | |
offsetHeight
onbeforeunload onbeforeunload onbeforeunload onchange(文件输入) onchange(文本区) onchange(所选内容) onchange(按钮) onchange(文本输入) onclick (Document2) onclick (IHTMLElement) ondblclick (Document2) ondblclick (IHTMLElement) ondragstart (Document2) ondragstart (IHTMLElement) onfocus(窗口) onkeydown (Document2) onkeydown (IHTMLElement) onkeypress (Document2) onkeypress (IHTMLElement) onkeyup (Document2) onkeyup (IHTMLElement) onload (Image) |
onmousedown (Document2) onmousedown (IHTMLElement) onmousemove (Document2) onmousemove (IHTMLElement) onmouseout (Document2) onmouseout (IHTMLElement) onmouseover (Document2) onmouseover (IHTMLElement) onmouseup (Document2) onmouseup (IHTMLElement) onreadystatechange(表格) onreadystatechange(链接) onreadystatechange(对象) onreadystatechange(文档) onreadystatechange(样式) onresize onscroll(窗口) onscroll(文本容器) onselect(输入文件) onselect(文本区) onselect(输入文本) onselect(正文) onselectstart (Document2) onselectstart (IHTMLElement) |
返回顶端 | |
padding | parentWindow
plugins |
返回顶端 | |
readOnly(样式表) | rightMargin |
返回顶端 | |
screen | selection
styleFloat |
返回顶端 | |
tabIndex | tFoot
top |
返回顶端 | |
units | vlinkColor
vrml (ImgElement) vrml (InputImage) |
注意 FrontPage Page 对象模型帮助引用的是 Internet Explorer 4.0 动态 HTML 帮助文件 (HTMLRef.chm) 中定义的对象、方法、属性和事件。此帮助文件中的示例和说明最早是为使用 JavaScript 编程语言而创建的。JavaScript 语言和 Microsoft Visual Basic 有所不同。例如,HTMLRef.chm 在属性或方法返回一个不存在的对象时建议检查 NULL。这在 Visual Basic 中是不正确的。在 Visual Basic 语言中,这种情况下会返回 Nothing 类型。Visual Basic 用户可以通过使用 Is 关键字来检查对象是否为 Nothing。
例如,If MyObject Is Nothing Then
另外,许多示例是以 JavaScript 给出的,而非 Visual Basic。JavaScript 在结构和格式上与 C++ 语言很相似。
下列是一个 JavaScript 示例。
var Table = document.all.tags("table").item(0);
var TableCell = table.rows(3).cells(2);
TableCell.innertext = ""
While (p != NULL)
{
TableCell.innerText = p.tagName;
var p = p.parentElement
TableCell.innertext = p.tagName;
TableCell.innertext += "+";
TableCell.innertext += TableCell.innertext;
}
下列是以 Visual Basic 编写的具有相同功能的示例。
Sub SetText()
Set TableCell = table.Rows(3).Cells(2)
Set p = TableCell
TableCell.innerText = ""
Do While Not p Is Nothing
TableCell.innerText = p.tagName & "+" & TableCell.innerText
Set p = p.parentElement
Loop
End Sub