
jquery
java_mail_test
这个作者很懒,什么都没留下…
展开
-
jquery.prototype.data
jquery运行的闭包中生成变量expando = 'jQuery' + new Date 然后在闭包中弄了1个数 每次调data的时候+1 往元素的expando 属性上挂 这个数 然后将属性存到$.cache中 键为元素的expando对应的数字 值为存储的东西 (function($) { var expand...原创 2010-11-25 21:32:19 · 117 阅读 · 0 评论 -
mozilla中span设置宽度width , 画日历时发现
span的默认display属性是inline,这样导致了在firefox中无法对span设置宽度属性,需要调整span的display属性为inline-block就好了。这样ie中和firefox中就都能设置display属性了。<html> <head> </head> <body&g...原创 2010-01-01 18:48:55 · 121 阅读 · 0 评论 -
模拟黑客帝国里面的文字下落
<html> <head> </head> <body bgcolor="black"> <script> //创建下面的div , 子div的个数是2-7 /* <div style="float:left"> <div>1</di原创 2010-01-01 10:14:44 · 239 阅读 · 0 评论 -
获得浏览器大小
function getBrowserWindowSize() { var de = document.documentElement; return { 'width':(window.innerWidth || (de && de.clientWidth) || doc...原创 2009-12-30 15:25:44 · 113 阅读 · 0 评论 -
ie a支持click火狐不支持 accessKey同样 , document.all可以判读firefox
if(document.all) { alert('ie'); } else { alert('firefox or other'); } 火狐不支持document.getElementById('myA').click();document.getElementById('myA').accessKey = 'w';但...原创 2009-12-30 05:15:47 · 151 阅读 · 0 评论 -
document.getElementsByTagName特殊之处
IE中有一个特殊点就是:IE中div和table等元素没有name属性,使用document.getElementsByName。得不到任何值,切记!解决办法: 1、元素命名id和name在一个页面中最好都不要相同(避免IE混淆id和name的bug) 2、div和table等元素结合id和document.getElementsByTagName来使用...原创 2009-12-30 04:25:29 · 369 阅读 · 0 评论 -
javascript数组复习
<script> var arr1 = new Array(1 ,3 ,5 ,7 , 9); var arr2 = new Array(2 , 4 , 6 ,8 , 10); var arr3 = arr1.concat(arr2); document.write(arr1.length + "," + arr2.length + "...原创 2009-12-30 04:00:57 · 102 阅读 · 0 评论 -
javascript apply
<script> function Animal() { this.name = 'Animal'; this.showName = function() { return this.name; }; ...原创 2009-12-27 00:20:22 · 293 阅读 · 0 评论 -
javascript面向对象2
javascript中面向对象中分为公有 , 私有 , 特权 , 静态成员。(摘自视频,我是javascript菜鸟) 说明如下:function MyClass(name , age) { this.name = name ; this.age = age; var tmpStr = 'Hello , world!'; this.pr...2009-12-25 01:19:15 · 93 阅读 · 0 评论 -
javascript 继承
var person = {}; person.getName = function() { alert('person name'); }; var student = {}; student.getName = person.getName; person.getName = function() { alert('person1 name'); }; person.getName()...2009-12-22 23:24:45 · 60 阅读 · 0 评论 -
javascript 面向对象
function myClass(a , b) { this.a = a ; this.b = b; this.toString = function() { return this.a + "," + this.b; };} var obj = new myClass('hello' , 'world');...2009-12-22 23:10:10 · 83 阅读 · 0 评论 -
javascript学习一
1.避包(function(){ //这里是需要实现的方法 function myFunction1() { alert("my function 1"); } function myFunction2() { alert("my function 2"); } func...2009-12-22 00:11:20 · 79 阅读 · 0 评论 -
javascript小练习
<html> <head> <style> #leftNavi { width:200px; height:800px; border:solid 1px; backgrou...原创 2010-01-09 16:11:06 · 126 阅读 · 0 评论 -
jquery学习
怎样快速获得一个对象是jquery对象 if(a.jquery) alert('this is a jquery object'); else alert('this is not a jquery object'); 将数组和对象转换成utf-8字符串 如果对象是javascript数组,或者是jquery的对象那么取得数组中每一个元素的name和value属性将...2010-04-10 11:10:47 · 111 阅读 · 0 评论 -
closet 和 parents 区别
closest和parents的主要区别是:1,前者从当前元素开始匹配寻找,后者从父元素开始匹配寻找;2,前者逐级向上查找,直到发现匹配的元素后就停止了,后者一直向上查找直到根元素,然后把这些元素放进一个临时集合中,再用给定的选择器表达式去过滤;3,前者返回0或1个元素,后者可能包含0 个,1个,或者多个元素。...原创 2010-10-28 18:29:16 · 251 阅读 · 0 评论 -
secure假死
secure假死 ctrl+q回复原创 2011-05-08 20:13:03 · 160 阅读 · 0 评论 -
MyEclipse中安装jquery插件
从remote site中安装插件http://www.spket.com/update/ 从网站上下载未压缩版本的jquery.js,最好是1.2.6 打开window -> preference -> 配置spket -> javascript profiles -> new -> Jquery -> Add File -> ...2010-02-27 13:29:26 · 155 阅读 · 0 评论 -
简易版的jquery tabs
jquery tabs2009-09-08 18:50:24 · 130 阅读 · 0 评论 -
jquery 简单 Toolkit
Jquery Toolkit2009-09-08 18:21:12 · 106 阅读 · 0 评论 -
Firefox的临时文件的路径
C:\Documents and Settings\Administrator\Local Settings\Application Data\Mozilla\Firefox\Profiles\t0os0ar3.default\Cache2009-09-08 15:19:14 · 378 阅读 · 0 评论 -
汉字范围 unicode
一 龥2009-09-06 13:20:05 · 100 阅读 · 0 评论 -
4u wma mp3 converter 可以把wma 转换成mp3
直接用4u wma mp3 converter转换wam 为 mp3 这个东西虽然有界面 , 但是支持命令行格式 WMAMP3Converter.exe(绝对路径) wma文件地址 /mp3 就搞定了, 可以使用java 的Runtime来用 Runtime runtime = Runtime.getRuntime(); Process ...2009-09-05 20:33:48 · 76 阅读 · 0 评论 -
flash flv player
<style type="text/css"> body { background-color: #fff; padding: 0 25px; color:#000; font: 13px/18px Arial, sans-serif; } a { color: #360; } h3 { padding-top: 50px; } ol { margin:5px...2009-09-05 12:57:09 · 107 阅读 · 0 评论 -
jquery pagination
test原创 2009-08-26 03:25:13 · 98 阅读 · 0 评论 -
jquery 获得图片等比缩放的值(开始 , 结束坐标点)
附件中原创 2009-08-20 15:11:32 · 492 阅读 · 0 评论 -
视频网站
http://down.zzbaike.com/ebook/index.html2009-12-20 23:16:44 · 169 阅读 · 0 评论 -
css javascript autocomplete
<html> <head> <style> #belowDiv { border : solid 1px; background-color:red; } #bigDiv { margin...2009-12-20 17:57:24 · 171 阅读 · 0 评论 -
javascript获取css属性
//获得dom css的方法 function getStyle( elem, name ) { //如果该属性存在于style[]中,则它最近被设置过(且就是当前的) if (elem.style[name]) { ...2009-12-20 17:28:36 · 104 阅读 · 0 评论 -
使用Commons-lang构建类
package com.entity.bean;import org.apache.commons.lang.builder.EqualsBuilder;import org.apache.commons.lang.builder.HashCodeBuilder;import org.apache.commons.lang.builder.ReflectionToStringBuild...2009-11-06 19:48:00 · 93 阅读 · 0 评论 -
中英文所占字节数
package com.test;import java.io.UnsupportedEncodingException;public class byteCountTest { public static void printByteCount(String str , String encoding) { int length = 0; ...2009-11-03 20:22:44 · 440 阅读 · 0 评论 -
父类-子类初始化顺序-面试题
package com.instance.order;public class FatherClass { public static String F_S_S = "父类-静态变量"; private String f_s = "父类-变量"; static { System.out.println(F_S_S); System.out.println("父类-静态初始化快"); } ...2009-11-02 09:28:07 · 186 阅读 · 0 评论 -
ajax ie firefox 缓存
IE 默认缓存结果 。 Firefox默认不缓存结果。 解决方法: url + ?num = new Date(); 或者添加选项 cache : false 或者data 中添加data : { "date" : new Date().toString()}...2009-10-29 22:39:48 · 96 阅读 · 0 评论 -
JSNI GWT中的东东
二、JavaScript Native InterfaceJavaScript本地接口JSNI。1)声明一个本地方法在JSNI中声明一个本地方法时,使用Java的标准native关键字,就像在JNI(Java Native Interface)中一样。在JNI中,本地C代码是一个单独的文件,独立编译且在运行时动态加载。在JSNI中,本地JavaScript代码用一种特殊的注释格式直接嵌入到Java...2009-10-25 20:19:43 · 123 阅读 · 0 评论 -
将html代码原样输出到页面上 php
htmlspecialchars(字符串)2009-10-09 15:31:14 · 459 阅读 · 0 评论 -
stackoverflow
stackoverflow 找问题http://stackoverflow.com/2009-09-29 14:04:41 · 105 阅读 · 0 评论 -
jquery 扩展
<head> <script src="jquery.js"></script> <script> $.extend({ max : function(a , b ) { return a > b ? a : b; ...2009-09-29 12:29:28 · 66 阅读 · 0 评论 -
设置httpClient连接超时
httpClient.getConnectionManager().getParams().setConnectionTimeout(xxx); // 设置连接超时时间httpClient.getConnectionManager().getParams().setSoTimeout(xxx); //设置读取内容连接超时时间...2009-09-25 10:35:16 · 181 阅读 · 0 评论 -
关闭thickbox
parent.tb_remove(); 就行了2009-09-23 15:51:10 · 166 阅读 · 0 评论 -
div层移动到鼠标当前光标所在处
<script src="jquery.js"></script> <script> $(function() { $("button").click(function(e) { $("#mydiv").css("position" , &2009-09-23 14:53:01 · 200 阅读 · 0 评论 -
使用java语言中的枚举enum
package com.entity.bean;public enum Flavor { sweet(1) , sour(2) , bitter(3) , hot(4); private Flavor(int cal) { this.value = cal; } private final int value;...2009-11-07 18:24:43 · 80 阅读 · 0 评论