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>
  • 相关阅读:
    Android自动填写获取到的验证码
    java 调用mysql存储过程
    TreeMap按照key排序
    Java中的Map List Set等集合类
    Java 多线程 并发编程
    Linux查看端口、进程情况及kill进程
    采用正则表达式获取地址栏参数:( 强烈推荐,既实用又方便!)
    Wix 安装部署教程(十) --来,用WPF做个漂亮的安装界面
    Jquery Mobile 小结
    岂能尽如人意,但求无愧于心
  • 原文地址:https://www.cnblogs.com/hawkon/p/1560151.html
Copyright © 2011-2022 走看看