sailing

Everything...

[simple atlas] implement drag altas拖动的实现

<!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>Untitled Page</title>

</head>

<body style="height:100%">

    <atlas:ScriptManager runat="server" ID="ScriptManager1">

        <Scripts>

            <atlas:ScriptReference ScriptName="AtlasUIDragDrop" />

        </Scripts>

    </atlas:ScriptManager>

    <form id="form1" runat="server">

        <div id="dragTester" style="background-color:SkyBlue;width:100px;height:100px">

            drag me

        </div>

 

    </form>

    <script type="text/xml-script">

        <page xmlns:script="http://schemas.microsoft.com/xml-script/2005">

            <components>

                <control id="dragTester">

                    <behaviors>

                        <floatingBehavior handle="dragTester">

                        </floatingBehavior>

                    </behaviors>

                </control>          

            </components>

        </page>

    </script>

 

</body>

</html>

 

posted on 2006-07-29 23:12  乌生鱼汤  阅读(152)  评论(0编辑  收藏  举报

导航