JS Check:
javascriptlint http://www.javascriptlint.com/index.htm
jslint http://www.jslint.com/
JS UT:
http://www.jsunit.net/
JS ST:
http://www.outofhanwell.com/ieleak/index.php?title=Main_Page Drip
http://blogs.msdn.com/gpde/pages/javascript-memory-leak-detector.aspx
http://blogs.msdn.com/gpde/pages/javascript-memory-leak-detector-v2.aspx
http://home.wanadoo.nl/jsrosman/
https://addons.mozilla.org/en-US/firefox/addon/2490
......
利用Cookie:Cookie是浏览器存储少量命名数据.它与某个特定的网页或网站关联在一起。
Cookie用来给浏览器提供内存,以便脚本和服务器程序可以在一个页面中使用另一个页面的输入数据。
Post.htm
以下是引用片段:
<input type="text" name="txt1">
<input type="button" value="Post">
<script language="javascript" >
function setCookie(name,value)
{
/*
*--------------- setCookie(name,value) -----------------
* setCookie(name,value)
* 功能:设置得变量name的值
* 参数:name,字符串;value,字符串.
* 实例:setCookie('username','baobao')
*--------------- setCookie(name,value) -----------------
*/
var Days = 30; //此 cookie 将被保存 30 天
var exp = new Date();
exp.setTime(exp.getTime() + Days*24*60*60*1000);
document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString();
location.href = "Read.htm"; //接收页面.
}
</script>
Read.htm
以下是引用片段:
<script language="javascript" >
function getC ......
Build your web applications quickly and easily using the industry leading web application IDE -- Aptana Studio.
Introduction:
Aptana Studio is a complete web development environment that combines powerful authoring tools for HTML, CSS, and JavaScript, along with thousands of additional plugins created by the community.
官方网站:http://www.aptana.org/
下载地址:Aptana Stuido
Firefox浏览器
在“快车道”中浏览:升级到史上最快、最安全和最聪明的Firefox火狐浏览器
Introduction:
世界著名的一款浏览器!
官方网站:http://www.mozillaonline.com/
下载地址:Firefox
扩展插件:https://addons.mozilla.org/zh-CN/firefox/
Firebug - Web Development evolved
Web Development evolved
Introduction:
Firebug integrates with Firefox to put a wealth of web development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page.
官方网站:http://getfirebug.com/
下载地址:Firebug
技术文档:http://getfirebug.com/wik ......
几乎所有的富 Web 应用都基于一个或多个 Web UI 库或框架,这些 UI
库与框架极大地简化了开发进程,并带来一致,可靠,以及高度交互性的用户界面。本文介绍了 15 个非常强大的 JavaScript Web UI
库,非常适合各种各种规模的富 Web 应用的开发。
LivePipe
LivePipe
UI
基于 Prototype Javascript 框架
,包含了
一整套经严格测试并高度可扩展的 UI 控件,拥有很好的文档,在不支持 JavaScript 的环境中,可以无缝降级使用。包括 Tab,
窗体,文本框,多选框,评分控件,进度条,滚动条,右键菜单等多种控件。
LivePipe
首页与下载
LivePipe
演示与示例
UKI
UKI
是一套简单的 JavaScript UI 工具集,用于快速创建桌面风格的 Web 应用。包含的控件从滑动条,到分栏视图,不一而足。熟悉 jQuery
的开发者会发现这个工具很容易上手,非常简洁,无需安装框架,不依赖 CSS 引用。
UKI
主页与下载
UKI
控件,演示,示例
MochaUI
MochaUI
是 MooTools
Javascript 框架
与 ExplorerCanvas 的一个备受欢迎的扩展,可以用来快速创建 Web 应用,Web
桌面,网站,饰件,独立 Windows,Modal 对话框等等。
MochaUI
主页与下载
......
1. oncontextmenu="window.event.returnValue=false" 将彻底屏蔽鼠标右键
<table border oncontextmenu=return(false)><td>no</table> 可用于Table 2. <body onselectstart="return false"> 取消选取、防止复制
3. onpaste="return false" 不准粘贴
4. oncopy="return false;" oncut="return false;" 防止复制
5. <link rel="Shortcut Icon" href="favicon.ico"> IE地址栏前换成自己的图标
6. <link rel="Bookmark" href="favicon.ico"> 可以在收藏夹中显示出你的图标
7. <input style="ime-mode:disabled"> 关闭输入法
8. 永远都会带着框架
<script language="JavaScript"><!--
if (window == top)top.location.href = "frames.htm"; //frames.htm为框架网页
// --></script>
9. 防止被人frame
<SCRIPT LANGUAGE=JAVASCRIPT><!--
if (top.location != self.location)top.location=self.location;
// --></SCRIPT>
10. 网页将不能被另存为
<noscript><*** src="/*.html>";</***></noscript>
11. <input type=button value="/查看网页源代码
onc ......
//the common event,If your brower is firefox,you should use this function instead of "window.event"
function getEvent() {
if(document.all)
return window.event; //get ie event
func=getEvent.caller;
while(func!=null) {
var arg0=func.arguments[0];//alert(arg0);
if(arg0) {
if((arg0.constructor==Event || arg0.constructor ==MouseEvent) || (typeof(arg0)=="object" && arg0.preventDefault && arg0.stopPropagation)) {
return arg0;
}
}
func=func.caller;
}
return null;
}
//去除左侧空格
function LTrim(str)
{
return str.replace(/^\s*/g,"");
}
//去右空格
function RTrim(str)
{
return str.replace(/\s*$/g,""); ......