DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

JQuery Basics

10.20.2008
| 2384 views |
  • submit to reddit
        // baisc jQuery block

<a href="/slideshow.php?show=epo">EPO</a>
<a href="/slideshow.php?show=naked-with-food">Naked Foody Goodness</a>

<div id="yui-main">


  <div id="slideshow">
  <?php  Slideshow("eposhow"); ?>
  </div>

</div>

<script type="text/javascript">
$(document).ready(function(){
  $('a.load_links').bind('click',function(){
     $('#slideshow').load($(this).attr('href'));
  });
});
</script>