随笔分类 -  JAVAScript

JS添加天方法
摘要://给时间添加天function AddDay(strInterval, Number, dtTmp) { switch (strInterval) { case 's': return new Date(Date.parse(dtTmp) + (1000 * Number)); case 'n':... 阅读全文

posted @ 2009-07-15 17:47 悟〈--觉 阅读(389) 评论(0) 推荐(0)

jquery效果(练习)
摘要:http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml"> 1 2 3 4 5 6 7 8 9 10 11 1... 阅读全文

posted @ 2009-06-11 21:23 悟〈--觉 阅读(158) 评论(0) 推荐(0)

JS拖动(简单)
摘要:/*-------------------------鼠标拖动---------------------*/ var od = document.getElementById("fd"); var dx, dy, mx, my, mouseD; var odrag; var isIE = d... 阅读全文

posted @ 2009-03-09 11:53 悟〈--觉 阅读(268) 评论(0) 推荐(0)

JS跳出层(简单)
摘要:让下面层不能编辑的HTML 要跳出来的DIV的样式 JS要用的JS 如下: 阅读全文

posted @ 2009-03-06 15:35 悟〈--觉 阅读(733) 评论(2) 推荐(0)

JS跳出DIV层
摘要:无标题页 登陆 用户登陆 用户名: 密码: 登陆 关闭 阅读全文

posted @ 2009-03-02 21:52 悟〈--觉 阅读(703) 评论(0) 推荐(0)

js拖动效果
摘要: 阅读全文

posted @ 2009-02-07 15:08 悟〈--觉 阅读(493) 评论(0) 推荐(0)

js滚动事件
摘要: 阅读全文

posted @ 2009-02-07 15:07 悟〈--觉 阅读(1132) 评论(0) 推荐(0)

通过JS来获取客户端Flash版本
摘要:可以用下面一个来自google的函数, function _uFlash() { var f = "-", n = navigator; if (n.plugins && n.plugins.length) { for (var ii = 0; ii if (n.plugins[ii].n... 阅读全文

posted @ 2009-02-03 18:10 悟〈--觉 阅读(742) 评论(0) 推荐(0)

js获取URL参数
摘要:function getUrlParam(name){ var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if (r!=nu... 阅读全文

posted @ 2009-02-01 17:40 悟〈--觉 阅读(457) 评论(1) 推荐(0)

javascrip中使用Function()构造函数与使用function语句的区别
摘要:1.Fuction()构造函数可以动态定义和编译函数,而function语句只能预编译函 数,因此在每次调用使用Function()构造函数定义的函数时,javascript都要编 译一次函数,所以,如果一个函数是需要经常使用的函数就应该避免使用 Function()构造函数来定义函数。 2。使用F... 阅读全文

posted @ 2008-11-26 20:16 悟〈--觉 阅读(453) 评论(0) 推荐(0)

javascript 函数大全(转)
摘要:abs方法返回一个数的绝对值。 acos方法返回一个数的反余弦。 anchor方法在对象的指定文本两端加上一个带NAME属性的HTML锚点。 asin方法返回一个数的反正弦。 atan方法返回一个数的反正切。 atan2方法返回从X轴到点(y,x)的角度(以弧度为单位)。 atEnd方法... 阅读全文

posted @ 2008-10-28 13:54 悟〈--觉 阅读(259) 评论(0) 推荐(0)

网页常用Javascript
摘要:1.让文字不停地滚动 <MARQUEE>滚动文字</MARQUEE> 2.记录并显示网页的最后修改时间 <script language=Javascript> document.write("最后更新时间: " + document.lastModified + "") </scri... 阅读全文

posted @ 2008-10-28 09:23 悟〈--觉 阅读(266) 评论(0) 推荐(0)

关于history.go(-1)
摘要:最近在工作中遇到一个比较急手的问题如下: OnClientClick="history.go(-1);" onclick="Button1_Click" Text="取消" /> protected void Button1_Click(object sender, EventArgs e) ... 阅读全文

posted @ 2008-10-25 17:25 悟〈--觉 阅读(1335) 评论(0) 推荐(0)

jquery实现字体选择
摘要:[预览资讯标题样式] 只是为了方便记忆! 阅读全文

posted @ 2008-10-20 10:56 悟〈--觉 阅读(502) 评论(0) 推荐(0)

jquery-1.2.6.js
摘要:(function(){ /* * jQuery 1.2.6 - New Wave Javascript * * Copyright (c) 2008 John Resig (jquery.com) * Dual licensed under the MIT (MIT-LICENSE.txt) * ... 阅读全文

posted @ 2008-10-20 10:47 悟〈--觉 阅读(764) 评论(0) 推荐(0)

javascript实现四个重叠DIV切换功能
摘要:HTML如下 DIV1DIV2DIV3DIV4 1 2 3 4 阅读全文

posted @ 2008-10-18 11:44 悟〈--觉 阅读(694) 评论(0) 推荐(0)

javascript的基础小技巧蛮实用的
摘要:1.document.write(""); 输出语句 2.JS中的注释为// 3.传统的HTML文档顺序是:document->html->(head,body) 4.一个浏览器窗口中的DOM顺序是:window->(navigator,screen,history,location,documen... 阅读全文

posted @ 2008-10-16 16:57 悟〈--觉 阅读(271) 评论(0) 推荐(0)

实现DIV重叠例子
摘要:真题 | 解读 | 关注 | 疑问 bgcolor="#9bc2e0"> 会计 审计 税法 财管 经济法 href="#" target="_blank" class="zx1">07 href="#" target="_blan... 阅读全文

posted @ 2008-10-06 19:01 悟〈--觉 阅读(1733) 评论(0) 推荐(0)

实现加入收藏JS
摘要:function addBookmark(title,url) { if (window.sidebar) { window.sidebar.addPanel(title, window.location.href,""); } else if( document.all ) { window.... 阅读全文

posted @ 2008-09-19 14:53 悟〈--觉 阅读(878) 评论(1) 推荐(0)

在通过客户端实现全选和返选
摘要:前台代码如下: border="1" style="border-collapse:collapse;"> (this.checked)" /> 标题内容发布时间 onitemcommand="Repeater1_ItemCommand"> />编辑 ("message")%> ... 阅读全文

posted @ 2008-09-11 19:01 悟〈--觉 阅读(307) 评论(0) 推荐(0)