(function(){ var multinavi = document.getElementsByClassName('multinavi')[0]; multinavi.style.display = "none"; function createCounter(){ var n = 0; return function() { return n++; }; } counter = createCounter(); var module = function(){ this.idNum = counter(); } module.prototype.attach = function(tabNum, html, noFrame){ var tabName = "" if (tabNum == 1){ tabName = "Omote"; } else { tabName = "Ura"; } this.id = "sub" + tabName + this.idNum; div = document.createElement("div"); div.setAttribute("id", this.id); if (typeof noFrame === 'undefined'){ div.setAttribute("class", "module"); div.className = "module"; } else { div.style.marginBottom = "5px"; div.style.marginTop = "5px"; } div.innerHTML = html; document.getElementById("subtab0" + tabNum).appendChild(div); } module.prototype.addCssRule = function(selector, rule){ var ss = document.styleSheets[0]; if (document.all) { ss.addRule("#subtabSec #" + this.id + " " + selector, rule); } else { ss.insertRule("#subtabSec #" + this.id + " " + selector + " {" + rule + "}", ss.cssRules.length); } } if (document.getElementById("subOmote1") || document.getElementById("subUra1")){ return; } //貼る ************************************************************** var html = '

この記事を送る

'; var title = document.title.replace(/[@@]nifty[::]デイリーポータル[ZZ]?[::]/, ""); title = title.replace(/ - デイリーポータル[ZZ][::][@@]nifty/, ""); var url; if((location.hostname+location.pathname).match(/portal\.nifty\.com\/20[0-9]{2}\//i)){ url = (location.protocol+'//'+location.hostname+location.pathname+(location.search ? '?'+encodeURIComponent(location.search.substr(1)).replace(/%3D/g, '=') : '')).replace(/\/[0-9]+\.htm/, "/"); }else{ url = (location.protocol+'//'+location.hostname+location.pathname+(location.search ? '?'+encodeURIComponent(location.search.substr(1)).replace(/%3D/g, '=') : '')).replace(/_[0-9]+\.htm/, "_1.htm"); } if (url.match(/portal\.nifty\.com\/kiji\//i)){ html += 'ツイート'; html += '
'; html += ''; }else if(url.match(/portal\.nifty\.com\/20[0-9]{2}\//i)){ html += 'ツイート'; html += '
'; html += ''; }else{ html += '
'; html += ''; } html += "
"; var mod = new module() mod.attach(1, html); mod.addCssRule("", "margin-top:14px;"); mod.addCssRule(".moduleInner a img", "border:0px;"); mod.addCssRule(".moduleInner div.blog", "display:none;"); mod.addCssRule(".moduleInner div.blogclicked", "display:block;position:relative;"); mod.addCssRule(".moduleInner div#attach textarea.tagarea", "font-size:10px;width:150px;"); //いま大人気の記事(サムネイル+テキスト) ************************************************************** var html = '

いま大人気の記事

'; html += ` ` html += ` ` html += ` ` html += ` ` html += ` ` html += ` ` var mod = new module() mod.attach(1, html); mod.addCssRule(".moduleInner", "padding:10px 3px 5px 10px;"); mod.addCssRule(".moduleInner li.new", "float:left;width:50px;margin:0 6px 6px 0;"); mod.addCssRule(".moduleInner li.right", "float:left;width:106px;margin-right:0;"); //連絡ノート ************************************************************** var html = '

れんらくノート

'; html += '

編集部ブログから:

'; html += ' '; html += '
'; var mod = new module() mod.attach(1, html); mod.addCssRule(".moduleInner li", "margin:0 0 10px;"); mod.addCssRule(".moduleInner", "padding-bottom:5px;"); //いいね ************************************************************** var html = '

FacebookとTwitter

'; html += ''; html += '
'; html += '
記事の更新を
おしらせします。'; html += "
"; var mod = new module(); mod.attach(1, html); mod.addCssRule("#twitter-follow-widget", "margin-top:10px;margin-bottom:10px;"); //新着記事(サムネイル+テキスト) ************************************************************** var html = '

最新記事

'; html += ` ` html += ` ` html += ` ` html += ` ` html += ` ` html += ` ` html += ` ` html += ` ` html += ` ` html += ` ` html += ` ` html += ` ` html += ` ` html += ` ` html += ` ` html += ` ` html += ` ` html += ` ` html += ` ` html += ` ` html += ` ` html += ` ` html += ` ` html += ` ` html += ` ` html += ` ` html += ` ` html += ` ` html += ` ` html += ` ` html += '

>>もっと前のバックナンバー

'; var mod = new module() mod.attach(1, html); mod.addCssRule(".moduleInner", "padding:10px 3px 5px 10px;"); mod.addCssRule(".moduleInner li.new", "float:left;width:50px;margin:0 6px 6px 0;"); mod.addCssRule(".moduleInner li.right", "float:left;width:106px;margin-right:0;"); //友の会 ************************************************************** var html = '

友の会

'; html += '「はげます会」に入ってデイリーポータルZに参加しよう!'; html += '

はげます会

'; var mod = new module(); mod.attach(1, html); //無限地獄 ************************************************************** var html = '

無間地獄

'; var mod = new module(); mod.attach(1, html); //○年前の記事 ************************************************************** var html = '

過去の記事

'; //twitter ************************************************************** var html = ''; var mod = new module() mod.attach(1, html, 1); if (typeof insertAdsenseIntoSidebar == "function"){ insertAdsenseIntoSidebar(); } document.write("