随笔分类 -  Web、JavaScript

摘要:jQuery 表单值相关操作 阅读全文
posted @ 2011-05-08 14:02 ABeen 阅读(350) 评论(0) 推荐(0) 编辑
摘要:1. 加入收藏:<ahref="javascript:window.external.AddFavorite(location.href,document.title);">加入收藏</a>2. 设为首页:<aonclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://w... 阅读全文
posted @ 2009-02-14 15:02 ABeen 阅读(6718) 评论(0) 推荐(0) 编辑
摘要:  08年 公司为了让网站编辑工作方便,做过这么一个简单转发文章的firefox插件。   功能:在firefox右键菜单,弹出调用页面把当前网页部分内容 Post 到网站中。   (代码仅供学习参照,部分代码未提供下载) 阅读全文
posted @ 2009-02-14 14:23 ABeen 阅读(583) 评论(0) 推荐(0) 编辑
摘要: 脑图帮助下图显示在支持脚本的所有浏览器中可实现的最低公用标准的浏览器文档对象层次. 阅读全文
posted @ 2008-12-12 22:53 ABeen 阅读(263) 评论(1) 推荐(0) 编辑
摘要:Firebug Script 调试记录 * Your new friend, console.log //显示变量 参数 console.log, console.debug, console.info, console.warn, console.error... console.log("hello world") console.log(2,4,6,8,"foo",bar) console.log("%a,%b","foo",bar) // "%"用于定义量 console.log("%s is %d years old.", "Bob", 42). * Timing and profiling // 时间及性能分析 console.profile(); //性能开始 console.time("test"); //时间开始 function Test() { for(var i = 0; i 10; i++) { console.info("t 阅读全文
posted @ 2008-09-04 17:16 ABeen 阅读(611) 评论(0) 推荐(0) 编辑
摘要:实现功能:在IE中右键菜单中取出网页中的相关信息。 1、建立调用的.htm文件,内容如下: 阅读全文
posted @ 2008-03-17 16:51 ABeen 阅读(568) 评论(0) 推荐(0) 编辑
摘要: Ajax提供与服务器异步通信的能力,借助于Ajax,可以在用户单击按钮时,使用JavaScript和 DHTML立即更新UI,并向服务器发出异步请求,以执行更新或查询数据库。当请求返回时,就可以使用JavaScript和CSS来相应地更新UI,而 不是刷新整个页面。最重要的是,用户甚至不知道浏览器正在与服务器通信:Web站点看起来是即时响应的。示例代码如下: 阅读全文
posted @ 2007-05-03 00:13 ABeen 阅读(851) 评论(3) 推荐(0) 编辑
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--代码摘自Jeffrey Zhao的Demo<scriptlanguage="javascript"type="text/javascript">Type.registerNamespace("... 阅读全文
posted @ 2007-04-05 00:38 ABeen 阅读(406) 评论(1) 推荐(0) 编辑
摘要:取url的hostnameCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--<scriptlanguage="JavaScript"type="text/JavaScript">functionopenup(){varurl=getUrlHo... 阅读全文
posted @ 2007-02-05 20:15 ABeen 阅读(1309) 评论(0) 推荐(0) 编辑
摘要:简单模式 • 创建: 一个文本格式或正则表达式构造函数 文本格式: /pattern/flags 正则表达式构造函数: new RegExp("pattern"[,"flags"]); • 参数说明: pattern -- 一个正则表达式文本 flags -- 如果存在,将是以下值: g: 全局匹配 i: 忽略大小写 gi: 以上组合 例: var re=/ / var re=/ /g匹配全部空格 var re=/web/gi 不区分大小写 并且是全局搜索 阅读全文
posted @ 2006-12-15 21:58 ABeen 阅读(431) 评论(0) 推荐(0) 编辑
摘要:当网页内容太长或要导航到其它页面的一个具体位置时,可以使用 Html 中书签。 1. 同一个web页面链接 2. 不同的页面之间转接 阅读全文
posted @ 2006-12-14 20:54 ABeen 阅读(1629) 评论(0) 推荐(0) 编辑
摘要:1、将正数转化为美元数值 2、将10进制转化成16进制 阅读全文
posted @ 2006-12-13 00:09 ABeen 阅读(964) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示