Posted By

manavecplan on 09/12/10


Tagged


Versions (?)

JQuery Slide up/Down


 / Published in: PHP
 

  1. function slide($atts, $content = null) {
  2. extract(shortcode_atts(array(
  3. "title" =>; ''
  4. ), $atts));
  5. return '<a class="slide">'.$title.'</a>
  6.  
  7. '.$content.'
  8.  
  9. ';
  10. }
  11. add_shortcode('slide', 'slide');
  12.  
  13.  
  14.  
  15. .slide {cursor:pointer}
  16. .slide-next {display:none}
  17.  
  18.  
  19. [slide title="Lorem ipsum dolor sit amet"]Mauris ut lectus erat. In condimentum, turpis ac ...[/slide]

Report this snippet  

You need to login to post a comment.