source: cows/branches/cows-vis/cows/pylons/project_templates/cows_server/+package+/public/js/yui/examples/dd/proxy-drag_clean.html @ 5259

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/cows/branches/cows-vis/cows/pylons/project_templates/cows_server/+package+/public/js/yui/examples/dd/proxy-drag_clean.html@5259
Revision 5259, 1.6 KB checked in by domlowe, 11 years ago (diff)

adding yui javascript

Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2<html>
3<head>
4<meta http-equiv="content-type" content="text/html; charset=utf-8">
5<title>Proxy Drag</title>
6
7<style type="text/css">
8/*margin and padding on body element
9  can introduce errors in determining
10  element position and are not recommended;
11  we turn them off as a foundation for YUI
12  CSS treatments. */
13body {
14        margin:0;
15        padding:0;
16}
17</style>
18
19<link type="text/css" rel="stylesheet" href="../../build/cssfonts/fonts-min.css" />
20<script type="text/javascript" src="../../build/yui/yui-min.js"></script>
21
22<!--there is no custom header content for this example-->
23
24</head>
25
26<body class=" yui-skin-sam">
27
28<h1>Proxy Drag</h1>
29
30<div class="exampleIntro">
31        <p>This example shows a simple proxy drag interaction that doesn't require a drop interaction.</p>
32                       
33</div>
34
35<!--BEGIN SOURCE CODE FOR EXAMPLE =============================== -->
36
37<style>
38    #demo {
39        height: 100px;
40        width: 100px;
41        border: 1px solid black;
42        background-color: #8DD5E7;
43        cursor: move;
44    }
45</style>
46
47<div id="demo">Drag Me</div>
48
49<script>
50
51YUI({base:"../../build/", timeout: 10000}).use('dd-drag', 'dd-proxy', function(Y) {
52    var dd = new Y.DD.Drag({
53        //Selector of the node to make draggable
54        node: '#demo',
55        //This config option makes the node a Proxy Drag
56        proxy: true
57    });   
58});
59</script>
60
61<!--END SOURCE CODE FOR EXAMPLE =============================== -->
62
63</body>
64</html>
65<!-- delightfuture.corp.yahoo.com uncompressed/chunked Wed Aug 13 16:45:30 PDT 2008 -->
Note: See TracBrowser for help on using the repository browser.