博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

随笔分类 -  Javascript/CSS/DHTML

摘要:编辑器加载中.../// help set the text of the element, based on the browser.function setTextofElement(textControl, textValue) { // innerText only supported in IE if (document.body.innerText) { textControl.innerText = textValue; } else // other browsers use textContent { textControl.textContent = textValue; 阅读全文

posted @ 2011-07-20 16:08 Snapping 阅读(145) 评论(0) 推荐(0)

摘要:var container = $get('divA'); var links = container.getElementsByTagName("A"); 阅读全文

posted @ 2008-04-09 15:59 Snapping 阅读(205) 评论(0) 推荐(0)

摘要:New Document 首页 关于我们 爱问 三德子 首页 关于我们 爱问 三德子 阅读全文

posted @ 2007-07-18 22:57 Snapping 阅读(183) 评论(0) 推荐(0)

摘要:有些对象document.getElementById('id')根本取不到,但是$get('id')却取得到。 阅读全文

posted @ 2007-07-11 11:41 Snapping 阅读(1505) 评论(3) 推荐(0)