摘要:
.tab1 tr:nth-of-type(odd){ background:#eeeeee;}.tab1 tr:nth-of-type(even){ background:#f8f8f8;}.tab1 tr td{height: 30px; border-bottom: 1px solid #fff...
阅读全文
posted @ 2014-08-11 16:08
狂奔的蜗牛Snails
阅读(124)
推荐(0)
摘要:
1.animate,setInterval组合不断滚动;function Tscroll(){ $().animate(); }setInter("Tscroll()",1000); //注意里面的是 Tscroll(),而不是 TscrollclearInterval 用法:funct...
阅读全文
posted @ 2014-08-08 19:28
狂奔的蜗牛Snails
阅读(715)
推荐(0)
摘要:
js网址收藏:懒人图库:www.lanrentuku.com懒人之家:http://www.lanrenzhijia.com/jquery/list_5_2.html1.UI下载:http://jqueryui.com/http://www.w3cschool.cc/jqueryui/example...
阅读全文
posted @ 2014-08-08 14:21
狂奔的蜗牛Snails
阅读(141)
推荐(0)
摘要:
setInterval("f()",1000) 每隔1秒就执行一次f() clearInterval 关闭clearIntervalsetTimeout("f()",1000) 1秒后执行f(),只执行一次clearTimeout 关闭setTimeout1.简单版应用html代码 ...
阅读全文
posted @ 2014-08-08 11:21
狂奔的蜗牛Snails
阅读(243)
推荐(0)
摘要:
效果代码title="请输入正确的十六位数字" onkeyup="javascript: return this.value = this.value.toUpperCase();" placeholder="请输入正确的十六位数字"html代码input type="text" name="car...
阅读全文
posted @ 2014-08-07 18:23
狂奔的蜗牛Snails
阅读(1418)
推荐(0)
摘要:
加入css 没有这段js的话,无法刷新验证码html代码
阅读全文
posted @ 2014-08-07 18:14
狂奔的蜗牛Snails
阅读(494)
推荐(0)
摘要:
漂亮的日期插件http://www.my97.net/dp/demo/resource/2.1.asp
阅读全文
posted @ 2014-08-07 14:45
狂奔的蜗牛Snails
阅读(100)
推荐(0)
摘要:
创建cookiedocument.cookie='like=1'; //创建 cookie键名和值var str = document.cookie;获取cookie读取cookiefunction getCookie(c_name){if (document.cookie.length>0){...
阅读全文
posted @ 2014-08-04 10:27
狂奔的蜗牛Snails
阅读(697)
推荐(0)
摘要:
$("#music_up").bind("click",showData());$("#music_up").bind("click",showRe());$("#music_up").bind("click",function(){ showData(); ...
阅读全文
posted @ 2014-08-02 10:11
狂奔的蜗牛Snails
阅读(1381)
推荐(0)
摘要:
function aa(i){ var tm = setInterval(function(){ var t = $(window).scrollTop(); var d = i < t ? Math.min((i-t)/10, -1) : Math.max((i-...
阅读全文
posted @ 2014-07-31 17:45
狂奔的蜗牛Snails
阅读(3425)
推荐(0)
摘要:
网页可见区域宽: document.body.clientWidth;网页可见区域高: document.body.clientHeight;网页可见区域宽: document.body.offsetWidth(包括边线的宽);网页可见区域高: document.body.offsetHeight(...
阅读全文
posted @ 2014-07-31 10:20
狂奔的蜗牛Snails
阅读(590)
推荐(0)
摘要:
1.前台读不出字段。数据库列表有的,但前台就适读不出来。2.浏览次数+1与+2的问题浏览+2注册浏览+1注册3.决定模板的Default 还是new?Yourphp\Conf\Service\config.php 中的'DEFAULT_THEME' => 'Default',4.a.产品的pics多...
阅读全文
posted @ 2014-07-29 17:07
狂奔的蜗牛Snails
阅读(433)
推荐(0)
摘要:
yt_attachment编辑器图片上传存放的表
阅读全文
posted @ 2014-07-29 17:05
狂奔的蜗牛Snails
阅读(382)
推荐(0)
摘要:
实例化页面代码1.时间代码:{$vo.createtime|toDate=###,'Y-m-d H:i:s'}2.连接:{:U('Pro/arr')},{:URL()}如:打印出变量{phpdump($r)}截取字段{$r.title|str_cut=###,32}时间{$r.createtime|...
阅读全文
posted @ 2014-07-28 14:51
狂奔的蜗牛Snails
阅读(1095)
推荐(0)
摘要:
简单介绍:把一个数组分成4个数组,取其中1的倍数 '0', '1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6', '7' => '7', ...
阅读全文
posted @ 2014-07-25 19:12
狂奔的蜗牛Snails
阅读(439)
推荐(0)
posted @ 2014-07-23 16:47
狂奔的蜗牛Snails
阅读(220)
推荐(0)
摘要:
window.onresize=findDimensions; 改变窗口的是后会触发 这个事件
阅读全文
posted @ 2014-07-01 14:23
狂奔的蜗牛Snails
阅读(580)
推荐(0)
摘要:
网址:http://www.aa25.cn/layout/index.shtml
阅读全文
posted @ 2014-07-01 11:40
狂奔的蜗牛Snails
阅读(106)
推荐(0)
摘要:
问题描述:想要在F:\PHPnow-1.5.6\htdocs\yt\Yourphp\Tpl\ 目录下新增一个Service\Default(A) 和Service\new(B) 两个主题, 系统默认情况下是读取模板是new(因为new是与系统默认读取前台模板保一致,也就是Home:F:\PHP...
阅读全文
posted @ 2014-07-01 10:32
狂奔的蜗牛Snails
阅读(190)
推荐(0)
摘要:
html代码 php代码public function index(){ $m = M('service'); ...
阅读全文
posted @ 2014-06-28 10:39
狂奔的蜗牛Snails
阅读(656)
推荐(0)
摘要:
原理其实很简单:input的text与password1.把鼠标停放在 密码区,单机右键”查看原素“得到的代码与文本区块进行切换就可以查看出密码了
阅读全文
posted @ 2014-06-10 11:29
狂奔的蜗牛Snails
阅读(1064)
推荐(0)
摘要:
//正确:if(empty($a))$a=1//错误写法$b = if(empty($a))$a=1 //if前面不能带 等号
阅读全文
posted @ 2014-06-10 10:42
狂奔的蜗牛Snails
阅读(1169)
推荐(0)
posted @ 2014-06-09 16:05
狂奔的蜗牛Snails
阅读(4)
推荐(0)
摘要:
HTML代码 //指向地址 //关键词php代码 \Yourphp\Lib\Action\Home\SearchAction.class.php * @copyright Copyright (c) 2008-2011 (http://www.yourphp.cn)...
阅读全文
posted @ 2014-05-28 10:40
狂奔的蜗牛Snails
阅读(794)
推荐(0)
摘要:
1.一个不错的app移动框架http://mmenu.frebsite.nl/来源:http://www.myexception.cn/other/1391134.html2.很不错的css转换效果,适合小图标、产品效果http://ricostacruz.com/jquery.transit/3....
阅读全文
posted @ 2014-05-27 11:00
狂奔的蜗牛Snails
阅读(215)
推荐(0)
摘要:
1.插入单条数据$data[0]['cardid'] = $_POST['cardid']; $data[0]['name'] = $_POST['name']; $data[0]['mobile'] = $_POST['mobile']; $data[0]['email'] = $_POST...
阅读全文
posted @ 2014-05-27 10:16
狂奔的蜗牛Snails
阅读(307)
推荐(0)
摘要:
参考文件Yourphp\Lib\Action\User\PostAction.class.phppublic function add() { $form=new Form(); $form->isadmin=0; $form->doThumb = ...
阅读全文
posted @ 2014-05-26 17:43
狂奔的蜗牛Snails
阅读(244)
推荐(0)
摘要:
条件:1八位数;2.以领开头;3.末尾要依次递增
阅读全文
posted @ 2014-05-26 10:30
狂奔的蜗牛Snails
阅读(901)
推荐(0)
摘要:
1.数组转字符串var a, b;a = new Array(0,1,2,3,4);b = a.join("-");2.字符串转数组var s = "abc,abcd,aaa";ss = s.split(",");3.数字转字符串toStringvar i = 10;var s = i.toStri...
阅读全文
posted @ 2014-05-26 10:17
狂奔的蜗牛Snails
阅读(632)
推荐(0)
摘要:
function RondomPass(number){ var arr = new Array; var arr1 = new Array("0","1","2","3","4","5","6","7","8","9"); for(var i=0;i<number;i++...
阅读全文
posted @ 2014-05-24 17:58
狂奔的蜗牛Snails
阅读(2001)
推荐(0)
摘要:
用 js有很久了,但都没有深究过js的数组形式。偶尔用用也就是简单的string.split(char)。这段时间做的一个项目,用到数组的地方很多,自以为js高手的自己居然无从下手,一下狠心,我学!呵呵。学了之后才知道,js数组的功能强大很,远比VB,C#强多了,大家慢慢看吧1、数组的创建varar...
阅读全文
posted @ 2014-05-17 17:58
狂奔的蜗牛Snails
阅读(185)
推荐(0)
摘要:
字体投影:text-shadow: 1px 1px 1px #ccc;框架投影:box-shadow: 10px 10px 25px #ccc;
阅读全文
posted @ 2014-05-10 15:40
狂奔的蜗牛Snails
阅读(325)
推荐(0)
摘要:
1.lightbox头部导入:使用一:单张图片image #1使用二:多张image #1image #2image #3使用三:点击一张,跳转到多张单张代码:多张代码: 注意rel="lightbox[1]", 也可以是rel="lightbox[2]",rel="l...
阅读全文
posted @ 2014-04-22 17:48
狂奔的蜗牛Snails
阅读(581)
推荐(0)
摘要:
图片延时加载原生JS特效广告代码 来源地址:http://js.alixixi...
阅读全文
posted @ 2014-04-19 15:39
狂奔的蜗牛Snails
阅读(311)
推荐(0)
posted @ 2014-04-19 15:15
狂奔的蜗牛Snails
阅读(133)
推荐(0)
摘要:
extends的继续关系 page继承Dapta;也就是page拥有data的所有功能。f(); } }$DataPage = new Page;echo $DataPage->f();?>
阅读全文
posted @ 2014-04-02 10:46
狂奔的蜗牛Snails
阅读(296)
推荐(0)
摘要:
解决办法:加入一段css和.ui-mobile img {max-width: 100%;}即可解决。
阅读全文
posted @ 2014-03-31 18:00
狂奔的蜗牛Snails
阅读(278)
推荐(0)
摘要:
代码$ua = strtolower($_SERVER['HTTP_USER_AGENT']);$uachar = "/(nokia|sony|ericsson|mot|samsung|sgh|lg|philips|panasonic|alcatel|lenovo|cldc|midp|mobile)/i";if(($ua == '' || preg_match($uachar, $ua))&& !strpos(strtolower($_SERVER['REQUEST_URI']),'wap'))
阅读全文
posted @ 2014-03-31 11:21
狂奔的蜗牛Snails
阅读(209)
推荐(0)
摘要:
错误写法会出现css margin 不能正常使用。如: margin: 0 auto;
阅读全文
posted @ 2014-03-13 18:31
狂奔的蜗牛Snails
阅读(181)
推荐(0)
摘要:
源代码 {$key}. {$r.title}(阅读 {$r.hits}次) 新代码一:{php $sql='select * from yt_article where catid=37';} {$key}. {$r.title}(阅读 {$r.hits}次)还有一种方法是 filed ="*" 调用全部字段
阅读全文
posted @ 2014-03-12 10:49
狂奔的蜗牛Snails
阅读(208)
推荐(0)