- 博客(12)
- 收藏
- 关注
原创 php 获取gmail/yahoo 联系人地址
gmail: <?php error_reporting(E_ALL); $user = "****@gmail.com"; $password = "****"; // ref: http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html // step 1: log...
2011-06-29 22:37:25 1224
原创 利用 PHPmailer class 发邮件
This is really useful if you don’t have an email server.Using your Gmail account for sending emails is great ;)Steps: Dowload the latest version of PHPmailer class Include it in your script Test wi...
2011-06-28 03:10:33 94
原创 ie 调试器,类似firebug
IE的调试工具 - Companion.JSCompanion.JS是一个免费的基于IE的js调试工具,它提供IE如下的功能:详细错误报告(包括call stack和出错的的实际文件名称 )Firebug类似的控制台API特性javascript控制台特性用以调试运行期间的js对象一个用来打开companion。JS的工具条使用Companion.JS前必须要保证你安装了 Microsoft sc...
2011-06-27 22:21:06 121
原创 开源php ajax 图片编辑器 Open source PHP-based Ajax image editor
下载: http://code.google.com/p/ajaximageeditor/ demo: http://pjf-imageeditor.appspot.com/ The editor is both front and back end code, and is yet another tool to play with images.You can che...
2011-06-24 03:40:00 113
原创 纯css图标 Pure CSS bar charts as a simple API
I am right now working on a high-traffic project that will run in a sandbox that doesn't allow me to pull third party JavaScript or use canvas/Flash. Yet I need to generate bar charts from a set of da...
2011-06-24 03:20:43 101
原创 动态创建php 类函数或函数
1. 基础 变量函数: <?php $func = 'test'; function test(){ echo 'yes !'; } $func(); ?> 随机函数: <?php $newfunc = create_function('$a,$b', 'return $a.$b;'); echo "New a...
2011-06-23 23:58:52 408
原创 __call、__set 和 __get的用法
1. __call的用法 PHP5 的对象新增了一个专用方法 __call(),这个方法用来监视一个对象中的其它方法。如果你试着调用一个对象中不存在的方法,__call 方法将会被自动调用。 例:__call <?php class foo { function __call($name,$arguments) { print("Did you call m...
2011-06-23 23:42:23 179
原创 JavaScript 获取全球城市名称
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Region > Country > Division</t
2011-06-22 03:49:57 11104
原创 min.us api 保存图片到minus,并且获取图片
<?php $output =''; $url = "http://min.us/api/GetItems/xxXXXXX"; $json = file_get_contents($url); $json_a=json_decode($json, true); foreach($json_a[ITEMS_GALLERY] as $item){ $output ....
2011-06-20 22:30:47 99
原创 jquery 表单验证
比较好用的验证插件 <!DOCTYPE html> <html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'> <head> <title></title> <meta content='text/html;charset=UTF-8'...
2011-06-17 21:10:58 128
原创 常用JavaScript函数 59 - 70(自我总结)
59、 展开收缩文章 60、 页面不被框架 61、 验证密码 62、 文字横向滚动 63、 单击button或空白区都隐藏层 64、javascript删除元素节点 65、getElementsByClassName 66、JavaScript验证URL正则 67、背景高亮 68、点击链接滑动 Smooth Scrolling 69、制造文字闪动效果 70、电子时钟 ja...
2011-06-05 09:28:14 356
原创 onbeforeunload与onunload事件
Onunload,onbeforeunload都是在刷新或关闭时调用,可以在<script>脚本中通过window.onunload来指定或者在<body>里指定。区别在于onbeforeunload在onunload之前执行,它还可以阻止onunload的执行。 Onbeforeunload也是在页面刷新或关闭时调用,Onbeforeunload是正要去服务器读取新的...
2011-06-01 03:29:39 59
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人