Posted By

nuwak on 02/14/11


Tagged


Versions (?)

выбор эелемента по индесу и переход на страницу


 / Published in: jQuery
 

  1. <script type="text/javascript">
  2. $(function(){
  3. $('.ul_container ul li').click(function(){
  4. var index = $('.ul_container ul li').index(this);
  5. var href=$('#slide-outer .slide a').eq(index).attr('href');
  6. document.location.href = href;
  7. });
  8. });
  9. </script>

Report this snippet  

You need to login to post a comment.