您的位置:首页 > Web前端 > HTML

用HTC实现自定义Html标签

2006-03-17 20:09 429 查看
HTML文件:

<html>
<head>
</script>
<xml:namespace prefix="BNet">
<?IMPORT namespace="BNet" implementation="a.htc">
</head>
<body>
<BNet:Cmd onCmd="showCmd()">
命令内容
</BNet:Cmd>
</body>
</html>
HTC文件:

<public:component tagName="Cmd">

<public:event id = "rcCmdId" name="onCmd"/>
<public:attach event="onmouseover" onevent="mouseOver()" />
<public:attach event="onmouseout" onevent="mouseOut()" />
<public:attach event="onclick" onevent="doCmd()"/>
<public:attach event="ondocumentready" onevent="htcInit()" />

</public:component>

</script>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: