Ria. Js. Css 2. Css 3. Contents -- Eloquent JavaScript. Dev: xHTML / CSS / Javascript - Blog Dreaminvasion - développeme. Paj's Home: Cryptography: JavaScript MD5. MD5 is a secure hash algorithm. It takes a string as input, and produces a 128-bit number, the hash. The same string always produces the same hash, but given a hash, it is not generally possible to determine the original string. Secure hash algorithms are useful for protecting passwords and ensuring data integrity. This site has a JavaScript implementation of MD5, and some other secure hash algorithms. This allows web sites to perform simple cryptography on clients, enabling some useful applications: Protecting Passwords Without protection, passwords are vulnerable to network sniffing.
Generating Passwords Most people have accounts on many different web sites. Self-Decrypting Pages Internet email messages are vulnerable to interception and generally considered unsuitable for confidential communication. Demonstration hex_md5("message digest") = "f96b697d7cb7938d525a2f31aaf161d0"hex_sha1("160-bit hash") = "90d925d853c3d35cd54070bb75280fefad9de9e7" More Information Scripts Instructions Other Uses.
Javascript ant // resources. Ext JS - JavaScript Library. CopySourceAsHtml (CSAH) Online beautifier for javascript (js beautify, pretty-print) JavaScript入门学习书籍的阶段选择 - PlanABC - 怿飞's Blog. XP widgets. Aptana.tv. Using prototype.js v1.5.0. Last update: August 18th 2007 Table of Contents What is that? In case you haven't already used it, prototype.js is a JavaScript library initially written by Sam Stephenson. This amazingly well thought and well written piece of standards-compliant code takes a lot of the burden associated with creating rich, highly interactive web pages that characterize the Web 2.0 off your back. When I first started trying to use this library, a few years ago, I noticed that the documentation was definitely not one of its strongest points.
As many other developers before me, I got my head around prototype.js by reading the source code and experimenting with it. I thought it would be nice to take notes while I learned and share with everybody else. I'm also offering an un-official reference for the objects, classes, functions, and extensions provided by this library. toc Related article Advanced JavaScript guide. The utility functions The library comes with many predefined objects and utility functions. <? JSIntegration 主页. JavaScript 数组的 uniq 方法. Code Conventions for the JavaScript Programming Language. This is a set of coding conventions and rules for use in JavaScript programming.
The long-term value of software to an organization is in direct proportion to the quality of the codebase. Over its lifetime, a program will be handled by many pairs of hands and eyes. If a program is able to clearly communicate its structure and characteristics, it is less likely that it will break when modified in the never-too-distant future. Code conventions can help in reducing the brittleness of programs. All of our JavaScript code is sent directly to the public. It should always be of publication quality. JavaScript Files JavaScript programs should be stored in and delivered as .js files. JavaScript code should not be embedded in HTML files unless the code is specific to a single session. Whitespace Where possible, these rules are consistent with centuries of good practice with literary style. Blank lines improve readability by setting off sections of code that are logically related. while (true) { Names Is.
Modello, JavaScript Class Framework. Best Free Web Developer Tool for Debugging. QuickRef.org - all your docs are belong to us - PHP, Perl, CSS, Mellow Morning » Introducing a cross site ajax plugin for Protot. Update: there have been some improvements to this plugin. Have a look at this post regarding the update. Thanks for the feedback! After some days of hard labor, I finished my cross site Ajax plugin for the prototype framework 1.5.0.
(Download Plugin Here) While working on a new product of mine I realized I needed cross site Ajax, which is not supported in the Prototype framework. During cross site Ajax requests the standard XmlHttpRequest approach breaks down. Some other libraries such as dojo and jquery do support the script method for doing Ajax. Prototype’s structured way of doing Ajax was my main reason to choose the prototype framework.
The cross site plugin simply allows you to do Ajax cross site, by specifying crossSite: true (line 3 of the above example). How it works – Technical Aspects This plugin uses the dynamic script tag technique. Detecting the loading of a script element is not that easy. Detecting failure is rather cumbersome for the script technique. Methods: [post, get] 如何提高网页的效率 14条建议 - 第2页 | ITPUB | 第一条:Make Fewer HTTP Requests 尽可能的减少HTTP的Request请求数。 80%的用户响应时间都是浪费在前端。 而这些时间主要又是因为下载图片、样式表、JavaScript脚本、flash等文件造成的。 减少这些资源文件的Request请求数将是提高网页显示效率的重点。 这里好像有个矛盾,就是如果我减少了很多的图片,样式,脚本或者flash,那么网页岂不是光秃秃的,那多难看呢?
其实这是一个误解。 我们只是说尽量的减少,并没有说完全不能使用。 1:用一个大图片代替多个小图片。 这的确有点颠覆传统的思维了。 第一张大图片花费时间为:Blocked:13.034sSend:0.001sWait:0.163sReceive:4.596sTTFB:0.164sNetWork:4.760s功耗时:17.795s真正用于传输大文件花费的时间为Reveive时间,即4.596s,多数的时间是用来检索缓存和确定链接是否有效的Blocked时间,供花费13.034s,占总时间的73.2%。 第二张小图片花费时间为:Blocked:16.274sSend:小于0.001sWait:0.117sReceive:0.397sTTFB:0.118sNetWork:0.516s功耗时:16.790s真正用于传输文件的花费时间是Reveive时间,即0.397s,这的确要比刚才大文件的4.596s小很多。 如果这些数据还不够说服你的话,让我们看看下面这张图。 其中藏青色的为传输文件花费的Reveive时间,而前面白色的为检索缓存和确认链接是否有效的Blocked时间。 大文件和小文件下载所需时间的确是不同的,差异的绝对值不大。 2:合并你的css文件。 图:合并与融合 我以前犯了一个错误,你在看我《样式表的组织与规划》的系列文章中会知道。 The Elements of Style.
Prototype UI. JavaScript的性能. Javascript Performance. Fasterj Our valued sponsors who help make this site possible New Relic: Try free w/ production profiling and get a free shirt! ManageEngine's Site24x7: End-to-End analysis on Java EE web transactions. Sign up for FREE! AppDynamics: Get complete browser to backend visibility. Kirk Pepperdine is asked to examine Javascript and AJAX performance, and looks at all the performance aspects including memory and network impact. Published August 2007, Author Kirk Pepperdine A number of weeks ago I was asked to look into JavaScript performance. Now I may not have known much about JavaScript but I did have some preconceived notions.
First to familiarize myself with the landscape I took at look at the JavaScript engines that were available. Though this does limit the problem, it doesn't eliminate it. One of the most potentially objectionable bits of advice that I ran across is something I'd not run into for quite some time in the Java world. Figure 1. All in all the experience was interesting. 全文检索博客 » 一行代码加速IE的JavaScript的方法. My experiments with .Net : Combine CSS with JS and make it into. Now, if you have by any chance worked on page load optimizations, you would know how costly each resource download is. The more the number of external resources that you refer to, the more the time it takes for the page load to complete.
Typically, web pages refer to many external CSS and JS files and hence incur many resource downloads. The advice from the PLT (page load time) gurus is to combine all the CSS files into one and all the JS files into one so as to reduce the number of resource downloads to just two. This, without any doubt, would help boost your PLT. If you feel that two downloads still isn't the best, I concur. In this post, we'll look at a technique to combine CSS with JS and get the resource download count to one! The technique relies on how CSS and JS parser behaves in IE and Firefox. When the CSS parser encounters a HTML comment token (<! Look at the below JS+CSS code snippet... You can refer to the above content in both the SCRIPT and LINK tags in your HTML page. Prototype API搜索.
API.Prototype API Documentation. Curl.js (with IE 6/7 support) <form name="lst" id="lst" method="post" action=".. curl.js 1.4 allows you to add an page curl effect (inc. backside mask) to images on your webpages. It uses unobtrusive javascript to keep your code clean. It works in all the major browsers - Mozilla Firefox 1.5+, Opera 9+, Safari and IE6+. On older browsers, it'll degrade and your visitors won't notice a thing.CVI-lab: Get a fast impression of the effects and their illustration qualities. Shows some of the things curl.js does. First Image with class = "curl invert", others with class = "curl isizeN" (different sizes)... If you want flexibility, use "cvi_curl_lib.js" instead of "curl.js".
Click to add or remove curl Move over to in/decrease curl Move over to change curl Mouse up/down to change curl. 程序员 UI(用户界面设计)指南. 当然,这是设计。 实际上,搅拌机 C 还没有建成,并且也没有 3 号或者 5 号生产线。 如下图所示: 细心的读者一定注意到了: " 怎么把面团从混合器 B 运到生产线 6" ? 哦,那就是为什么 Wee Joel 会参与其中了,这正是我的工作。 我要站在混合器 b 的左边,然后将搅拌完成的, 180 公斤重的面团,放进一个带轮子的大浴缸里。 当然也有其他问题。 开头几天很痛苦,也不知道怎么熬过来的,浑身酸痛,身上的每一块地方都是疼,还磨了很多水泡。 一开始,我无法保证 6 号线的面团供应流畅不断。 一个星期左右,我已经可以对付生产线这套流程了。 我开始思考为什么,为什么好多啤酒商会祈祷,让日子过的更好些。 有一天,思考这个问题的时候,我注意到,其中一个浴缸的轮子不太好用,转不动了,推不动了。 当然,我也有些胜利的经验。 日子就是这样。 若干年后,当我上大学,我了解了一个重要的心理学理论,即所谓学习无助感,由马丁博士突出 。 工作的快乐感和你对周围环境的掌控程度息息相关,你越是觉对周围的环境可以很好地控制,越是可以体会到更多的工作的快乐。 现在让我们停下来,回去电脑去。 Pete 是一个 windows 用户。 这正是我们要分析的问题所在。 对麦金塔电脑,当你想搬到一个窗口,你可以抓住任何边缘,用鼠标随意移动。 在 windows 下,当一个信息对话框弹出时,你可以按下回车键或空格键取消这个对话框中。 皮特还学会了用 ALT+ f4 的关闭窗户。 还有一些小小的挫折,不过 pete 最后都克服了。 Any edge.
大多数关于用户界面的问题的争论,焦点都不在重点。 用户界面非常重要,因为它影响到感觉,情绪,当然是你的用户的情绪。 Thus, the cardinal axiom of all user interface design: 因此,用户界面设计最基本的原则如下: 好的用户界面的设计是指 程序的运行正好符合用户对他的期望。 这是一个基本的规则,所有其他的规则,都是基于此上的推论。 PhotoShop-like JavaScript Color Picker. Demo Download Update: Many people have noted “it looks like [picker X]” and they are right: there are tons of pickers out there (I listed a few in the original post). The main difference in mine is that it has all 6 picking options (H,S,V,R,G,B) not just Hue. I haven’t seen one that does that and this is a fun way of showing what JavaScript can do. There are a lot of nice JavaScript color pickers out there (colorjack, colourmod, yahoo, dojo, nogray, mootools), but none of them has a full HSB and RGB options of Photoshop’s picker. The other options is to use transparent PNGs and opacity to fake the maps. Tested on IE5.5, IE6, IE7, FF2, Opera 9, Safari 2. [JavaScript] XML.ObjTree - XML source code from/to JavaScript ob.
XML.ObjTree class is a parser/generater for XML source code and JavaScript object. This is a JavaScript version of XML::TreePP for Perl. This also works as a wrapper for XMLHTTPRequest and successor to JKL.ParseXML class when using with prototype.js or JSAN's HTTP.Request class. Attributes' prefix '@' like E4X (ECMAScript for XML) is also available. Safari for Intel Mac is supported. XML.ObjTree Group is now opened on Yahoo! Groups. Download and Usage Download from JSAN or links below: Archive: XML.ObjTree-0.24.tar.gzTARGZ .js source code only: lib/XML/ObjTree.jsJavaScript Document: READMEREADMEChangesChanges This class is tested on IE 7, Firefox 1.5.0, Opera 8.53 and Safari 2.0.3. Static Loading by <script> Element Static loading by <script> element.
<html><head><script src="lib/XML/ObjTree.js"></script></head><body><script><! Dynamic Loading by JSAN.use() method Dynamic Loading by JSAN.use() method. I prefer <script> element's way which is simple and fast. JavaScript Object Mapping <? Examples. JAVASCRIPT TOOLBOX: 25+ Tools & Tutorials For JavaScript. JavaScript is one of the most often used languages on the web, and it seems to be gaining in popularity each day. We've gathered 25+ tools and tutorials which will be useful to any JavaScript programmer - novice or pro. ActiveWidgets.com - A component library that gives you AJAX-style fuctions with common visual elements. Agile Partners Photo Resizing Tutorial - A tutorial on how to use the Prototype and script.aculo.us libraries to build an interactive photo resizer.
ByteFX - A low-level framework for simple JavaScript effects. DevGuru - Defines all the terms of JavaScript and gives you code samples of what they do. DojoToolkit.org - An open source DHTML toolkit built in JavaScript and based on several other tools. Drag & Drop Sortable Lists - Tutorial for creating sortable lists with drag & drop functions. DynamicDrive.com - A large collection of DHTML and JavaScripts for your use. JavaScript-reference.info - A reference site that teaches you both how to read and write JavaScript. JSValidate.
User Scripts. /packer/ Proto.Menu :: prototype based context menu.