- 博客(8)
- 资源 (3)
- 收藏
- 关注
翻译 wordpress wp_nav_menu 连接增加 nofollow
原文页面:http://wordpress.stackexchange.com/questions/51376/how-to-add-nofollow-to-wp-nav-menu"rel=nofollow"属性 nofollow是HTML元标签(meta)的content属性和链接标签(a)的rel属性的一个值,告诉机器(爬虫)无需追踪目标页,为了对抗blogs
2015-01-23 20:45:57 971
原创 wordpress 限制 post slug 长度
/** * limit slug length 100 characters. */add_filter( 'wp_unique_post_slug', 'custom_unique_post_slug', 10, 4 );function custom_unique_post_slug( $slug, $post_ID, $post_status, $post_type) { if (
2015-01-20 16:49:28 1227
转载 Js 判断网页能不能被 IFrame 嵌入
参考页面 :http://shinychang.net/article/542d510265dd204503e125bc
2015-01-16 20:48:01 1527
原创 wordpress 后台添加自定义分类筛选?
参考网址:http://wordpress.stackexchange.com/questions/578/adding-a-taxonomy-filter-to-admin-list-for-a-custom-post-type/* overwrite drop down select by category-----------------------------------------
2015-01-13 19:06:54 5762
原创 jQuery 使页面滚动到某个 div 处
jQuery Scroll to DivjQuery('html,body').animate({ scrollTop: jQuery("#col-left").offset().top-50}, 300);参考网址:http://stackoverflow.com/questions/5284814/jquery-scroll-to-div
2015-01-13 18:59:09 4821
原创 wordpress 获取当前category
1. 在 category 页面 获取cat$cats = get_category(get_query_var('cat'),false);
2015-01-06 18:16:43 1532
翻译 js 获取 url 地址参数
function getUrlParameter(sParam){ var sPageURL = window.location.search.substring(1); var sURLVariables = sPageURL.split('&'); for (var i = 0; i < sURLVariables.length; i++) {
2015-01-05 16:33:09 541
原创 jQuery 5 秒倒计时
var wait=5;timeOut();function timeOut(){ if(wait==0){ feedbackObj.fadeOut(100,function(){ feedbackObj.remove(); }); $('#opacity-mask').fadeOut(100); }else{ setTimeout(functio
2015-01-04 18:45:54 10406
2012年全国软件专业人才设计与创业大赛java试题
2012-04-21
Java_Web开发实战经典-开发实战练习(课后题)
2012-04-18
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人