随笔分类 - 3 JavaScript学习
摘要:定义和用法 getElementById() 方法可返回对拥有指定 ID 的第一个对象的引用。 语法 document.getElementById(id) 注意: document.getElementById(" ") 得到的是一个对象,用 alert 显示得到的是 “ object ”,而不是具体的值,它有 value 和 length 等属性,加上 .value 得到的才 是...
阅读全文
摘要:摘自 鱼有所思的博客 http://www.phpweblog.net/kiyone/archive/2007/05/17/1206.aspx 用法: test1 test2 在JS中可以使用: test.innerHTML: 也就是从对象的起始位置到终止位置的全部内容,包括Html标签。 上例中的test.innerHTML的值也就是“test1 test2 ”。...
阅读全文
摘要:(内容来源网络,经过重新整理,可任意转摘,但请注明出处:http://www.cnblogs.com/tograce/category/157013.html)在html中使用表单,还记得吧 一简单的表单 Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com...
阅读全文
摘要:(文章出处:http://www.cnblogs.com/tograce/category/157013.html) 循环 学过C语言的人,对此应该熟悉,完全是一样的,一个简单的while循环例子: 简单的while循环 Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighli...
阅读全文
摘要:(出处:http://www.cnblogs.com/tograce/category/157013.html)JavaScript一个很通用的作用是:当鼠标置于目标上时,图片改变CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->无标题文档 标签...
阅读全文
摘要:(内容来源网络,经过重新整理,可任意转摘,但请注明出处:http://www.cnblogs.com/tograce/category/157013.html)这一节的内容是介绍:Document Object Model, Windows, and FramesJavaScript窗口操作介绍(Introduction to Window Manipulation)先回顾在html中是如何使用框...
阅读全文
摘要:(出处:http://www.cnblogs.com/tograce/category/157013.html)if-then Branching 语法Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->if (condition) { code to...
阅读全文
摘要:(内容来源网络,经过重新整理,可任意转摘,但请注明出处:http://www.cnblogs.com/tograce/category/157013.html) 变量 还是先看例子,内容很少,也很简单: JavaScript变量练习(完整代码) Code highlighting produced by Actipro CodeHighlighter (freeware) http://w...
阅读全文
摘要:(内容来源网络,经过重新整理,可任意转摘,但请注明出处:http://www.cnblogs.com/tograce/category/157013.html)先看最入门的例子,在记事本输入如下内容,再存为 001.html。 这是第一个JavaScript例子 Code highlighting produced by Actipro CodeHighlighter (freeware) h...
阅读全文

浙公网安备 33010602011771号