bklLiudl
2024-07-23 675b8bcc4a3630d95e3d0b97d933e63442075ecb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE html>
<html>
<head>
    <title></title>
    <link rel="Stylesheet" href="context/themes/base/style.css" type="text/css" />
    <link rel="Stylesheet" href="context/themes/base/jquery-ui.css" type="text/css" />
    <script src="scripts/jquery.js" type="text/javascript"></script>
    <script src="scripts/jquery-ui.js" type="text/javascript"></script>
    <script src="scripts/jquery.contextMenu.js" type="text/javascript"></script>
    <script src="scripts/jquery.cleverTabs.js" type="text/javascript"></script>
    <script type="text/javascript">
        var tabs;
        var tmpCount = 0;
 
        $(function () {
 
            tabs = $('#tabs').cleverTabs();
            $(window).bind('resize', function () {
                tabs.resizePanelContainer();
            });
 
            tabs.add({
                url: 'http://think8848.cnblogs.com',
                label: 'think8848'
            });
 
            tabs.add({
                url: 'http://www.google.com.hk',
                label: 'google'
            });
 
            tabs.add({
                url: 'http://www.baidu.com',
                label: 'baidu'
            });
 
            tabs.add({
                url: 'http://www.soso.com',
                label: 'soso',
                callback: function () {
                    alert('callback');
                }
            });
 
            tabs.add({
                url: 'http://www.sogou.com',
                label: 'sogou'
            });
 
            $('input[type="button"]').button();
 
            $('#btnAddMore').click(function () {
                tabs.add({
                    url: 'tmp.htm?' + tmpCount++,
                    label: 'tab' + tmpCount
                });
            });
        });
    
    </script>
</head>
<body>
    <div id="tabs" style="margin: 0px;">
        <ul>
        </ul>
    </div>
    </body>
</html>