📄 可用性评估.mht
字号:
if ( doc =3D=3D null )
doc =3D new ActiveXObject("Msxml2.DOMDocument");
if( doc =3D=3D null )
doc =3D new DOMDocument();
doc.loadXML(httpReq.responseText);
*/
doc =3D httpReq.responseXML;
=09
var strHtml =3D "";
// read the word title, description and link from the xml
var title, desc, link;
var elems =3D doc.getElementsByTagName("item");
if (elems !=3D null && elems.length > 0) {
for( var i =3D 0; i < elems.length; i++ ) {
var elem =3D elems[i];
for (var node =3D elem.firstChild; node !=3D null; node =3D =
node.nextSibling) {
if (node.nodeName =3D=3D "title")
title =3D node.firstChild.nodeValue;
if (node.nodeName =3D=3D "link")
link =3D node.firstChild.nodeValue;
if (node.nodeName =3D=3D "description")
desc =3D node.firstChild.nodeValue;
}
desc =3D desc.replace(/<([^>]|\n)*>/g,''); // remove html tags if =
present
desc =3D desc.replace(/ /g, ' ');
desc =3D desc.replace(/"/g, '"');
desc =3D desc.replace(/&/g, '&');
if( desc.length > 32 )
desc =3D desc.substr(0, 32) + " =
...\n\n[=E7=82=B9=E5=87=BB=E6=9F=A5=E7=9C=8B=E5=85=A8=E6=96=87]";
if( isCommentsFeed )
title =3D desc.replace(/\n/g,'');
=09
strHtml +=3D "<li style=3D'padding: 3px 0px;border-bottom:1px dotted =
#BBB;'>» <a href=3D'" + link + "' target=3D'_blank' =
title=3D'" + desc + "'>" + title + "</a></li>";
}
=09
__doTextChanged(strHtml);
}
else
{
=
__doTextChanged("<li>=E8=AF=A5RSS=E5=9C=B0=E5=9D=80=E6=B2=A1=E6=9C=89=E6=95=
=B0=E6=8D=AE=E3=80=82</li>");
}
httpReq =3D null; // free the http object*/
}
}
// function getRss
function getRss(rssUrl, htmlElementId, displayTitle)
{
rssUrl =3D rssUrl =3D=3D null ? "http://my.donews.com/blogbug/feed" : =
rssUrl;
htmlElementId =3D htmlElementId =3D=3D null ? "blogbugDiv" : =
htmlElementId;
displayTitle =3D displayTitle =3D=3D null ? =
"=E5=93=88=E5=95=B0=E6=B3=A2=E6=B3=A2 ^ =E7=82=B9=E8=BF=99=E5=84=BF" : =
displayTitle;
=09
new jsRssPluginClass(rssUrl, htmlElementId, displayTitle);
}
------=_NextPart_000_006A_01C88DA0.A61F1DC0
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://ovsmbt.mop.com/ov.js
var _ovCount =3D 'http://tj.itv.mop.com';=0A=
var _ovUTCPage =3D 'http://ovutc.mop.com/ojs';=0A=
var _ovRevision =3D "2";=0A=
var _ovCountPage =3D _ovCount + '/count.php';=0A=
var _ovIframe =3D 1;=0A=
var _ovUTC;=0A=
var _ovDomain =3D '';=0A=
=0A=
try{var _ovPageurl =3D escape(top.location.href);var _ovReferer =3D =
escape(top.document.referrer);}=0A=
catch(e){ var _ovPageurl =3D escape(location.href);var _ovReferer =3D =
escape(document.referrer);}=0A=
=0A=
var _ovReferer2 =3D escape(document.referrer);=0A=
=0A=
try=0A=
{=0A=
if(top.location.href=3D=3Dlocation.href)=0A=
{=0A=
_ovIframe=3D0;=0A=
}=0A=
}=0A=
catch(e){};=0A=
=0A=
_ovDeleteCookie2('_ovutc');=0A=
_ovDeleteCookie2('_ourplusFirstTime');=0A=
_ovDeleteCookie2('_ourplusReturnTime');=0A=
_ovDeleteCookie2('_ourplusReturnCount');=0A=
=0A=
_ovUTC =3D _ovReadCookie('_utc');=0A=
=0A=
var re =3D new RegExp('http:\/\/(.+?)\/', 'i');=0A=
var m =3D re.exec(unescape(_ovPageurl));=0A=
if(m !=3D null) {=0A=
var domain =3D m[1];=0A=
var dt =3D domain.split('.');=0A=
var dtl =3D dt.length=0A=
var root =3D dt[dtl - 1];=0A=
=0A=
if(root.length =3D=3D 2 && dtl >=3D 3) {=0A=
root =3D dt[dtl - 2];=0A=
if(root =3D=3D 'org' || root =3D=3D 'com' || root =3D=3D 'net' || root =
=3D=3D 'edu' ||=0A=
root =3D=3D 'mil' || root =3D=3D 'gov') {=0A=
if(dtl =3D=3D 3)=0A=
_ovDomain =3D dt[dtl - 3] + '.' + dt[dtl - 2] + '.' + dt[dtl - 1];=0A=
else=0A=
_ovDomain =3D '.' + dt[dtl - 3] + '.' + dt[dtl - 2] + '.' + dt[dtl - =
1];=0A=
}=0A=
else=0A=
_ovDomain =3D '.' + dt[dtl - 2] + '.' + dt[dtl - 1];=0A=
} else {=0A=
if (dtl =3D=3D 2) =0A=
_ovDomain =3D dt[dtl - 2] + '.' + dt[dtl - 1];=0A=
else=0A=
_ovDomain =3D '.' + dt[dtl - 2] + '.' + dt[dtl - 1];=0A=
}=0A=
}=0A=
=0A=
_ovDeleteCookie3('_ovutc', _ovDomain);=0A=
=0A=
if(_ovUTC =3D=3D '') {=0A=
_ovUTC =3D _ovRandomString(6);=0A=
_ovWriteCookie2('_utc', _ovUTC, _ovDomain, 720);=0A=
}=0A=
=0A=
var _ovCountUrl =3D _ovCountPage=0A=
+ '?source=3Dmoptj'=0A=
+ '&pageurl=3D' + _ovPageurl=0A=
+ '&referer=3D' + _ovReferer=0A=
+ '&iframe=3D' + _ovIframe;=0A=
=0A=
if(window.utmack)=0A=
{=0A=
_ovCountUrl =3D _ovCountUrl+"&utmack=3D"+utmack;=0A=
}=0A=
=0A=
document.write("<script src=3D'" + _ovCountUrl + "'></script>");=0A=
=0A=
var _ovUTCUrl =3D _ovUTCPage=0A=
+ '?S=3Dovutc' // Source=0A=
+ '&U=3D' + _ovPageurl // Pageurl=0A=
+ '&R=3D' + _ovReferer2 // Referrer=0A=
+ '&I=3D' + _ovUTC // User tracker id=0A=
+ '&now=3D' +_ovGetTime() // Current click time=0A=
+ '&if=3D' + _ovIframe // iFrame flags=0A=
+ '&r=3D' + _ovRevision; // Revision=0A=
=0A=
document.write("<script src=3D'" + _ovUTCUrl + "'></script>");=0A=
=0A=
function _pad(num, len)=0A=
{=0A=
for(var i =3D 1; i <=3D len; i++)=0A=
if (num < Math.pow(10, i))=0A=
return new Array(len -i + 1).join(0) + num;=0A=
return num;=0A=
}=0A=
=0A=
=0A=
function _ovGetTime()=0A=
{=0A=
cur =3D new Date();=0A=
return _pad(cur.getYear(), 4) +=0A=
_pad(cur.getMonth() + 1, 2) +=0A=
_pad(cur.getDate(), 2) + '-' +=0A=
_pad(cur.getHours(), 2) +=0A=
_pad(cur.getMinutes(), 2) +=0A=
_pad(cur.getSeconds(), 2);=0A=
}=0A=
=0A=
=0A=
function getTime() =0A=
{ =0A=
now =3D new Date(); =0A=
year=3Dnow.getYear();=0A=
Month=3Dnow.getMonth()+1;=0A=
Day=3Dnow.getDate();=0A=
Hour=3Dnow.getHours(); =0A=
Minute=3Dnow.getMinutes(); =0A=
Second=3Dnow.getSeconds(); =0A=
return year+"-"+Month+"-"+Day+"-"+Hour+"-"+Minute+"-"+Second;=0A=
}=0A=
=0A=
function _ovReadCookie(name)=0A=
{=0A=
var cookieValue =3D "";=0A=
var search =3D name + "=3D";=0A=
if(document.cookie.length > 0)=0A=
{ =0A=
offset =3D document.cookie.indexOf(search);=0A=
if (offset !=3D -1)=0A=
{ =0A=
offset +=3D search.length;=0A=
end =3D document.cookie.indexOf(";", offset);=0A=
if (end =3D=3D -1) end =3D document.cookie.length;=0A=
cookieValue =3D unescape(document.cookie.substring(offset, end))=0A=
}=0A=
}=0A=
return cookieValue;=0A=
}=0A=
=0A=
=0A=
function _ovWriteCookie2(name, value, domain, hours)=0A=
{=0A=
var expire =3D "";=0A=
if(hours !=3D null) {=0A=
expire =3D new Date((new Date()).getTime() + hours * 3600000);=0A=
expire =3D "; expires=3D" + expire.toGMTString();=0A=
}=0A=
document.cookie =3D name + "=3D" + escape(value) + expire + "; =
domain=3D" + domain + "; path=3D/;";=0A=
}=0A=
=0A=
function _ovWriteCookie(name, value, hours)=0A=
{=0A=
var expire =3D "";=0A=
if(hours !=3D null)=0A=
{=0A=
expire =3D new Date((new Date()).getTime() + hours * 3600000);=0A=
expire =3D "; expires=3D" + expire.toGMTString();=0A=
}=0A=
document.cookie =3D name + "=3D" + escape(value) + expire + " =
domain=3D; " + "path=3D/;";=0A=
}=0A=
=0A=
function _ovDeleteCookie3(name, domain) {=0A=
document.cookie =3D name + "=3D; domain=3D" + domain +"; path=3D/; =
expires=3DThu, 01-Jan-1970 00:00:01 GMT;";=0A=
}=0A=
=0A=
function _ovDeleteCookie2(name) {=0A=
document.cookie =3D name + "=3D; domain=3D; path=3D/; expires=3DThu, =
01-Jan-1970 00:00:01 GMT;";=0A=
}=0A=
=0A=
function _ovRandomString(length)=0A=
{=0A=
var chars =3D =
'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';=0A=
var rstr =3D '';=0A=
for(var i =3D 0; i < length; i++) {=0A=
var rnum =3D Math.floor(Math.random() * chars.length);=0A=
rstr +=3D chars.substring(rnum, rnum + 1);=0A=
}=0A=
return rstr;=0A=
}=0A=
------=_NextPart_000_006A_01C88DA0.A61F1DC0--
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -