HBCMS更多的中文手册参考:

CODEBASE Attribute | codeBase参数属性

DHTML文档教程

Sets or retrieves the URL of the component.

dhtml语法

HTML<ELEMENT CODEBASE = sLocation... >
Scriptingobject.codeBase [ = sLocation ]

DHTML可能的值

sLocationString that specifies or receives the URL of the component, which can be appended with a version string of the form #Version=a,b,c,d, as described in the remarks section. If the client computer has a newer version installed, no download occurs.
aHigh-order word of the major version of the component available at the specified URL.
bLow-order word of the major version of the component available at the specified URL.
cHigh-order word of the minor version of the component available at the specified URL.
dLow-order word of the minor version of the component available at the specified URL.

The property is read/write. The property has no default value.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see about dynamic properties.

remarks

applets do not support version information supplied as part of the url.

if a,b,c,d are all set to -1 (#version=-1,-1,-1,-1), the component is downloaded from the server if the release date is later than the installation date on the client computer. if the component is installed on the client computer and the release date is the same or earlier than the installation date, only an http header transaction occurs.

the url of the component cannot be a local path.

DHTML代码范例

The following example uses the CODEBASE attribute to specify the download location of the Common Dialog control.

<OBJECT ID="CommonDialog1" WIDTH=32 HEIGHT=32
CLASSID="CLSID:F9043C85-F6F2-101A-A3C9-08002B2F49FB"
CODEBASE="/hbcms/php/r.php?url=http%3A%2F%2Factivex.microsoft.com/controls/vb5/comdlg32.cab
#Version=1,0,0,0">
</OBJECT>

是否符合公共标准

This property is defined in HTML 4.0 Non-Microsoft link and is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 Non-Microsoft link.

Applies To

APPLET, OBJECT

更多语法参考

Managing Versions of a Component