>--> Peek-a-boo comments | クリボウの Blogger Tips

クリボウの Blogger Tips

Google Blogger の使い方、カスタマイズ方法、各種ツールなど、
Blogger 関連の役立つ情報を紹介しています。

> Peek-a-boo comments

Peek-a-boo comments

Posted at: 2005-08-06 7



  • 表示が変わりましたでしょうか?
  • もう一度同じリンクを押すと、非表示になります。



 <head> 内の <style> 中に次のコードを挿入します。

.commenthidden {display:none}
.commentshown {display:inline}

2.JavaScript の関数を定義しておきます。
 <head> 内に次のコードを入力します。

<script type="text/javascript">
function togglecomments (postid) {
  var whichpost = document.getElementById(postid);
  if (whichpost.className=="commentshown") {
  } else {

 class="commenthidden" とした、好きな ID をつけたインライン要素の中に、内容を記述します。

<span class="commenthidden" id="post050806">見えますでしょうか?</span>

 この部品がさっき定義した JavaScript の関数を呼び出します。
 togglecomments() の引数には1で設定した ID を指定します。
<a href="javascript:togglecomments('post050806');">切替</a>

この例の場合、リンクがクリックされると、<span> のクラスが JavaScript によって書き換えられます。適用されるスタイルが変わることで、内容物が非表示・表示と切り替わるんですね。

この方法は結構色々なところで使えそうな気がします。ちなみに今回紹介した Blogger Help ではこれを投稿につくコメントを表示するのに利用しています。興味があればどうぞ。



  1. はじめまして。ゆうと申します。
    新しいbloggerで"Peek-a-boo comments" を実現する良い方法ってないのでしょうか。もし良いアイデアがあったら紹介して頂けるとすごく嬉しいです。

  2. いろいろと探していたらこんな記事を発見しました。

  3. As we get closer to the holiday season, there are a lot of shoes being confirmed and leaked for 2017. But is this a preview at an upcoming Air Jordan 12 Jordan Retro lineup for the new year?Shown here is a look at the “Alternate” Air Jordan 6, the “Cherry” and “Rising Sun” Air Jordan 12s. While the images have started to Jordan 11 surface, everyone is wondering whether this is a preview of what’s to come in 2017.While we already know that the “Alternate” Air Jordan 6 is set to drop in March, but Cheap Jordans for sale what about these other two Air Jordan 12 colorways?The Air Jordan 12 “Cherry” was rumored to release this year, but now it looks like that won’t be happening. These “Rising Sun” Cheap Jordans for sale Air Jordan 12s also have no release information attached to them.So as of right now, out of these three Air Jordans, the only one that looks to be “official” and “releasing” Stephen Curry Shoes is the “Alternate” Air Jordan 6.We’ll keep you updated with all the latest upcoming Air Jordan Release Dates as they develop. But for now, both these Air Jordan 12s look to Jordan 7 Tinker be just hopes and dreams.Let us know in the comments section if you’d like to see either of these Air Jordan 12 colorways make a retro return in 2017.
    Considering the Jordan shoes fact that the Air Jordan 13 was inspired by the Black Panther, it makes sense for Jordan Brand to officially release an Air Jordan 13 Black Cat colorway, which is set Jordan 13 Shoes for Spring 2017.If the Air Jordan 13 couldn’t be sleeker than it already is, the iconic silhouette actually managed to use inspirations from the Black Panther and pulled it off throughout Jordan shoes the shoe. Both the paw prints on the outsole and the hologram – which when you turn off the lights shine up to mimic a panther’s eye, all resembles the Black Cheap Jordans Cat.This release features a full Black upper with 3M reflective detailing that also includes matching 3M laces.No release date for the Air Jordan 13 Black Cat has been confirmed, but you Jordans for sale can expect to see the “Black Cat” colorway make its debut later this Spring 2017.Let us know what you guys think in the comments section and stay tuned to Sneaker Bar Cheap Jordans For Sale for further updates as they develop.UPDATE: Here’s what the “Black Cat” Air Jordan 13 is looking to look like that’s set to release early Spring 2017. Details include, 3M on the Jordan 7 Shoes

  4. Promo Freebet via Agen Piala Dunia 2018 Pyatigorsk Region Capital Rusia Situs www.pokerusia.net Melalui Bank Panin Indonesia Kode Bank 019.


Comments on Google+:

© 2005-2014 Kuribo. Powered by Blogger.