跨域读取js变色

<button id="go">Run</button>
<div class="block" style="width:400px; height:300px"></div>
<script type="text/javascript">
//跨域读取js变色
    $.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);
    });
       });
</script>
posted @ 2010-11-17 08:47  九点  阅读(151)  评论(0编辑  收藏  举报