reply.html 783 B

1234567891011121314151617181920212223242526
  1. <ol class="comments first_level">
  2. <volist name="reply" id="r">
  3. <li>
  4. <article class="comment_box commentbox1">
  5. <div class="gravatar">
  6. <img src="__IMG__/1.jpg" alt="author 6" />
  7. </div>
  8. <div class="comment_text">
  9. <div class="comment_author">{$r.title} <span class="date">{$r.create_time}</span></div>
  10. <p style="text-align: justify;">{$r.content}</p>
  11. <div class="reply"><a href="#comment" class="re" style="cursor:pointer;" author="{$r.title}">回复</a></div>
  12. </div>
  13. <div class="clearfix"></div>
  14. </article>
  15. </li>
  16. </volist>
  17. </ol>
  18. <script>
  19. $('.re').click(function(){
  20. var title='回复 '+$(this).attr('author');
  21. $('#name').val(title);
  22. });
  23. </script>