文章分类 -  Javascript

上一页 1 2 3 4 5 下一页
Javascript
Date JS
摘要:var ORG_DATE_FORMAT = 3;var ORG_DATE_SEPARATOR = '/';var ORG_DATE_START_DAY = 0;var ORG_SHOW_WEEK_NUMBER = '0';var _oCalPopUp;var _oCalInput;var _sDateFormats = new Array("M/d/yy","M/d/yyyy","MM/dd/yy","MM/dd/yyyy","d/M/yy","d/M/ 阅读全文
posted @ 2013-06-13 17:39 西湖浪子 阅读(230) 评论(0) 推荐(0)
Js参数值中含有单引号或双引号解决办法
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><script type="text/javascript">function Display(LoginEmail, UserName, ID) { alert(LoginEmail); }</script>.使用单引号传参:<a href="javascript:Display('abc@abc.com',' 阅读全文
posted @ 2013-05-07 10:50 西湖浪子 阅读(885) 评论(0) 推荐(0)
javascript中对Date类型的常用操作
摘要:/*** 日期时间脚本库方法列表:* (1)Date.isValiDate:日期合法性验证* (2)Date.isValiTime:时间合法性验证* (3)Date.isValiDateTime:日期和时间合法性验证* (4)Date.prototype.isLeapYear:判断是否闰年* (5)Date.prototype.format:日期格式化* (6)Date.stringToDate:字符串转成日期类型* (7)Date.daysBetween:计算两个日期的天数差* (8)Date.prototype.dateAdd:日期计算,支持正负数* (9)Date.prototype.d 阅读全文
posted @ 2013-03-13 15:12 西湖浪子 阅读(372) 评论(0) 推荐(0)
JS 时钟代码
摘要:<script type="text/javascript"> function jsKrClock(){ //seoul time zone var zone = 8; var dst = 0; var time = new Date(); var gmtMS = time.getTime() + (time.getTimezoneOffset() * 60000); var gmtTime = new Date(gmtMS); var clock_hours = gmtTime.getHours() + zone; var clock_minutes = g 阅读全文
posted @ 2013-03-10 18:56 西湖浪子 阅读(295) 评论(0) 推荐(0)
google map
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"/&g 阅读全文
posted @ 2012-12-28 13:05 西湖浪子 阅读(217) 评论(0) 推荐(0)
自动调整IFRAME高度
摘要:function iframeAutoFit(iframeObj){ setTimeout(function(){if(!iframeObj) return;iframeObj.height=(iframeObj.Document?iframeObj.Document.body.scrollHeight:iframeObj.contentDocument.body.offsetHeight);},200) } 阅读全文
posted @ 2012-12-26 10:51 西湖浪子 阅读(143) 评论(0) 推荐(0)
随便写的 对象交替的方法
摘要:<ul class="ss"><li> <input name="s1" type="radio" value="1" /><a href="javascript:">11</a></li> <li><input name="s1" type="radio" value="1" /><a href="javascript:&q 阅读全文
posted @ 2012-08-02 21:09 西湖浪子 阅读(108) 评论(0) 推荐(0)
将html转换为php,javascript和asp的在线工具
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb23 阅读全文
posted @ 2012-08-01 14:39 西湖浪子 阅读(1609) 评论(0) 推荐(0)
JS混淆工具
摘要:<HTML><HEAD><TITLE>T4nk JS混淆工具</TITLE><META content="MSHTML 6.00.2800.1528" name=GENERATOR><META content="" name=Author><META content="" name=Keywords><META content="" name=Description></HEAD><BODY>&l 阅读全文
posted @ 2012-08-01 14:37 西湖浪子 阅读(2683) 评论(0) 推荐(0)
滚动文本效果
摘要:<script type="text/javascript">function Dron_ScrollBox(uid){this.scrollBox = document.getElementById(uid);this.scrollBoxHeight = this.scrollBox.clientHeight;this.scrollBoxInner = this.scrollBox.innerHTML;this.scrollCol = this.scrolln = 0;this.setScroll = function (){ this.scrollBox.s 阅读全文
posted @ 2012-07-22 10:06 西湖浪子 阅读(121) 评论(0) 推荐(0)
对联广告代码
摘要:<script type="text/javascript">function closeDiv() {document.getElementById('floater1').style.visibility = 'hidden';document.getElementById('floater').style.visibility = 'hidden';}self.onError = null;currentX = currentY = 0;whichIt = null;lastScrollX = 阅读全文
posted @ 2012-07-22 09:28 西湖浪子 阅读(334) 评论(0) 推荐(0)
feixn jPlugin.js
摘要:(function(g) { var e = /(http:\/\/|https:\/\/|ftp:\/\/|www\.){1}[\w-]+(\.[\w-]+)*(:[\d]+)?(\/[\w-\.\/?&=]*)?/ig; var a = /<img\s[\s\S]*?(alt='[^']*'|alt="[^"]*"|alt=[\S]*)[\s\S]*?(>[^<]*<\/img>|>)/gi; var c = /^<br\s*\/?>$/i; g.extend(g.fn, { jC 阅读全文
posted @ 2012-07-10 23:15 西湖浪子 阅读(374) 评论(0) 推荐(0)
feixin group.js
摘要:(function(d) { d.extend(d.fn, { jGroupTree: function(g) { var k = d.extend({ target: d(document.body), enable: true, isSinglePattern: true, onGroupListExpand: function() {}, onBuddyItemDbClick: function() {}, onBuddyItemClick: function() {}, onBuddyItemMouseOver: function() {} }, g); k.target = ((ty 阅读全文
posted @ 2012-07-10 23:15 西湖浪子 阅读(291) 评论(0) 推荐(0)
feixin WebIM.js
摘要:var mainPageUrl = "main.aspx";var loginPageUrl = "login.aspx";var addBuddyUrl = "WebIM/AddBuddy.aspx?Version={0}";var getConnectUrl = "WebIM/GetConnect.aspx?Version={0}";var getContactInfoUrl = "WebIM/GetContactInfo.aspx?UserType={0}&UserValue={1}& 阅读全文
posted @ 2012-07-10 23:14 西湖浪子 阅读(1039) 评论(0) 推荐(0)
feixin WebUtility.js
摘要:String.prototype.endsWith = function(a) { if (typeof a == "undefined" || a == "" || this.length == 0 || a.length > this.length) { return false } if (this.substring(this.length - a.length) == a) { return true } else { return false } return true};String.prototype.startsWith = fu 阅读全文
posted @ 2012-07-10 23:13 西湖浪子 阅读(252) 评论(0) 推荐(0)
feixin WebIMUtility.js
摘要:var __isSmsOnline = /^0+.0+:0+:0+$/;function jCompactUri(d) { this.mobileNoOrSid = 0; this.isRobot = false; this.logicalPool = -1; this.isMobileNo = false; if (!d) { return } if (d.startsWith("tel:")) { this.mobileNoOrSid = parseMobileNo(d.substring(4)); this.isMobileNo = true } else { if 阅读全文
posted @ 2012-07-10 23:13 西湖浪子 阅读(281) 评论(0) 推荐(0)
基于jquery的loading 加载提示效果实现代码
摘要:loading 加载提示 ······ 透明遮罩 居中 body{ margin: 0; font-size: 12px; line-height: 100%; font-family: Arial, sans-serif; } .background { display: block; width: 100%; height: 100%; opacity: 0.4; filter: alpha(opacity=40); background:while; position: absolute; top: 0; left: 0; z- 阅读全文
posted @ 2012-07-09 22:06 西湖浪子 阅读(3481) 评论(0) 推荐(0)
Google Analytics(分析)跟踪代码:电子商务
摘要:http://code.google.com/intl/zh-CN/apis/analytics/docs/gaJS/gaJSApiEcommerce.html跟踪代码:电子商务 注意:本参考文档描述的是可用于在 Google Analytics(分析)报告中设置电子商务跟踪的各种方法。有关设置电子商务跟踪的更多信息,请参阅电子商务跟踪。GATC 电子商务方法_addItem(orderId, sku, name, category, price, quantity)_addTrans(orderId, affiliation, total, tax, shipping, city, stat 阅读全文
posted @ 2012-02-16 15:15 西湖浪子 阅读(1387) 评论(0) 推荐(0)
MicrosoftAjaxWebForms.js
摘要://----------------------------------------------------------// Copyright (C) Microsoft Corporation. All rights reserved.//----------------------------------------------------------// MicrosoftAjaxWebForms.jsType.registerNamespace("Sys.WebForms");Sys.WebForms.BeginRequestEventArgs = functio 阅读全文
posted @ 2011-12-22 10:50 西湖浪子 阅读(789) 评论(0) 推荐(0)
转 Asp.net Ajax ASP.NET 局部更新PostBack的客户端调用过程
摘要:<script type="text/javascript">Sys.WebForms.PageRequestManager._initialize('ScriptManager1', document.getElementById('form1'));Sys.WebForms.PageRequestManager.getInstance()._updateControls(['tUpdatePanel1'], [], [], 90);</script> 看一下MicrosoftAjaxWebForms 阅读全文
posted @ 2011-12-21 17:56 西湖浪子 阅读(458) 评论(0) 推荐(0)

上一页 1 2 3 4 5 下一页