如何将for cnblogs init .改写为一个长尾关键词?
- 内容介绍
- 文章标签
- 相关推荐
本文共计111个文字,预计阅读时间需要1分钟。
javascriptcnblogs.jsconsole.log('init: runcode.js');function runcode() { var win=window.open(); win.document.write(document.getElementById('runcode').value);}
cnblogs.jsconsole.log('init runcode.js') function runcode() { var win = window.open(); win.document.write($('.runcode').val()); } /***********tag cloud script****************/ if($("#MyTag").length>0) { var dict = {}; $("#taglist td").has("a").has("span").each(function(i, x){ dict[$("a", this).text()] = $("span", this).text().replace(/[)(]/g, ""); }); $(" ").attr("id", "tagCloud").appendTo("div#mainContent"); for(var k in dict) { var sz = (dict[k] * 4) + 12; $(" ") .attr("href", "www.cnblogs.com/sixloop/tag/"+escape(k)+"/") .attr("title", dict[k]) .css("font-size", sz + "px") .text(k) .appendTo("#tagCloud"); } $("#taglist").remove(); }
本文共计111个文字,预计阅读时间需要1分钟。
javascriptcnblogs.jsconsole.log('init: runcode.js');function runcode() { var win=window.open(); win.document.write(document.getElementById('runcode').value);}
cnblogs.jsconsole.log('init runcode.js') function runcode() { var win = window.open(); win.document.write($('.runcode').val()); } /***********tag cloud script****************/ if($("#MyTag").length>0) { var dict = {}; $("#taglist td").has("a").has("span").each(function(i, x){ dict[$("a", this).text()] = $("span", this).text().replace(/[)(]/g, ""); }); $(" ").attr("id", "tagCloud").appendTo("div#mainContent"); for(var k in dict) { var sz = (dict[k] * 4) + 12; $(" ") .attr("href", "www.cnblogs.com/sixloop/tag/"+escape(k)+"/") .attr("title", dict[k]) .css("font-size", sz + "px") .text(k) .appendTo("#tagCloud"); } $("#taglist").remove(); }

