摘要: 自动搜索中用的插件是jqury中ui插件:先引入:jquery-ui-1.9.0.custom.min.css和jquery-ui-1.9.0.custom.min.js然后js中的代码调用是: 1 var list = []; 2 var $seachText = $('#search-node-input'); 3 $seachText.bind("keydown",function (event) { 4 if (event.keyCode === $.ui.keyCode.TAB && $(this).data("autoc 阅读全文
posted @ 2013-11-07 16:48 幻星宇 阅读(748) 评论(0) 推荐(0) 编辑
摘要: 但一个区域,鼠标完全放在上面,就会出现一个背景层,移开,然胡隐藏。当鼠标横扫过去,很快的时候,浮动层会停止上面不显示。修改后的代码:html: 1 2 if($arroundTravelInfo){ 3 4 5 {$arroundTravelInfo.product_name} 6 {$arroundTravelInfo.sale|default="0"}会去 7 8 ¥{$ar... 阅读全文
posted @ 2013-11-07 16:44 幻星宇 阅读(672) 评论(0) 推荐(0) 编辑
摘要: html代码: 1 2 3 4 5 6 7 if ($locationInfoItem['rtype'] != 'activity') { 8 9 {$locationInfoItem.lname}10 人气:{$lo... 阅读全文
posted @ 2013-11-07 16:40 幻星宇 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 1 2 3 4 5 阅读全文
posted @ 2013-11-07 15:56 幻星宇 阅读(800) 评论(0) 推荐(0) 编辑
摘要: 该插件提交的数据包含上传的图片。1.先导入jquery.form.js2.form表单的元素:可以不要target,target是用来新打开窗口的提交方式。按钮是submit形式,如果是button的话,就要点击出发form表单的提交。js中的代码如下:button形式: 1 //提交 2 $('.btn_submit').click(function(){ 3 var url = "{:U('admin/Content/doAddIndexNearby')}"; 4 $('#post_method').val('0& 阅读全文
posted @ 2013-11-07 11:22 幻星宇 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 1 //生成缩略图 2 public function wgetimg($topath, $w, $h, $url, $picname, $type) { 3 $sRealPath = realpath('./'); 4 $sSelfPath = $_SERVER['PHP_SELF']; 5 $sSelfPath = substr($sSelfPath, 0, strrpos($sSelfPath, '/')); 6 $sSelfPath = substr($sRealPath, 0, strlen($sRealPat... 阅读全文
posted @ 2013-11-07 11:17 幻星宇 阅读(899) 评论(0) 推荐(0) 编辑
摘要: 1 2 3 4 5 插件cycle的简单运用 6 12 13 14 15 27 28 29 30 31 32 33 34 35 36 37 38 39 40 51 52 阅读全文
posted @ 2013-11-07 11:08 幻星宇 阅读(336) 评论(0) 推荐(0) 编辑
摘要: good;world';echo $str.'';$str = preg_replace("/&[a-z]+\;/i",'',$str);echo strip_tags($str); 1 //替换字符 2 function replaceFilterHtml($str, $filterStr = '') { 3 $str=preg_replace("/\s+/", " ", $str); //过滤多余回车 4 $str=preg_replace("//si&qu 阅读全文
posted @ 2013-11-07 09:24 幻星宇 阅读(2507) 评论(0) 推荐(0) 编辑