source: main/trunk/greenstone3/web/interfaces/oran/js/jquery-ui-1.8rc1/demos/button/icons.html@ 24245

Last change on this file since 24245 was 24245, checked in by sjb48, 13 years ago

Oran code for supporting format changes to document.

  • Property svn:executable set to *
File size: 1.6 KB
Line 
1<!doctype html>
2<html lang="en">
3<head>
4 <title>jQuery UI Button - Icons demo</title>
5 <link type="text/css" href="../../themes/base/ui.all.css" rel="stylesheet" />
6 <script type="text/javascript" src="../../jquery-1.4.1.js"></script>
7 <script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
8 <script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
9 <script type="text/javascript" src="../../ui/jquery.ui.button.js"></script>
10 <link type="text/css" href="../demos.css" rel="stylesheet" />
11 <script type="text/javascript">
12 $(function() {
13 $(".demo button:first").button({
14 icons: {
15 primary: 'ui-icon-locked'
16 },
17 text: false
18 }).next().button({
19 icons: {
20 primary: 'ui-icon-locked'
21 }
22 }).next().button({
23 icons: {
24 primary: 'ui-icon-gear',
25 secondary: 'ui-icon-triangle-1-s'
26 }
27 }).next().button({
28 icons: {
29 primary: 'ui-icon-gear',
30 secondary: 'ui-icon-triangle-1-s'
31 },
32 text: false
33 });
34 });
35 </script>
36 <style>
37
38 </style>
39</head>
40<body>
41
42<div class="demo">
43
44 <button>Button with icon only</button>
45 <button>Button with icon on the left</button>
46 <button>Button with two icons</button>
47 <button>Button with two icons and no text</button>
48
49</div><!-- End demo -->
50
51
52
53<div class="demo-description">
54
55<p>Some buttons with various combinations of text and icons, here specified via metadata.</p>
56
57</div><!-- End demo-description -->
58
59
60
61</body>
62</html>
Note: See TracBrowser for help on using the repository browser.