you're loading jquery twice. Remove top one, not recommended to  serve it from jquery site, put your animation script below your local  version of jquery

should work then

umcosta wrote:
Ok, here is what I want to do (extracted from: http://docs.jquery.com/Traversing/hasClass):

<script src="" class="moz-txt-link-rfc2396E" href="http://code.jquery.com/jquery-latest.js">"http://code.jquery.com/jquery-latest.js"></script>
<script>
  $(document).ready(function(){

    $("div").click(function(){
      if ( $(this).hasClass("protected") )
        $(this).animate({ left: -10 }, 75)
               .animate({ left: 10 }, 75)
               .animate({ left: -10 }, 75)
               .animate({ left: 10 }, 75)
               .animate({ left: 0 }, 75);
    });

  });
  </script>


And here is my code:

<script type="text/_javascript_" src=""></script>
<script type="text/_javascript_" src=""></
script>
<script type="text/_javascript_" src=""></
script>
<script type="text/_javascript_" src=""></
script>
<script type="text/_javascript_">
	$(document).ready(function(){

		$.localScroll();

		$("a").click(function(){
		   if ( $(this).hasClass("thumb") )
        	      $(this).fancybox();
		});

	});
	</script>

Any ideas???

  

Reply via email to