用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>
<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>
相关文章推荐
- android 让TextView支持的Html标签实现自定义时钟显示组件DigitalClock
- html 自定义标签使用实现方法
- 解析在Android中为TextView增加自定义HTML标签的实现方法
- html 自定义标签使用实现方法
- html 自定义标签使用实现方法
- 解析在Android中为TextView增加自定义HTML标签的实现方法
- Span使用之利用自定义Span解析Html中特殊标签实现类似微博@效果
- php 自定义函数实现博客文章预览,无乱码,自动补齐HTML标签
- Android自定义View实现HTML图文环绕效果
- php实现过滤表单提交中html标签的方法
- freemarker 实现自定义标签的方法
- HTML标签marquee实现滚动效果
- PHP删除HTMl标签的实现代码
- Android自定义View实现HTML图文环绕效果
- DEDECMS 扩展标签和dede自定义标签实现方法
- android 自定义LabelView实现各类小标签,重要功能已标注
- Android UI设计之<六>使用HTML标签,实现在TextView中对部分文字进行加粗显示
- html代码编写:自定义hr标签的显示效果
- 关于浏览器对于html的input标签中name的命名特殊字符处理(GET)与script+js跨域实现