ChinaUnix.net
相关文章推荐:

getelementbyid兼容

写了一md5生成token的代码 gm5.js单独在一个页面进行 调用的时候一切正常,可以正常产生数据; 但是当被include的时候,只要地调用这个 getelementbyid()这句话,就会报缺少对象错误, 如果没有这个函数,使用alert()什么的,没有什么问题! 多思而不得解,请朋友们给指点迷津!

by a.a - PHP - 2010-06-15 21:53:59 阅读(3132) 回复(7)

相关讨论

document.getelementbyid使用 注意: document.getelementbyid(" ") 得到的是一个对象,用 alert 显示得到的是 “ object ”,而不是具体的值,它有 value 和 length 等属性,加上 .value 得到的才 是具体的值! 参考资料: 1. document . getelementbyid 的用法和 DHTML.CHM 的下载地址 http://blog.sina.com.cn/u/4933092a010003k7 今天在网络上查找 document . getelementbyid 的用法,如下: A : 语法: ...

by militala - php文档中心 - 2009-01-10 21:46:00 阅读(1804) 回复(0)

XmlDocument..::.getelementbyid 方法 获取具有指定 ID 的XmlElement。 具有匹配 ID 的 XmlElement;如果未找到匹配的元素,则为 nullNothingnullptrnull 引用(在 Visual Basic 中为 Nothing)。 备注 如果文档中有多个具有匹配 ID 的元素,则该方法返回文档中第一个匹配的元素。 说明: DOM 实现必须具有定义哪些属性属于 ID 类型的信息。虽然可在 XSD 架构或 DTD 中定义属于 ID 类型的属性,但是该版本的产品只支持 DTD 中...

by ybu2008 - Java文档中心 - 2008-09-10 09:16:52 阅读(1128) 回复(0)

一段js代码,是上传图片的过程中弹出一个提示“大的图片可能需要很长时间,请耐心等待”的层,使用了innerHtml和getelementbyid方法。 此段代码在ie和firefox中均正常,但是在safari中却不定期的卡住整个页面,并且至今无法完全重现这个错误。 那位兄弟有此方面的经验,来指点一下,非常感谢。

by gengxl - Web开发 - 2008-04-22 18:00:32 阅读(2678) 回复(0)

问题是这样的,为了提高网站显示速度,所以用生成静态页面,再用shtml去include生成的静态页面。 但是在shtml页面中,document.getelementbyid在中可以显示事先定义的变量,在中则不能,求解决办法,谢谢。以下是相关代码。 -------test.php-------- $a = $xpath->query("/Article/oraDate/RKLSWZBT"); $newszbt = iconv("UTF-8","GB2312",$a->item(0)->nodeValue); $newspos = unhtmlentities(iconv("UTF-8","GB23... </p> <p class="news_tag"> </p> </div> <div class="two_con2"> by <a href="http://bbs.chinaunix.net/space-uid-20339940.html" target="_blank">gengxl </a> - <a href="http://bbs.chinaunix.net/forum-80-1.html" target="_blank">Web开发</a> - 2006-06-14 15:47:06 阅读(2450) 回复(3) </div> </div> <div class="friendly_link"> <div class="friendly_con1"> <div class="f_link_tit">盛拓传媒:</div> <p><a href="http://www.it168.com">IT168</a> | <a href="http://www.pcpop.com">泡泡网</a> | <a href="http://www.autohome.com.cn">汽车之家</a> | <a href="http://www.che168.com">二手车之家</a> | <a href="http://www.qudao168.com">渠道168</a> | <a href="http://www.itpub.net/">ITPUB</a> | <a href="http://www.ixpub.net/">IXPUB</a> | <a href="http://www.chinaunix.net/">ChinaUnix</a> | <a href=" http://www.jimi168.com/">安卓之家</a> | <a href="http://www.app111.com/">苹果园</a> | <a href="http://www.gqt168.com/">家商城</a> | <a href="http://bbs.app111.com/">苹果论坛</a></p> <div class="clear"></div> </div> </div> <div id="footer"> <div class="dot1"><a href="http://www.bj.cyberpolice.cn/index.jsp" class="n1"></a><a href="http://www.hd315.gov.cn/beian/view.asp?bianhao=010202008062400006"></a><a href="http://ulic.baidu.com/client/clientDetailCerInfo.do?id=1602"></a></div> <p class="p"> <a href="http://www.it168.com/bottomfile/about.shtml" rel="nofollow">盛拓传媒简介</a> | <a href="http://www.it168.com/bottomfile/it168.shtml" rel="nofollow">关于IT168</a> | <a href="http://www.it168.com/bottomfile/hzhb.shtml" rel="nofollow">合作伙伴</a> | <a href="http://www.it168.com/bottomfile/ggfw.shtml" rel="nofollow">广告服务</a> | <a href="http://www.it168.com/bottomfile/sytk.shtml" rel="nofollow">使用条款</a> | <a href="http://www.it168.com/bottomfile/tgzn.shtml" rel="nofollow">投稿指南</a> | <a href="http://www.wintalent.cn:8031/wt5/sequelmedia/web/index" rel="nofollow">诚聘精英</a> | <a href="http://www.it168.com/bottomfile/lxwm.shtml" rel="nofollow">联系我们</a> | <a href="http://www.itpub.net/forum.php">ITPUB论坛</a> | <a href="http://www.it168.com/bottomfile/sitemap/sitemap.html" rel="nofollow">网站导航</a> | <a href="http://archive.it168.com/" rel="nofollow">往日回顾</a> </p> <address> 北京皓辰网域网络信息技术有限公司. 版权所有 <a href="http://www.it168.com/images/icp.jpg"><font color="#666666">京ICP证:060528号</font></a> 北京市公安局海淀分局网监中心备案编号:1101082001<br> <font color="#666666">广播电视节目制作经营许可证:编号(京)字第1149号</font> </address> <div style=" color:#666;margin-top:10px; text-align:right;">ITPUB推荐文章解答你所有技术难题</div> <div class="clear"> </div> </div> </div> <!-- 统计 START --> <script language="javascript" src="http://stat.it168.com/pv.js"></script> <script> function sendPV(){ var pvTrack = new PvTrack(); pvTrack.type = 35; // 频道类别ID pvTrack.channel = 461; // 频道ID pvTrack.pageType = 0; pvTrack.track(); } window.setTimeout("sendPV()", 1000); </script> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-20237423-2']); _gaq.push(['_setDomainName', '.chinaunix.net']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> <div style='display:none'> <script type="text/javascript"> var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://"); document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F0ee5e8cdc4d43389b3d1bfd76e83216b' type='text/javascript'%3E%3C/script%3E")); </script></div> <!-- END STAT PV --> <!-- <script type='text/javascript' src='http://168.it168.com/js/597.js'></script> --> <script>if(typeof(BLA)!='undefined'){BLA();}</script> </body> </html>