- 博客(13)
- 资源 (2)
- 收藏
- 关注
原创 flash:flash学习资料
1.flash示例代码: C:\Program Files (x86)\Macromedia\Flash 8\Samples and Tutorials\Samples\2.flash与js通信资料:http://www.blueidea.com/tech/multimedia/2006/4340.asp3.示例(见附件w1.fla)flash调用js4.视频前贴片(调用g
2015-04-30 15:16:48 442
原创 百度地图:用于打印的地图展示
<?php $move_left=isset($_GET["move_left"])?$_GET["move_left"]:0; $move_up=isset($_GET["move_up"])?$_GET["move_up"]:0;?>向左">向上">--><?php $width=5; $height=2; //$url="http://online1.map.
2015-04-30 15:15:45 2080
原创 网站数据统计:设计
1.获取代码(参考内容:百度统计、cnzz统计、google统计)a.页面调用统计代码cnzz:var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_557704
2015-04-30 15:02:51 1593
原创 js:cnzz页面统计代码阅读
(function () { function k() { this.c = "5577047"; //account_id this.R = "z"; // this.N = ""; // this.K = ""; // this.M = ""; // this.r
2015-04-30 15:02:13 5552
原创 php访问mysql
1.安装php对数据库访问的支持yum install php-mysql2.连接数据库:$con = mysql_connect("server","username","password");if (!$con) { die('Could not connect: ' . mysql_error()); }else{ echo "connec
2015-04-27 12:08:12 409
原创 css:各种样式相关资料列表(tree、button、nav)
1.button: http://blog.csdn.net/lushuaiyin/article/details/8118669 (代码可用且较为简洁,效果较好)2.布局: 3.横向导航:http://blog.csdn.net/lushuaiyin/article/details/7064638 (代码可用,效果普通)4.树形菜单:http://blog.c
2015-04-26 18:18:24 1910
转载 css: 命名规则
头:header 内容:content/container 尾:footer导航:nav 侧栏:sidebar 栏目:column 页面外围控制整体布局宽度:wrapper左右中:left right center 登录条:loginbar 标志:logo 广告:banner 页面主体:main 热
2015-04-24 15:02:08 421
原创 php编码转化
print mb_convert_encoding($l,"gbk","utf8")string mb_convert_encoding ( string $str , string $to_encoding [, mixed $from_encoding = mb_internal_encoding() ] )如果不支持提示:Call to undefined funct
2015-04-24 14:42:58 389
原创 weka 决策树
1.参数说明:General options:-h or -helpOutput help information.-synopsis or -infoOutput synopsis for classifier (use in conjunction with -h)-t (train file,训练文件,通常训练时只需要此文件即可,会进行10 交叉验证)S
2015-04-21 16:50:27 1807
原创 php优化:性能
调用函数完成相同任务(对于赋值而言): 时间消耗为直接赋值的7倍 使用eval进行赋值,时间消耗为80倍 function run_t(){return 1;}function test($m){ for($i=0;$i //100w条测试,a=0.19,b=0.07,c=1.77,d=2.57
2015-04-14 16:17:58 320
原创 百度地图api的url请求的参数规则
请求图片如下:http://online1.map.bdimg.com/tile/?qt=tile&x=109023&y=42348&z=19&styles=pl&scaler=1&udt=20141103x、y的关系:百度将地图划分为很多小的位图y+1=向北的一个图片,y-1为向南的一个图片x+1=向东的一个图片,x-1为向西的一个图片z估计图像缩放比例(相对于省市县。。
2015-04-13 23:14:15 7929
原创 基于php curl的spider
1.curl的安装与使用2.静态网页的抓取2.1 链接的提取2.2 相对路径的处理2.3 本地存储3.动态网页3.1 动态网页的存储4.二级域名的处理5.需要的处理
2015-04-13 21:54:19 402
原创 阿里云使用
1.安装为php 添加 curl支持 : sudo apt-get install curl libcurl3 libcurl3-dev php5-curl sudo /etc/init.d/apache2 restart2. 安装php5-curl 时提示:404 Not Found [IP: 91.189.91.14 80]apt-get update 3.批量
2015-04-10 22:41:37 398
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人