私人领地

随笔分类 -  实用

存放做网站能常用的效果、功能
摘要:/*跳转并是刷新界面*/ function page_back(){ history.go(-1); location.reload(); } function show_div(obj){ if(obj.className == "more-menu") { obj.className = "more-menu hover"; } ... 阅读全文
posted @ 2016-09-20 10:55 狂奔的蜗牛Snails 阅读(202) 评论(0) 推荐(0)
摘要:/*更新商品的某个字段*/ function update_goods($goods_id, $field, $value) { if ($goods_id) { /* 清除缓存 */ clear_cache_files(); $sql = "UPDATE " . $GLOBALS['ecs']->table('goods') .... 阅读全文
posted @ 2016-09-20 10:55 狂奔的蜗牛Snails 阅读(246) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2016-07-27 17:35 狂奔的蜗牛Snails 阅读(0) 评论(0) 推荐(0)
摘要:第一步:编写bat文件 方法1:php方法 方法2:exploere浏览器 电脑上新建一个txt文本,把代码放进去。然后把他另存为xxx.bat 注意:这里代码会执行两次,必须要管理浏览器才行(关闭,只执行一次代码) 关闭浏览器代码 第二部电脑设置计划: 开始-》计划任务。开始添加计划 参考: wi 阅读全文
posted @ 2016-06-15 15:56 狂奔的蜗牛Snails 阅读(711) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2015-12-29 11:49 狂奔的蜗牛Snails 阅读(2) 评论(0) 推荐(0)
摘要:并加入到一下代码=后面http://cache.tv.qq.com/qqplayerout.swf?vid=例如http://cache.tv.qq.com/qqplayerout.swf?vid=o013075230b原文地址:http://jingyan.baidu.com/album/0a52... 阅读全文
posted @ 2015-08-28 14:00 狂奔的蜗牛Snails 阅读(218) 评论(0) 推荐(0)
摘要:1.animate,setInterval组合不断滚动;function Tscroll(){ $().animate(); }setInter("Tscroll()",1000); //注意里面的是 Tscroll(),而不是 TscrollclearInterval 用法:funct... 阅读全文
posted @ 2014-08-08 19:28 狂奔的蜗牛Snails 阅读(718) 评论(0) 推荐(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 阅读(147) 评论(0) 推荐(0)
摘要:漂亮的日期插件http://www.my97.net/dp/demo/resource/2.1.asp 阅读全文
posted @ 2014-08-07 14:45 狂奔的蜗牛Snails 阅读(101) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2014-07-23 16:47 狂奔的蜗牛Snails 阅读(221) 评论(0) 推荐(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) 推荐(0)
摘要:图片延时加载原生JS特效广告代码 来源地址:http://js.alixixi... 阅读全文
posted @ 2014-04-19 15:39 狂奔的蜗牛Snails 阅读(314) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2014-04-19 15:15 狂奔的蜗牛Snails 阅读(134) 评论(0) 推荐(0)
摘要:html 区域 jsajax,php代码function region($parent_id,$region_type){ //region(0,北京市) $where = "where parent_id = $parent_id"; $sql = mysql_query("select * from rv_region $where"); //echo $wh... 阅读全文
posted @ 2013-11-22 19:11 狂奔的蜗牛Snails 阅读(312) 评论(0) 推荐(0)
摘要:图:html代码 产品 {$pro_all} [+] 台 js代码 阅读全文
posted @ 2013-11-20 16:23 狂奔的蜗牛Snails 阅读(200) 评论(0) 推荐(0)
摘要:$arr = array( "0"=> "564645", "1"=>"", "2"=>65464, "3"=> "")print_r(array_filter($arr)); 输出结果为$arr = array( "0"=> "564645", "2"=>65464,) 阅读全文
posted @ 2013-11-01 17:55 狂奔的蜗牛Snails 阅读(290) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2013-09-22 13:30 狂奔的蜗牛Snails 阅读(318) 评论(0) 推荐(0)
摘要:用途一:"返回顶部";window.onscroll = function(){ var t = document.documentElement.scrollTop || document.body.scrollTop; var top_div = document.getElementById( "top_div" ); if( t >= 300 ) { top_div.style.display = "inline"; } else { top_div.style.display = "none"; } 阅读全文
posted @ 2013-09-05 17:05 狂奔的蜗牛Snails 阅读(2617) 评论(0) 推荐(0)
摘要:普通css代码.fix_foot{height: 30px; background: #ff0000; position: fixed; bottom: 0px; width: 100%; z-index:10;}ie6兼容代码* html,* html body{background-image:url(about:blank);background-attachment:fixed}* html .fix_foot{position:absolute;left:expression(eval(document.documentElement.scrollLeft));top:express 阅读全文
posted @ 2013-09-05 15:55 狂奔的蜗牛Snails 阅读(177) 评论(0) 推荐(0)
摘要:代码:function get_onlineip() { $ch = curl_init('http://iframe.ip138.com/ic.asp'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $a = curl_exec($ch); preg_match('/\[(.*)\]/', $a, $ip); return $ip[1]; } 得到的是113.91.122.205 阅读全文
posted @ 2013-09-03 16:28 狂奔的蜗牛Snails 阅读(480) 评论(0) 推荐(0)