回首页 ◎ 设为首页  
◎ 收藏本站  
◎ 联系我们  
  首 页  网络资讯  教程资料  免费资源  建站指南  休闲娱乐  经典整站  访客留言  
  当前位置:首 页 >> 教程资料 >> 网页制作 >> 仿3721窗口拖动的代码
最 新 推 荐
淘宝网店“设计装修”..推荐
网页制作常见105个问..推荐
使用FrontPage2000注..推荐
网页制作常用代码推荐
颜色代码大全推荐
热 门 排 行
北京奥运会倒计时代码
如何在网页中插入Flas..
网页自动点击广告代码
星空动态星空背景特效..
网页两侧浮动广告代码
如何用Frontpage下载..
离开时自动提示设为首页
颜色代码大全推荐
怎么使网页跳转地址栏..
站长常用广告代码的表..
淘宝网店“设计装修”..推荐
在网页上设计飘动广告
网页制作常用代码推荐
网页常用特效整理:高..
网页制作常见105个问..推荐
使用css设置iframe样式
最 近 更 新
CSS在表格边框上的美..
Flash文件中多个swf调..
圆角边框的代码
股票即时行情查询系统
万能音.视频在线转换..
仿3721窗口拖动的代码
美化的GOOGLE广告代码
修改discuz5.5,让广..
一些所谓的CSS的“顶..
中英文双语导航菜单
广 告 位 置
站 内 搜 索
关键词

搜索方式

搜索范围

精确匹配
仿3721窗口拖动的代码

来源:盛绿设计 等级:默认等级
发布于2007-05-04 11:21 被读71次 【字体:
仿仿3721窗口拖动 的代码

<html>
<head>
<title></title>
<style>
/*debug*/

/*
#leftcolumn {
       background:#f0c0c0;
}
#centercolumn {
       background:#c0c0f0;
}
#rightcolumn {
       background:#c0f0c0;
}
*/

/* debug over */

/*
html {
       height: 100%;
}
img {
       border: none;
}
body {
       background: #fff;
       height: 100%;
       font-family: Arial, Helvetica, sans-serif;
       font-size: 11px;
}
*/

*
{
margin:0;padding:0;
}

.move
{
       margin:10px;
       background:#fcfef0;
       height:80px;
       border:1px solid #cdcecf;
}


#container {
   /*position:relative;*/
       text-align:center;                     /*居中*/
       margin:0 auto;
       background:#f0c0c0;
}


#header {  
       height:100px;
       background:#f0f0fc;
}

#leftcolumn,#centercolumn,#rightcolumn {
       float:left;
   /*min-height:400px;*/
       margin-right:1%;  
   /*width:32%;*/
}

#leftcolumn,#rightcolumn {
       width:25%;
}
#centercolumn {
       width:45%;
}

.sortHelper {
       border: 10px dashed #666;
       width: auto !important;
}
</style>
<script src="./jquery.js" type="text/javascript"></script>
<script src="./interface.js" type="text/javascript"></script>
<script type="text/javascript">
 $(document).ready(init);
function init(){

        $("div.move p:first-child").css(      /*取得第一段CSS样式*/
       {
          color:"#ff0000",
          textAlign:"left",
      cursor:"move",
          lineHeight:"10px",
          backgroundColor:"#99FFCC",
          borderTop:"2px solid #99FFCC",      /*拖动边框*/
          color:"#000",
          fontWeight:"bold",
          fontSize:"12px",
          height:"20px",
          position:"relative"  
        }
       );

/*
        $("div.move").Draggable({
//              handle(this).find("p:first-child"),
              revert:false,        //拖拽物 是否回原位置
//              ghosting:true,       //是否创建一个拖拽运行时复制
              zIndex:10,       //拖拽时层级
              opacity:0.4,       //拖拽时透明度
//              grid:50,       //拖拽间隔
//              grid:[20,50],
              fx:400,              //回位置上的时间间隔,毫秒为单位
              //              containment:"parent",       //在某个对象范围内运动
              //              containment:[0,0,100,100],       //[top:0,left:0,width:100,height:100]
              //        axis:"vertically"       //只能水平或者垂直移动horizontally
              snapDistance:50
//              autoSize:true,       //拖动的时候,影子自动调整大小
//              insideParent:false
       });
*/
        $('#container > div').Sortable(
                     {


/*-------------------移动层----------------------------------------*/
                            accept :               'move',                        
/*-----------------------------------------------------------------*/

                            revert:false,
                            ghosting:false,


/*-------------------辅助层----------------------------------------*/
                            helperclass: 'sortHelper',                  
/*-----------------------------------------------------------------*/                             


//                            activeclass :        'sortableactive',
//                            hoverclass :        'sortablehover',
                 



/*-------------------透明度---------------------------------------*/                             
                            opacity:               0.75,                              
/*----------------------------------------------------------------*/


                            snapDistance:50,


/*-----------------------移动手柄---------------------------------*/
                            handle:       'p',                                    
/*----------------------------------------------------------------*/


              //              autoSize:false,                                 /*是否自己调整属性*/
                            /*fx:                            200,*/
              //              revert:                     true,
         //              floats:                     true,




/*--------------------------------------------------------------*/
                            onStart : function() {
                                    $.iAutoscroller.start(this, document.getElementsByTagName('body'));
                            },
                            onStop : function() {
                                    $.iAutoscroller.stop();
                            },
/*--------------------------------------------------------------*/




/*-------------------------------------------------------------*/
                     tolerance:'intersect'
   //                            tolerance:'pointer'
   //                            tolerance:'fit'
/*-------------------------------------------------------------*/

                     
                     }
                     );
/*
        $("#container > div").Droppable({
              accept : 'move',
              ondrop:function(drag) {
                      $(drag).appendTo( $(this));
              }
//              tolerance:"intersect"
       });
*/
}
</script>
</head>
<body>
<div id="container">
   
   
   <div id="header"><p>HEAD</p></div>


   <div id="leftcolumn">
    <div class="move"><p>A</p></div>  
    <div class="move"><p>B</p></div>
       <div class="move"><p>C</p></div>
   </div>


   <div id="centercolumn">
    <div class="move"><p>1</p></div>
    <div class="move"><p>2</p></div>
    <div class="move"><p>3</p></div>
    <div class="move"><p>4</p></div>
    <div class="move"><p>5</p></div>
    <div class="move"><p>6</p></div>
    <div class="move"><p>7</p></div>
    <div class="move"><p>8</p></div>
   </div>


   <div id="rightcolumn">
    <div class="move"><p>a</p></div>
    <div class="move"><p>b</p></div>
    <div class="move"><p>c</p></div>
   </div>

</div>
</body>
</html>

相关专题:暂无相关专题

上一篇:美化的GOOGLE广告代码
下一篇:万能音.视频在线转换器代码

共有评论 0 条 网友评分 0分 查看全部

【发表评论】 评分:1分 2分 3分 4分 5分


Powered By Www.Xydw.COM Ver1.14 管理
Copyright © 2004-2005 盛绿设计 All Right Reserved. XCMS
冀ICP备06026128号