<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    posts - 22,comments - 35,trackbacks - 0
    html 源文件:vwindow.htm

    <!DOCTYPE?HTML?PUBLIC?"-//W3C//DTD?HTML?4.0?Transitional//EN">
    <html>
    <head>
    <title>?New?Document?</title>
    <meta?name="Generator"?content="Microsoft?FrontPage?6.0">
    <meta?name="Author"?content="">
    <meta?name="Keywords"?content="">
    <meta?name="Description"?content="">
    <link?rel="stylesheet"?href="vwindow.css"?/>
    <script?language="javascript"?type="text/javascript">
    function?show()
    {
    ????
    var?v_ht?=?parseInt(document.getElementById("ht").value);
    ????
    var?v_wd?=?parseInt(document.getElementById("wd").value);
    ????
    var?v_co_x?=?parseInt(document.getElementById("cooX").value);
    ????
    var?v_co_y?=?parseInt(document.getElementById("cooY").value);
    ????
    var?v_tt?=?document.getElementById("tt").value;
    ????
    var?v_main?=?document.getElementById("main").value;
    ????
    var?v_st?=?document.getElementById("st").value;
    ????showvw(v_ht,v_wd,v_co_y,v_co_x,v_tt,v_main,
    0,v_st);
    }
    </script>
    </head>

    <body>
    <script?language="JavaScript"?src="vwindow.js"></script>
    虛擬窗口--jat?2005-05-15
    &nbsp;?<a?href="http://www.tmcode.net/">
    http://www.tmcode.net
    </a><br?/>
    <br?/>
    參數:

    <hr>
    高度:
    &nbsp;?<input?type="text"?id="ht"?size="7"><br?/>
    寬度:
    &nbsp;?<input?type="text"?id="wd"?size="7"><br?/>
    坐標X:?
    <input?type="text"?id="cooX"?size="7"><br?/>
    坐標Y:?
    <input?type="text"?id="cooY"?size="7"><br?/>
    標題:
    &nbsp;?<input?type="text"?id="tt"?size="25"><br?/>
    內容:
    &nbsp;?<textarea?id="main"?rows="6"?cols="41"?></textarea><br?/>
    狀態欄:
    <input?type="text"?id="st"?size="25"><p>
    <br?/>
    <button?onclick="show()"?style="width:?254px;?height:?26px">顯示</button>

    </p>
    <p>

    <br?/>
    <font?color="#FF00FF">CTRL+D</font>?調出調試窗口,詳細參數見vwindow.js注釋,請自行更改vwindow.css樣式</p>
    </body>
    </html>


    css 樣式:vwindow.css
    #vwin?{background-color:#ffcc66;border:outset?1px;position:absolute;visibility:hidden;width:300px;height:200px;cursor:crosshair;}
    #vwTit
    {background-color:#3399FF;}
    #vwTitle?
    {color:#ffffff;font-size:10pt;font-weight:bold;text-align:left;}
    #vwStatus?
    {background-color:#88ddff;font-size:9pt;}
    #vwText?
    {background-color:#88ddff;border:0px;font-size:9pt;padding:8px;}
    table
    {word-break:break-all;}


    javascript :vwindow.js
    /**
    ?*?虛擬窗口
    ?*?制作:jat
    ?*?2005-05-15
    *
    */
    var?inivw
    var?tbx;
    var?tby;

    inivw?
    =?"<div?id='vwin'>";
    /***標題欄***/
    inivw?
    +=?"<table?cellspacing='0'?cellpadding='0'?border='0'?width='100%'?id='vwTit'>";
    inivw?
    +=?"<tr><td?id='vwIcon'?width='25'><img?src='image/bomber.gif'?border='0'?height='25'?width='25'?ondblclick='hidevw()'></td><td?id='vwTitle'?onmousemove='dr_mv()'?onmousedown='xy();setCapture()'?onmouseup='releaseCapture()'>title</td><td?id='vwButton'?align='right'?width='25'><img?src='image/error.gif'?border='0'?height='25'?width='25'?alt='關閉'?onclick='hidevw()'></td></tr>";
    inivw?
    +=?"</table>";
    /***標題欄***/

    /***內容區***/
    inivw?
    +=?"<table?cellspacing='0'?cellpadding='0'?border='0'?width='100%'?height='100%'>";
    inivw?
    +=?"<tr><td?id='vwText'?valign='top'></td></tr>";
    inivw?
    +=?"</table>";
    /***內容區***/

    /***狀態欄***/
    inivw?
    +=?"<table?cellspacing='0'?cellpadding='0'?border='0'?width='100%'?height='20'?>";
    inivw?
    +=?"<tr><td?id='vwStatus'>rrr</td></tr>";
    inivw?
    +=?"</table>";
    /***狀態欄***/

    inivw?
    +=?"</div>";
    document.write(inivw);
    inivw?
    =?"";
    function?showvw(Ht,Wd,Tp,Lt,Tt,Txt,Icon,stat,name)???//showvw(高度,寬度,垂直坐標,水平坐標,標題,內容,圖標,狀態欄信息)
    ?{
    ??
    var?vwHeight;
    ??
    var?vwWidth;
    ??
    var?vwTop;
    ??
    var?vwLeft;
    ??
    var?vwTitle;
    ??
    var?vwIcon;
    ??
    var?vwText;
    ??
    var?vwStat;

    ??
    if(Ht?&&?Ht?>?30)
    ???vwHeight?
    =?Ht;
    ??
    else
    ???vwHeight?
    =?150;
    ??
    if(Wd?&&?Wd?>?100)
    ???vwWidth?
    =?Wd;
    ??
    else
    ???vwWidth?
    =?400;
    ??
    if(Tp?&&?Tp?>?0)
    ???vwTop?
    =?Tp;
    ??
    else
    ???vwTop?
    =?Math.max(Math.round((document.body.offsetHeight-vwHeight)/2),0);
    ??
    if(Lt?&&?Lt?>?0)
    ???vwLeft?
    =?Lt;
    ??
    else
    ???vwLeft?
    =?Math.max(Math.round((document.body.offsetWidth-vwWidth)/2),0);
    ??
    if(Tt)
    ???vwTitle?
    =?Tt;
    ??
    else
    ???vwTitle?
    =?"無標題";
    ??
    if(Txt)
    ???vwText?
    =?Txt;
    ??
    else
    ???vwText?
    =?"無內容";
    ??
    if(stat)
    ???vwStat?
    =?stat;
    ??
    else
    ???vwStat?
    =?"";
    ??document.getElementById(
    "vwin").style.height?=?vwHeight;
    ??document.getElementById(
    "vwin").style.width?=?vwWidth;
    ??document.getElementById(
    "vwin").style.left?=?vwLeft;
    ??document.getElementById(
    "vwin").style.top?=?vwTop;
    ??document.getElementById(
    "vwTitle").innerText?=?vwTitle;
    ??document.getElementById(
    "vwText").innerHTML?=?vwText;
    ??document.getElementById(
    "vwStatus").innerHTML?=?vwStat;
    ??document.getElementById(
    "vwin").style.visibility?=?"visible";
    ?}
    function?xy()
    ?{
    ??tbx?
    =?event.offsetX?+?29;
    ??tby?
    =?event.offsetY?+?4;
    ?}
    function?dr_mv()
    {
    ??
    if(event.button==1)
    ???{
    ???document.getElementById(
    "vwin").style.left?=?document.body.scrollLeft?+?event.clientX-tbx;
    ???document.getElementById(
    "vwin").style.top?=?document.body.scrollTop?+?event.clientY-tby;
    ???}
    }
    function?hidevw()
    ?{
    ??document.getElementById(
    "vwin").style.visibility?=?"hidden";
    ?}
    function?run_script()
    {
    ????
    var?msg?=?"";
    ????
    var?cmd;
    ????
    var?type;
    ????
    var?txt?=?document.getElementById("in_cmd").value;
    ????
    try
    ????{
    ????????cmd?
    =?eval(txt);
    ????????type?
    =?typeof?(cmd);
    ????}
    ????
    catch(e)
    ????{
    ????????cmd?
    =?"";
    ????????type?
    =?"";
    ????????msg?
    =?"輸入的變量不存在,請檢查變量名,注意大小寫!";
    ????}
    ????
    if(type?===?"string")
    ????????msg?
    =?"長度:"+cmd.length;
    ????
    if(cmd?===?null)
    ????????msg?
    =?"變量為空值!";
    ????
    if(cmd?===?undefined)
    ????????msg?
    =?"變量未初始化!";
    ????alert(
    "值:"+cmd+"\n"+"類型:"+type+"\n"+msg);
    }
    function?debug()
    {
    ????
    if(event.ctrlKey?&&?event.keyCode?==?68)
    ????????{
    ????????
    var?DBG_txt?=?"";
    ????????DBG_txt?
    +=?"<br?/><center><b>請輸入命令</b><br?/><input?type=\"text\"?style=\"text-align:center;\"?value=\"\"?size=40?id=in_cmd><br?/><input?type=\"button\"?value=\"顯示/運行\"?onclick=\"run_script()\">";
    ????????DBG_txt?
    +=?"</center>";
    ????????showvw(
    31,350,0,0,"Debug",DBG_txt,"debug.gif","");
    ????????document.getElementById(
    "in_cmd").focus();
    ????????}
    }
    document.body.onkeydown?
    =?debug;

    posted on 2006-06-30 11:05 kelven 閱讀(414) 評論(0)  編輯  收藏 所屬分類: JavaScriptHTML
    主站蜘蛛池模板: 亚洲成A人片77777国产| 国产精品久久久久久久久久免费| www亚洲精品少妇裸乳一区二区| 亚洲黄色中文字幕| 亚洲av乱码一区二区三区香蕉 | 久久青青草原国产精品免费| 亚洲一区免费视频| 国产免费无遮挡精品视频| 亚洲天天在线日亚洲洲精| 日韩大片免费观看视频播放| 在线观看亚洲免费视频| 黄色网址在线免费观看| 亚洲人成无码网WWW| 中国极品美軳免费观看| 亚洲va无码va在线va天堂| 日韩精品人妻系列无码专区免费| 免费**毛片在线播放直播| 特级aa**毛片免费观看| 色噜噜AV亚洲色一区二区| 亚洲中文字幕AV每天更新| 永久免费看bbb| 一级毛片免费播放试看60分钟 | 午夜a级成人免费毛片| 天天综合亚洲色在线精品| 野花高清在线电影观看免费视频 | 亚洲美女大bbbbbbbbb| 综合在线免费视频| 99ri精品国产亚洲| 成人免费毛片内射美女APP| 国产精品亚洲一区二区无码| 毛片a级毛片免费观看免下载| 亚洲精品在线视频观看| 日日麻批免费40分钟无码| 国产99在线|亚洲| 亚洲精品国产V片在线观看| 春暖花开亚洲性无区一区二区 | 全亚洲最新黄色特级网站| a级毛片免费高清毛片视频| 亚洲午夜未满十八勿入网站2| 91精品免费不卡在线观看| 久久国产亚洲精品无码|