Jump to content
php.lv forumi

JS scripts


Blumish

Recommended Posts

Sveiki!

 

 

Šis ir kods. Kad uzpiež uz "Spied te un atveras komentāri" Atveras facebook komenti ar javascript.
Jautājums ir tāds kā lai blakām izveido pogu Hide? Nospiežot komentāri aizveras. Var arī tā ka kautvai 2x nospiežot uz "Spied te un atveras komentāri" komentāri aizveras.
 
  <button>Spied te un atveras komentāri</button>
      <p style="display: none" class="fb-comments" data-href="<?php the_permalink() ?>" data-num-posts="2" data-width="739"></p>
<script>
 
$("button").click(function () {
 
$("p").show("slow");
 
});
 
</script>
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...