jQuery日本語リファレンス

jQuery does not mean Japanese Query...

Ajax/API/jQuery - Sample Code

jQuery.getScript( url, callback )


      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
                    "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <script src="http://code.jquery.com/jquery-latest.js"></script>
  
  <script>
  window.onload = (function(){try{
    $.getScript("http://dev.jquery.com/view/trunk/plugins/color/jquery.color.js", function(){
  $("#go").click(function(){
    $(".block").animate( { backgroundColor: 'pink' }, 1000)
      .animate( { backgroundColor: 'blue' }, 1000);
  });
});
  }catch(e){}});</script>
  <style>.block { 
   background-color: blue; 
   width: 150px; 
   height: 70px;
   margin: 10px; 
}</style>
<style>html,body{border:0; margin:0; padding:0;}</style></head>
<body>
  <button id="go">» Run</button>

<div class="block"></div>

</body>
</html>
	 
[実行結果]
[jQuery.getScript( url, callback ) の説明へ]