zoukankan      html  css  js  c++  java
  • MVC中小试了一下Jquery

    <!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>AjaxDemo</title>
        
    <script src="http://www.cnblogs.com/Scripts/jquery-1.3.2-vsdoc.js" type="text/javascript"></script>
        
    <script src="http://www.cnblogs.com/Scripts/jquery-1.3.2.js" type="text/javascript"></script>
        
    <script type="text/javascript">
            $(document).ready(
    function() {
                $(
    "#button").click(ChangeColor);
                $(
    "#Div1").hide();
            });
            
    function ChangeColor() {
                AjaxDemo();
                $(
    "#content").css("background-color""yellow");
            }
            
    function AjaxDemo() {

                $(
    "#content").ajaxStart(Start);
                $(
    "#content").load("About"function() {
                    $(
    "#Div1").hide();
                    FadeIn($(
    this));
                });
            }
            
    function Start() {
                $(
    "#content").hide(); $("#Div1").show();
            
            }
            
    function FadeIn(item) {
                item.fadeIn(
    3000);
            }
        
    </script>
    </head>
    <body>
        
    <div>
        
    <input type="button" value="Submit" id="button"/>
        
    <div id="content" style="400px;height:300px;border-style:solid;
        border-1px;"
    > </div>
        
    <div id="Div1" style="400px;height:100px;border-style:solid;
        border-1px;background-color:Red"
    >
        正在加载,请稍等 
    </div>
        
        
    </div>
    </body>
    </html>
  • 相关阅读:
    调用外部 DLL 中的函数(显示调用)
    模式窗体与非模式窗体
    使用PChar和string类型时的内存分配技术
    保密卡程序的编写
    Dll 使用 PChar 参数的小例子
    delphi动态创建组件的颜色
    Dll 模式窗口与非模式窗口
    调用外部 DLL 中的函数(隐式调用)
    内核读写只读内存方法总结[Delphi描述][转帖]
    delphi资源文件制作及使用详解
  • 原文地址:https://www.cnblogs.com/hawkon/p/1560151.html
Copyright © 2011-2022 走看看