カテゴリー
' + grSpan);
lc_cat_dep++;
lc_cat_outputTrees(sChild, l_defs);
lc_cat_dep--;
document.write('');
}
}
}
function lc_cat_createMainLink(l_grTitle, l_grCap, l_boxStr, l_fName, l_cCnt) {
//Script by http://lctree.blog26.fc2.com/
var grIconId = 'lc_cat_box_' + lc_cat_pCnt;
var hsFunc = 'lc_cat_HideAndShow(\'' + lc_cat_pCnt + '\'); return false;';
var linkSt = '';
if (LC_CAT_PARENTBOLD) {
linkSt += 'font-weight:bold;';
}
if (LC_CAT_DECOLESS_PARENT) {
linkSt += 'text-decoration:none;';
}
var sExp = lc_cat_expList[l_fName];
var ret = '
' + l_boxStr + '';
var sIcon = lc_cat_getElem(lc_cat_iconList, l_fName, l_grCap, '<親' + lc_cat_dep + '>', '<親>');
if (sIcon) {
ret += '';
}
var sText = lc_cat_getElem(lc_cat_aliasList, l_fName, l_grCap, sExp);
if (!sText) {
sText = l_grCap;
}
var sTitle = lc_cat_getElem(lc_cat_titleList, l_fName, l_grCap, sExp);
if (sTitle) {
var sImg = lc_cat_getElem(lc_cat_imgList, l_fName, l_grCap, sExp);
if (sImg) {
var funcShow = 'lc_cat_showTitleDialog(event,"' + sTitle.replace(/\n/g,'
') + '","' + lc_cat_fullImg(sImg) + '"); return false;';
sText = "" + sText + "";
} else {
sText = '' + sText + '';
}
}
if (sExp) {
var sCl = '';
if (document.location.href == sExp) {
sCl = 'plink active';
} else {
sCl = 'plink';
}
sText = '' + sText;
}
if (LC_CAT_DISPLAYNUM_PARENT) {
sText += ' (' + l_cCnt + ')';
}
ret += sText + '';
return ret;
}
function lc_cat_outputLeaf(l_obj, l_treeMark) {
//Script by http://lctree.blog26.fc2.com/
var sHref = l_obj.href;
var sCount = l_obj.count;
var sName = l_obj.name;
var sNo = l_obj.no;
var sFName = l_obj.fname;
var treeP = '
';
if (lc_cat_dep != 0) {
treeP += lc_cat_indent(lc_cat_dep - 1, false);
treeP += '
' + l_treeMark + '';
}
var sText = lc_cat_getElem(lc_cat_aliasList, sFName, sName, sHref);
if (!sText) {
sText = sName;
}
var sTitle = lc_cat_getElem(lc_cat_titleList, sFName, sName, sHref);
if (sTitle) {
sTitle = LC_CAT_TITLE_CHILD.replace(/<#PlusText>/g,sTitle);
sTitle = sTitle.replace(/<#PlusRet>/g,'\n');
} else {
sTitle = LC_CAT_TITLE_CHILD.replace(/<#PlusText>/g,'');
sTitle = sTitle.replace(/<#PlusRet>/g,'');
}
sTitle = sTitle.replace(/<#Name>/g,sName);
sTitle = sTitle.replace(/<#Count>/g,sCount);
var sIcon = lc_cat_getElem(lc_cat_iconList, sFName, sName, sHref, '<子' + lc_cat_dep + '>', '<子>');
if (sIcon) {
sIcon = '
';
} else {
sIcon = '
' + LC_CAT_CATEGORY_MARK + '';
}
var spanP = '
' + sIcon + '';
var linkSt = '';
if (LC_CAT_DYNAMIC_SIZE) {
var fsize = 68 + (64 * sCount / lc_cat_maxNum);
linkSt += 'font-size:' + fsize + '%;';
}
if (LC_CAT_DECOLESS_CHILD) {
linkSt += 'text-decoration:none;';
}
var linkP = '
') + '","' + lc_cat_fullImg(sImg) + '");';
linkP += "\" onmouseover='" + funcShow + "'" + ' onmouseout="lc_cat_hideTitleDialog();';
} else {
linkP += '" title="' + sTitle;
}
linkP += '" class="child child_' + lc_cat_dep;
if (document.location.href == sHref) {
linkP += ' active';
}
if (linkSt != '') {
linkP += '" style="' + linkSt;
}
linkP += '">' + spanP + '' + sText + '';
if (LC_CAT_DISPLAYNUM) {
var numP = '(' + sCount + ')';
if (LC_CAT_ENTRY_DIALOG || LC_CAT_ENTRY_TREE) {
var funcShow = 'lc_cat_showEntry(event,' + sNo + ',' + sCount + ',' + lc_cat_dep + '); return false;';
numP = '' + numP + '';
}
numP = '
' + numP + '';
linkP += numP;
}
linkP += '';
if (LC_CAT_RSS) {
linkP += '';
}
document.write(treeP + linkP + '
');
}
function lc_cat_showTitleDialog(ev, l_text, l_img) {
lc_cat_showDialog(ev, "lc_cat_titleDialog", LC_CAT_TITLE_WIDTH, "lc_cat_titleBodyTr", 20);
var sImg = "";
if (l_img) {
sImg = "
";
}
document.getElementById("lc_cat_titleBody").innerHTML = sImg + l_text;
}
function lc_cat_hideTitleDialog() {
document.getElementById("lc_cat_titleDialog").style.display = 'none';
}
var lc_testParent = "";
function lc_cat_showEntry(ev, sNo, l_Cnt, l_dep, l_trId) {
var sTrId = l_trId;
if (!l_trId) {
if (LC_CAT_ENTRY_TREE) {
sTrId = "lc_cat_entryLeaf_" + sNo;
} else {
sTrId = "";
}
}
if (sTrId) {
var leaf = document.getElementById(sTrId);
if (leaf.style.display == 'none') {
leaf.style.display = 'inline';
} else {
leaf.style.display = 'none';
return;
}
} else {
lc_cat_showEntryDialog(ev, sNo);
}
lc_cat_xSend('http://nextsociety.blog102.fc2.com/?xml&category=' + sNo, lc_cat_loadEntry, l_Cnt, l_dep, sTrId);
}
function lc_cat_showEntryDialog(ev, sNo) {
lc_cat_showDialog(ev, "lc_cat_entryDialog", LC_CAT_ENTRY_WIDTH, "lc_cat_entryTitleRow", 0);
document.getElementById("lc_cat_entryBody").innerHTML = 'Now Loading...
(Category ' + sNo + ')';
}
function lc_cat_showDialog(ev, l_id, l_width, l_rowId, l_yPlus) {
var posX = 150;
var posY = 350;
posX = document.body.scrollLeft;
posY = document.body.scrollTop;
if (!posX && !posY) {
posX = document.documentElement.scrollLeft;
posY = document.documentElement.scrollTop;
}
if (!posX && !posY && self.pageYOffset) {
posX = self.pageXOffset;
posY = self.pageYOffset;
}
if (ev) {
if (!ev.pageX && !ev.pageY) {
posX += ev.clientX;
posY += ev.clientY;
} else {
posX = ev.pageX;
posY = ev.pageY;
}
} else {
posX += window.event.x;
posY += window.event.y;
}
posY += l_yPlus;
var dia = document.getElementById(l_id);
var winWidth = document.body.clientWidth;
if (!winWidth) {
winWidth = window.innerWidth;
}
if (winWidth < posX + l_width) {
posX = winWidth - l_width;
}
dia.style.width = l_width + 'px';
document.getElementById(l_rowId).style.width = l_width + 'px';
dia.style.left = posX + 'px';
dia.style.top = posY + 'px';
dia.style.display = "inline";
}
function lc_cat_loadEntry(res, l_Cnt, l_dep, l_trId) {
var btxt = LC_CAT_ENTRY_ITEM_D_TEXT;
var btit = LC_CAT_ENTRY_ITEM_D_TITLE;
if (l_trId) {
btxt = LC_CAT_ENTRY_ITEM_T_TEXT;
btit = LC_CAT_ENTRY_ITEM_T_TITLE;
}
var bod = '';
var rss = lc_cat_xParse(res.responseText, lc_cat_numList);
for (var i = 0; i < rss.length; i++) {
var tit = lc_cat_replaceEntryInfo(btit, rss[i]);
var txt = lc_cat_replaceEntryInfo(btxt, rss[i]);
var lnk = '
' + txt + '';
if (l_trId) {
var ind = lc_cat_indent(l_dep - 1, false);
ind += '
' + LC_CAT_BRANCH_ENTRY + '';
bod += '
' + ind + lnk + '
';
} else {
bod += '
' + lnk + '';
}
}
if (l_trId) {
document.getElementById(l_trId).innerHTML = bod;
} else {
bod = '
';
if (rss.length == 0) {
bod += '(記事が見当たりません)';
} else if (l_Cnt && !isNaN(l_Cnt)) {
bod += '
(' + l_Cnt + '件中、' + rss.length + '件表示)
';
}
document.getElementById("lc_cat_entryBody").innerHTML = bod;
}
}
function lc_cat_replaceEntryInfo(l_str, inf) {
var r = l_str.replace(/<#Title>/g, inf.title);
r = r.replace(/<#Year>/g, inf.year);
r = r.replace(/<#Month>/g, inf.month);
r = r.replace(/<#Day>/g, inf.day);
r = r.replace(/<#Hour>/g, inf.hour);
r = r.replace(/<#Minute>/g, inf.minute);
r = r.replace(/<#Second>/g, inf.second);
r = r.replace(/<#Desc>/g, inf.desc);
return r;
}
function lc_cat_hideEntry() {
var dia = document.getElementById("lc_cat_entryDialog");
dia.style.display = "none";
}
function lc_cat_changeEntryBody(but) {
var bd = document.getElementById("lc_cat_entryBodyTr");
if (bd.style.display == "none") {
bd.style.display = "inline";
but.innerText = "△";
but.title = "詳細を隠す";
} else {
bd.style.display = "none";
but.innerText = "▽";
but.title = "詳細を表示";
}
}
function lc_cat_newMark(res, l_Cnt, l_dep) {
var rss = lc_cat_xParse(res.responseText, lc_cat_numList);
var nowDt = (new Date()).getTime();
for (var i = 0; i < rss.length; i++) {
if (i < LC_CAT_NEW_NUMBER || nowDt < (Date.parse(rss[i].date + ' ' + rss[i].time)) + (LC_CAT_NEW_HOUR * 3600000)) {
var eStar = document.getElementById('lc_cat_star_' + rss[i].catNo);
if (eStar) {
eStar.innerHTML = LC_CAT_NEW_CATEGORY_MARK;
}
var eRow = document.getElementById('lc_cat_no_row_' + rss[i].catNo);
if (eRow) {
if (eRow.className && eRow.className.length != 0) {
eRow.className += ' new_category';
} else {
eRow.className = 'new_category';
}
}
var eNew = document.getElementById('lc_cat_new_' + rss[i].catNo);
if (eNew) {
eNew.innerHTML = LC_CAT_NEW_FOOT_MARK;
}
}
}
}
function lc_cat_xHttpReq() {
if (window.XMLHttpRequest) {
return new XMLHttpRequest() ;
} else if (window.ActiveXObject) {
try {
return new ActiveXObject("Msxml2.XMLHTTP") ;
} catch (e1) {
try {
return new ActiveXObject("Microsoft.XMLHTTP") ;
} catch (e2) {
}
}
}
return null;
}
function lc_cat_xSend(l_url, l_func, l_Cnt, l_dep, l_trId) {
var xo = lc_cat_xHttpReq();
if (xo == null) {
return;
}
if (window.opera) {
xo.onload = function () {
l_func(xo);
}
} else {
xo.onreadystatechange = function ()
{
if (xo.readyState == 4 && xo.status == 200) {
l_func(xo, l_Cnt, l_dep, l_trId);
}
}
}
xo.open('GET', l_url, true);
xo.send('');
}
function lc_cat_xParse(l_text, l_numList) {
var splited = l_text.split('
- ') + l_name.length + 2;
var en = l_text.indexOf('' + l_name + '>');
return l_text.substring(st, en);
} catch (e) {
return '';
}
}
//-->
' + LC_CAT_ARCHIVES_TEXT + '';
var linkCount = '(' + lc_cat_sumNum + ')';
document.write('' + linkText + linkCount + '');
}
if (0 <= LC_CAT_NEW_NUMBER || 0 <= LC_CAT_NEW_HOUR) {
lc_cat_xSend('http://nextsociety.blog102.fc2.com/?xml', lc_cat_newMark);
}
}
//-->
△
×
カテゴリー内の記事
|
Now Loading...
|
何の前触れもなくイキナリCMに突入する番組が増えてきてしまいましたが、
こういう細やかな拘りは嬉しいですね。
ちなみにフランスでは日本みたいにイキナリCMに突入するのは
法律で禁じられてるらしいです。