zoukankan      html  css  js  c++  java
  • jQuery history plugin

    Demos

    Some demos are available here and included in the repository.

    And this site itself is built on the plugin:

    (function($){ 
        var origContent = ""; 
     
        function loadContent(hash) { 
            if(hash != "") { 
                if(origContent == "") { 
                    origContent = $('#content').html(); 
                } 
                $('#content').load(hash +".html", 
                                   function(){ prettyPrint(); }); 
            } else if(origContent != "") { 
                $('#content').html(origContent); 
            } 
        } 
     
        $(document).ready(function() { 
                $.history.init(loadContent); 
                $('#navigation a').click(function(e) { 
                        var url = $(this).attr('href'); 
                        url = url.replace(/^.*#/, ''); 
                        $.history.load(url); 
                        return false; 
                    }); 
            }); 
    })(jQuery);
    http://tkyk.github.com/jquery-history-plugin/#demos
  • 相关阅读:
    HTML
    Java 1.8 新特性
    Java 反射
    子网与超网
    Java 网络编程
    Java 单例模式、枚举
    Java 线程生命周期、线程池
    Java 多线程
    Java Properties、流对象关闭格式
    基础练习 十六进制转八进制
  • 原文地址:https://www.cnblogs.com/stalwart/p/1917421.html
Copyright © 2011-2022 走看看