?? counter(1).js
字號(hào):
?var CJB = undefined;
if(!CJB){CJB = {};}
else if(typeof(CJB != object)){throw new Error('類型錯(cuò)誤');}
//
CJB.Utils = {};
CJB.Utils.StringBuffer = function(){this.__strings__ = new Array;};
CJB.Utils.StringBuffer.prototype.append = function(str){this.__strings__.push(str);};
CJB.Utils.StringBuffer.prototype.toString = function(){return this.__strings__.join("");};
//
CJB.Counter = {};
CJB.Counter.ApplictionPath = function()
{
return "http://pv.admin.csdn.net/";
}
CJB.Counter.init = function()
{
window.onerror=function(){return true};//屏蔽錯(cuò)誤
var channelId;
try
{
if($Counter != null && $Counter.ChannelId != null)
{
channelId = $Counter.ChannelId;
}
}
catch(ex)
{
channelId = "00000000-0000-0000-0000-000000000000";
}
var columnId;
try
{
if($Counter != null && $Counter.ColumnId != null)
{
columnId = $Counter.ColumnId;
}
}
catch(ex)
{
columnId = "00000000-0000-0000-0000-000000000000";
}
var pageId;
try
{
if($Counter != null && $Counter.PageId != null)
{
pageId = $Counter.PageId;
}
}
catch(ex)
{
pageId = "00000000-0000-0000-0000-000000000000";
}
var sb = new CJB.Utils.StringBuffer();
sb.append("<img");
sb.append(" style='width:0px;height:0px'");
sb.append(" src='");
sb.append(CJB.Counter.ApplictionPath() + "Counter.aspx");
sb.append("?ChannelId="+channelId);
sb.append("&ColumnId="+columnId);
sb.append("&PageId="+pageId);
sb.append("' />");
document.write(sb.toString());
}
CJB.Counter.init();
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -