2006-06-03 10:33:47
很多资源收集自网上,用作学习共享
View Mode: Normal | Article List
php 获取图片的信息(宽、高..)
[ 2010-06-19 17:34:07 | Author: Admin ]
/////如例////////
$aa=getimagesize("图片的保存路径");
$weight=$aa["0"]; ////获取图片的宽
$height=$aa["1"];///获取图片的高
////////////////////////////////////
所用函数:
getimagesize:
取得图像大小 (PHP 3, PHP 4, PHP 5)
array getimagesize ( string filename [, array &imageinfo] )
☆☆ 索引 0 包含图像宽度的像素值,
索引 1 包含图像高度的像素值。
索引 2 是图像类型的标记:1 = GIF,2 = JPG,3 = PNG,4 = SWF,5 = PSD,
6 = BMP,7 = TIFF(intel byte order),8 ...
Read More...
$aa=getimagesize("图片的保存路径");
$weight=$aa["0"]; ////获取图片的宽
$height=$aa["1"];///获取图片的高
////////////////////////////////////
所用函数:
getimagesize:
取得图像大小 (PHP 3, PHP 4, PHP 5)
array getimagesize ( string filename [, array &imageinfo] )
☆☆ 索引 0 包含图像宽度的像素值,
索引 1 包含图像高度的像素值。
索引 2 是图像类型的标记:1 = GIF,2 = JPG,3 = PNG,4 = SWF,5 = PSD,
6 = BMP,7 = TIFF(intel byte order),8 ...
Read More...
CKSource Docs
[ 2009-10-19 13:31:56 | Author: Admin ]
showModalDialog和showModelessDialog使用心得(转帖)
[ 2009-10-16 11:44:29 | Author: Admin ]
showModalDialog和showModelessDialog使用心得
一、showModalDialog和showModelessDialog有什么不同?
showModalDialog:被打开后就会始终保持输入焦点。除非对话框被关闭,否则用户无法切换到主窗口。类似alert的运行效果。
showModelessDialog:被打开后,用户可以随机切换输入焦点。对主窗口没有任何影响(最多是被挡住一下而以。:P)
二、怎样才让在showModalDialog和showModelessDialog的超连接不弹出新窗口?
在被打开的网页里加上<base target="_self">就可以了。这句话一般是放在<html>和<body>之间的。
三、怎样才刷新showModalDialog和showModelessDialog里的内容?
在showModalDialo...
Read More...
一、showModalDialog和showModelessDialog有什么不同?
showModalDialog:被打开后就会始终保持输入焦点。除非对话框被关闭,否则用户无法切换到主窗口。类似alert的运行效果。
showModelessDialog:被打开后,用户可以随机切换输入焦点。对主窗口没有任何影响(最多是被挡住一下而以。:P)
二、怎样才让在showModalDialog和showModelessDialog的超连接不弹出新窗口?
在被打开的网页里加上<base target="_self">就可以了。这句话一般是放在<html>和<body>之间的。
三、怎样才刷新showModalDialog和showModelessDialog里的内容?
在showModalDialo...
Read More...
jquery.validate.js:jquery的表单验证
[ 2009-10-11 16:47:57 | Author: Admin ]
remote:URL
使用ajax方式进行验证,默认会提交当前验证的值到远程地址,如果需要提交其他的值,可以使用data选项
remote: "check-email.php"
remote: {
url: "check-email.php", //后台处理程序
type: "post", //数据发送方式
dataType: "json", //接受数据格式
data: { //要传递的数据
username: function() {
return $("#username").val();
}
}
}
远程地址只能输出 "true" 或 "false",不能有其它输出
addMethod:name, method, message
...
Read More...
使用ajax方式进行验证,默认会提交当前验证的值到远程地址,如果需要提交其他的值,可以使用data选项
remote: "check-email.php"
remote: {
url: "check-email.php", //后台处理程序
type: "post", //数据发送方式
dataType: "json", //接受数据格式
data: { //要传递的数据
username: function() {
return $("#username").val();
}
}
}
远程地址只能输出 "true" 或 "false",不能有其它输出
addMethod:name, method, message
...
Read More...
cloudgamer - 博客园
http://www.cnblogs.com/cloudgamer
很多js效果 JavaScript - Web Development Blog
http://www.leigeber.com/category/javascript/
http://www.cnblogs.com/cloudgamer
很多js效果 JavaScript - Web Development Blog
http://www.leigeber.com/category/javascript/
jQuery.validate.js API
[ 2009-10-10 14:25:22 | Author: Admin ]
转自:http://ideabean.javaeye.com/blog/362875
http://hi.baidu.com/greenandcoffee/blog/item/5ebe5850e2cfbb551138c24d.html
Name Type
validate( options ) Returns: Validator
验证所选的FORM
valid( ) Returns: Boolean
检查是否验证通过
rules( ) Returns: Options
返回元素的验证规则
rules( "add", rules ) Returns: Options
增加验证规则。
rules( "remove", rules ) Returns: Options
删除验证规则
removeAttrs( attributes ) Returns: Options
删除特殊属性并且返回他们
...
Read More...
http://hi.baidu.com/greenandcoffee/blog/item/5ebe5850e2cfbb551138c24d.html
Name Type
validate( options ) Returns: Validator
验证所选的FORM
valid( ) Returns: Boolean
检查是否验证通过
rules( ) Returns: Options
返回元素的验证规则
rules( "add", rules ) Returns: Options
增加验证规则。
rules( "remove", rules ) Returns: Options
删除验证规则
removeAttrs( attributes ) Returns: Options
删除特殊属性并且返回他们
...
Read More...
如何改变Flex程序的默认背景色
[ 2009-09-22 12:52:07 | Author: Admin ]
通过设置编译器参数
-default-frame-rate 50
-default-background-color #FFFFFF
-default-size 800 600
纯Actionscript代码中,可以在主运行类前面做如下声明:
[SWF(width="800", height="600", frameRate="20", backgroundColor="#FFFFFF")]
-default-frame-rate 50
-default-background-color #FFFFFF
-default-size 800 600
纯Actionscript代码中,可以在主运行类前面做如下声明:
[SWF(width="800", height="600", frameRate="20", backgroundColor="#FFFFFF")]
Flex创建一个UI component的全过程
[ 2009-09-19 13:05:51 | Author: Admin ]
请求component的构造器
设置component的属性
调用父容器的addChild方法,这包括:
1.a) Flex设置component的parent属性并引用其父容器。
2.b) 设置component样式
3.c) component发送add事件(其实是flex发送,component是源)
4.d) 父容器发送addChild事件
5.e) Flex发送component的preinitialize时间
6.f) Flex创建并初始化component的子UI—如button组件显示“确定”文本的text label
7.g) Flex发送Initialize时间
接下来,为了显示component,一个render事件被触发
1.a) Flex完成显示component的所有必需过程,包括layout component
2.b) Flex设置component的visible属性为true
...
Read More...
设置component的属性
调用父容器的addChild方法,这包括:
1.a) Flex设置component的parent属性并引用其父容器。
2.b) 设置component样式
3.c) component发送add事件(其实是flex发送,component是源)
4.d) 父容器发送addChild事件
5.e) Flex发送component的preinitialize时间
6.f) Flex创建并初始化component的子UI—如button组件显示“确定”文本的text label
7.g) Flex发送Initialize时间
接下来,为了显示component,一个render事件被触发
1.a) Flex完成显示component的所有必需过程,包括layout component
2.b) Flex设置component的visible属性为true
...
Read More...







