[原創]php+ajax實現類比Win檔案管理系統六_PHP教程

來源:互聯網
上載者:User
[原創]php+ajax實現類比Win檔案管理系統

//本教程由本站原創,轉載請註明來處

作者:www.drise.cn

郵箱:drise@163.com

QQ:271728967

//

上面php檔案講完了,下面來講一下,document.js檔案.些檔案來自互連網.

var subMenuSrcObj=null;
function ShowMenu(obj,x,y){


try{

subMenuSrcObj=obj;


document.getElementById("subMenu").style.top=(ie_y(obj)+obj.offsetHeight+y)+"px";


document.getElementById("subMenu").style.left=(ie_x(obj)+x)+"px";


}catch(e)
{ ;
}


}


function loadsubMenu()


{


document.body.insertAdjacentHTML("afterBegin","s");


}


function hiddenSubMenu1()


{


document.getElementById("subMenu").style.left="-9000px";


}


function hiddenSubMenu()


{


try


{




obj=document.getElementById("subMenu");


temp=false;


e=event.srcElement;


if(e==obj)


{


temp=false;


}else


{


temp=true;


while(e=e.offsetParent)


{


if(e==obj||e==subMenuSrcObj)


{


temp=false;


}


}


}


if(event.srcElement==subMenuSrcObj)


{


temp=false;


}


if(temp&&parseInt(obj.style.left)>0)


{


hiddenSubMenu1();


}


}


catch (e)


{


}


}


function ie_y(e){


var t=e.offsetTop;


while(e=e.offsetParent){


t+=e.offsetTop;


}


return t;


}


function ie_x(e){


var l=e.offsetLeft;


while(e=e.offsetParent){


l+=e.offsetLeft;


}


return l;


}


function del(){




}

function myMenuShow(obj,btn)


{


document.getElementById("subMenu").innerHTML="

  • 剪 切
  • 複 制
  • 粘 貼
  • 刪 除
  • 重新命名

  • ";


    ShowMenu(obj,0,0);


    return false;


    }


    document.onmousemove=hiddenSubMenu;


    attachEvent('onload', loadsubMenu);// JavaScript Document//等一下只要這樣調用就行了.

    上一篇

    http://www.bkjia.com/PHPjc/631851.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/631851.htmlTechArticle[原創]php+ajax實現類比Win檔案管理系統 //本教程由本站原創,轉載請註明來處 作者:www.drise.cn 郵箱:drise@163.com QQ:271728967 // 上面php檔案講完了...

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.