ajax图片飞入效果

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="SincereAds" Namespace="SincereAds" TagPrefix="cc1" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server">    <title></title>
    <script type="text/javascript" src="jquery-1.4.2.min.js"></script>
    <script type="text/javascript">
        function test() {            $.get("Ajax.aspx", { Action: "get", id: 1 }, function(data, textStatus) {                //返回的 data 可以是 xmlDoc, jsonObj, html, text, 等等.                //this; // 在这里this指向的是Ajax请求的选项配置信息,请参考下图                //(data);
                $("#image").html(data).css({ opacity: 0 }).fadeTo("slow", 1);            });        }    </script>
</head><body>    <form id="form1" runat="server">    <input id="Button1" type="button" value="button" onclick="test()" />    <div id="image">    </div>    </form></body></html>

posted @ 2010-08-19 11:28  我想我是青蛙  阅读(66)  评论(0)    收藏  举报