摘要: jquery插件的学习:HTML部分及应用 我到了顶部就悬浮View Codejs部分/** * Created by Administrator on 14-9-3. */;(function($){ $.fn.extend({ s... 阅读全文
posted @ 2014-09-03 18:24 泡沫幻想 阅读(255) 评论(0) 推荐(0) 编辑
摘要: //隐藏地址栏,移动端 window.addEventListener("load",function(){ setTimeout(scrollTo,0,0,1); },false); 阅读全文
posted @ 2014-08-22 11:18 泡沫幻想 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 要自己写一个自定义滚动条加上滚轮事件,之前的没有滚轮事件不完整,今天整理了一个。1.滚轮事件是不兼容的,firefox中是必需要用事件绑定的添加,用的DOMMouseScroll,当滚动鼠标的时候,只要鼠标滚动的方法就行了,而这通过检测datail的正负号就可以确定2.其他的用mousewheel(... 阅读全文
posted @ 2014-08-14 18:06 泡沫幻想 阅读(466) 评论(0) 推荐(0) 编辑
摘要: mysql可通过两种方式通过PHP和web相连,一种通过php的mysql相关函数,另一种通过php的ODBC相关函数。 相关函数如下: MYSQL函数 mysql_affected_rows: 得到 MySQL 最后操作影响的列数目。 mysql_close: 关闭 MySQL 伺服器连线... 阅读全文
posted @ 2014-06-20 09:51 泡沫幻想 阅读(207) 评论(0) 推荐(0) 编辑
摘要: $Model=new Model(); $goods=$Model->Table('sdb_goods'); $param['brief']=array('like','%'.$p_title.'%'); $param['name']=array('like','%'.$p_title.'%'); $param['_logic']='or'; $goods_list=$goods->field('na 阅读全文
posted @ 2014-03-11 19:55 泡沫幻想 阅读(1265) 评论(0) 推荐(0) 编辑
摘要: 写了一个时间组件,哪里需要哪里调(菜鸟级别,大牛路过就Ok了):先有一个HTML文件: 1 2 3 4 5 8 9 14 15 16 17 18 买票日期:19 20 21 22 23 View Code 接下来是一个Css样式文件: 1 *{margin:0px;padding:0px;list-style:none;} 2 .calendar{width:210px;border:1px solid #000; margin:0 auto;position:absolute;display:none;} 3 .calendar h3{ h... 阅读全文
posted @ 2014-03-05 18:35 泡沫幻想 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 之前找了好久没有找到,就自已动手写了一个: 1 2 3 4 5 6 15 16 61 62 63 64 65 66 67 68 69 70 71 72 73 74 ... 阅读全文
posted @ 2014-01-08 10:46 泡沫幻想 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 1 2 3 4 5 通过class获取元素 6 10 64 65 66 67 1111168 2222269 333370 5555571 555572 666673 74 75 View Code javascript不像Jquery那样可以很容易的获取元素,今天写了一个小方法Javascript通过class获取元素1.用'=='来判断,这个判断如果class有多个会获取不到2.用indexOf来判断,这个判断如果class有包含你要的找... 阅读全文
posted @ 2014-01-07 11:51 泡沫幻想 阅读(508) 评论(0) 推荐(0) 编辑
摘要: 模仿新浪博客首页的,最新评论: 1 2 3 4 5 6 11 12 70 71 72 73 74 75 76 77 View Code 菜鸟一个,大神路过就Ok了~~~ 阅读全文
posted @ 2013-12-19 09:59 泡沫幻想 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 无缝滚动Javascript: 1 2 3 4 5 6 13 14 65 66 67 68 ->69 70 71 72 73 74 75 76 77 78 79 ... 阅读全文
posted @ 2013-12-19 09:50 泡沫幻想 阅读(229) 评论(0) 推荐(0) 编辑