用VML做HTC的问题,熟悉的朋友给看看~ document 前面加上 window. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 补充一下上面说过drawNormal()在同一个Html页面可以使用,这说明不是VML的使用问题。另外:为了排除是HTC使用上的问题,将vmlTabA.htc增加了一些普通内容,如下:<public:component tagName=vmlTabA> <public:defaults viewLinkContent/> <PUBLIC:ATTACH EVENT="oncontentready" ONEVENT="drawNormal()" /> <script language="javascript" src="MyVML.js"></script> <SCRIPT LANGUAGE="JScript" > function drawNormal(){ thisDiv.innerHTML = element.innerHTML; var thisGroup; thisGroup = createGroup("90px", "20px", "900, 200"); thisGroup.style.position="relative"; thisGroup.style.left="1px"; thisGroup.style.top="1px"; thisGroup.appendChild(createRect("900px","200px","#444444","#444444")); thisGroup.appendChild(createPolyLine("0,200 0,0 700,0 900,200", "#AABBCC", "1", "false")); thisGroup.appendChild(createPolyLine("0,200 900,200","#FF0000","1","false")); document.body.appendChild(thisGroup); } </SCRIPT></public:component><div id=thisDiv style="width:100px; height:30px; background-color:#DDDDDD">kkk</div>“thisDiv.innerHTML = element.innerHTML;”正确的执行,可以说明htc文件格式本身没有问题。 非常抱歉,htc中的document前面忘记加上window。问题解决。再次感谢Naola2001(摆地摊.Net) ! 问下ckeditor配置图片上传路径问题 Javascript跨域 问题 发布网站后正确,但在IDE中开始执行却显示"Automation 服务器不能创建对象" 控件对象的问题 相信大家都遇到过 select中设置超连接的问题 js 颜色比较 父窗口和子窗口参数传递问题 怎样用js控制form中的文件选择框使其选择为空?? 做的横向滚动图为什么一卡一卡的 EXTJS 给一个label加cls 把默认的去掉 javascript检查表单数据问题 如何让window.open()出来的窗口,出现在当前页面的后面或者屏幕的外面?
<public:defaults viewLinkContent/>
<PUBLIC:ATTACH EVENT="oncontentready" ONEVENT="drawNormal()" />
<script language="javascript" src="MyVML.js"></script>
<SCRIPT LANGUAGE="JScript" >
function drawNormal(){
thisDiv.innerHTML = element.innerHTML;
var thisGroup;
thisGroup = createGroup("90px", "20px", "900, 200");
thisGroup.style.position="relative";
thisGroup.style.left="1px";
thisGroup.style.top="1px";
thisGroup.appendChild(createRect("900px","200px","#444444","#444444"));
thisGroup.appendChild(createPolyLine("0,200 0,0 700,0 900,200", "#AABBCC", "1", "false"));
thisGroup.appendChild(createPolyLine("0,200 900,200","#FF0000","1","false"));
document.body.appendChild(thisGroup);
}
</SCRIPT>
</public:component><div id=thisDiv style="width:100px; height:30px; background-color:#DDDDDD">kkk</div>“thisDiv.innerHTML = element.innerHTML;”正确的执行,可以说明htc文件格式本身没有问题。