09 2010 档案

 
一个JavaScript实现的幻灯片程序分析
摘要:Javascript文件Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->/*inlineSlidesSlideshowexampleofChapter6of"BeginningJavaScriptwithDOMScriptingandAJAX"byChristianHeilmann(c)ChristianHeilmannandApress*/inlineSlides={//CSSclassesslideClass:' 阅读全文
posted @ 2010-09-24 16:51 做个不善的人 阅读(446) 评论(0) 推荐(0)
JavaScript 操作图片
摘要:1. 使用几个图片的翻转下面是一种最简单、没有使用任何缓存机制的方法:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><scripttype="text/javascript">functionrollover(img,url){document.images[img].src=url;}</script>THML的代码如下所示:Code highlighting produced by Actip 阅读全文
posted @ 2010-09-24 14:26 做个不善的人 阅读(1327) 评论(0) 推荐(0)
How to avoid error "LNK2001 unresolved external" by using DEFINE_GUID
摘要:原文:http://support.microsoft.com/kb/130869In Microsoft Visual C++, if the version of the compiler is older than a specific version, a GUID must be initialized exactly once. For this reason, there are two different versions of the DEFINE_GUID macro. One version just declares an external reference to t 阅读全文
posted @ 2010-09-12 14:24 做个不善的人 阅读(1064) 评论(0) 推荐(0)
JavaScript对象模型-执行模型
摘要:数据类型基本数据类型基本数据类型是JS语言最底层的实现。简单数值类型: 有Undefined, Null, Boolean, Number和String。注意,描述中的英文单词在这里仅指数据类型的名称... 阅读全文
posted @ 2010-09-08 16:10 做个不善的人 阅读(227) 评论(0) 推荐(0)
Javascript create Object(define new Class)
摘要:JavaScript创建新类(或对象)的方法主要有以下几种:工厂方式、构造函数式、原型方式、混合的构造函数/原型方式、动态原型方法、混合工厂方式。 1.工厂方式: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->function say() { document.write(this.name+"<br/>");}function people(name, age, sex) { var pTemp =new 阅读全文
posted @ 2010-09-05 13:00 做个不善的人 阅读(3271) 评论(0) 推荐(0)