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

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

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

    posts - 37,  comments - 9,  trackbacks - 0
    BOM:Browser Object Model,瀏覽器對象模型。BOM是由一系列的對象組成的。其結構如下圖所示。


    可以看出,window對象是整個BOM的核心,因此,先討論window對象。
    (1)使用框架集的情況下
            使用框架集合的情況下,每個框架都由他自身的window對象表示,存放在frames集合中。可以通過數(shù)字或者名字對框架進行索引。看例子:
    <html>
        
    <head></head>
        
    <frameset rows="100,*">
            
    <frame src="frame.html" name="topFrame" />
            
    <frameset cols="50%,50%">
                
    <frame src="anothorFrame.html" name="leftFrame"/>
                
    <frame src="yetAnothorFrame.html" name="rightFrame"/>
            
    </frameset>
        
    </frameset>
    </html>
            我們可以通過window.frames[0]或者window.frames["topFrame"]引用頂層的框架。由于window對象是整個BOM的核心,因此再寫上面的代碼時,可以忽略window對象不寫,直接寫frames[0]或者frames["topFrame"]即可。
            在框架中使用window對象,代表的是該框架本身。因此,還引入了top對象。該對象指向的是對頂層的框架,也就是瀏覽器窗口。
            此外,還有一個parent對象。顧名思義,parent指向該框架的父框架。看例子。
    <!--parent.html-->
    <html>
        
    <head></head>
        
    <frameset rows="100,*">
            
    <frame src="frame.html" name="topFrame" />
            
    <frameset cols="50%,50%">
                
    <frame src="anothorFrame.html" name="leftFrame"/>
                
    <frame src="anotherframeset.html" name="rightFrame"/>
            
    </frameset>
        
    </frameset>
    </html>
           其中,anotherframeset.html的代碼如下:
    <!--anotherframeset.html-->
    <html>
     
    <head>
      
    <title></title>
     
    </head>
     
    <body>
        
    <frameset cols="100,*">
            
    <frame src="red.html" name="redFrame"/>
            
    <frame src="blue.html" name="blueFrame"/>
        
    </frameset>
     
    </body>
    </html>
            如果在red.html或者blue.html中,parent指向parent.html中的rightFrame。如果代碼寫在parent.html中的topFrame中,那么parent指向top對象,也就是瀏覽器窗口。還有一個指針self,它總是等于window。

    參考書:
    《JavaScript高級編程》Nicolas C. Zakas著, 曹力 張欣 等譯。
    posted @ 2011-10-18 12:22 wawlian 閱讀(472) | 評論 (0)編輯 收藏
    修改host,加入 

    203.208.46.146 www.google.com 
    203.208.46.147 www.google.com.hk 
    203.208.46.132 clients1.google.com 
    203.208.46.149 mail.google.com 
    203.208.46.161 chatenabled.mail.google.com 
    203.208.46.161 mail-attachment.googleusercontent.com
    哈哈,找到解決辦法,速度明細加快 
    posted @ 2011-10-14 14:56 wawlian 閱讀(682) | 評論 (0)編輯 收藏
    以下內(nèi)容均是來自《鋒利的jQuery》,發(fā)到這里,純屬做個筆記,方便查閱。
    直接看代碼:

     1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
     2         "http://www.w3.org/TR/html4/loose.dtd">
     3 <html>
     4 <head>
     5     <title></title>
     6     <script type="text/javascript" src="jquery-1.3.1.js">
     7 
     8     </script>
     9 
    10     <script type="text/javascript">
    11         $().ready(
    12             function() {
    13 
    14                 //表單對象屬性過濾選擇器
    15                 //1改變表單內(nèi)可用元素的值
    16                 //$('#form1 input:enabled').val("這里變化了");
    17 
    18                 //2改變表單內(nèi)不可用元素的值
    19                 //$('#form1 input:disabled').val("這里變化了");
    20 
    21                 //3選取多選框中選中的個數(shù)
    22                 //alert($('#form1 input:checked').length);
    23 
    24                 //4選取下拉框中選中的內(nèi)容
    25                 alert($('#form1 select :selected').length);
    26             }
    27         );
    28     </script>
    29 </head>
    30 <body>
    31     <form action="" id="form1">
    32         可用元素:<input name="add" value="可用文本框"/><br/>
    33         不可用元素:<input name="email" disabled="disabled" value="不可用文本框"/><br/>
    34         可用元素:<input name="che" value="可用文本框"/><br/>
    35         不可用元素:<input name="name" disabled="disabled" value="不可用文本框"/><br/>
    36 
    37         <br/>
    38         多選框:<br/>
    39         <input type="checkbox" name="newsletter" checked="checked" value="test1"/>test1
    40         <input type="checkbox" name="newsletter" value="test2"/>test2
    41         <input type="checkbox" name="newsletter" value="test3"/>test3
    42         <input type="checkbox" name="newsletter" checked="checked" value="test4"/>test4
    43         <input type="checkbox" name="newsletter" value="test5"/>test5
    44 
    45         <div></div>
    46         <br/><br/>
    47         下拉列表:<br/>
    48         <select name="test" multiple="multiple" style="height:100px">
    49             <option>浙江</option>
    50             <option selected="selected">湖南</option>
    51             <option>北京</option>
    52             <option selected="selected">天津</option>
    53             <option>廣州</option>
    54             <option>湖北</option>
    55         </select>
    56 
    57         <br/><br/>
    58         下拉列表2:<br/>
    59         <select name="test2">
    60             <option>浙江</option>
    61             <option>湖南</option>
    62             <option selected="selected">北京</option>
    63             <option>天津</option>
    64             <option>廣州</option>
    65             <option>湖北</option>
    66         </select>
    67 
    68         <div></div>
    69     </form>
    70 </body>
    71 </html>
    posted @ 2011-06-17 16:51 wawlian 閱讀(307) | 評論 (0)編輯 收藏
         摘要: 以下內(nèi)容均是來自《鋒利的jQuery》,發(fā)到這里,純屬做個筆記,方便查閱。直接看代碼:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->  1 <!DOCTYPE HTML PUBLIC ...  閱讀全文
    posted @ 2011-06-17 16:11 wawlian 閱讀(906) | 評論 (0)編輯 收藏
    MyEclipse 9.0 安裝了Flash Builder4.5,界面菜單都變成中文的了,完全不適應。
    如果不習慣中文界面, 改回英文界面吧。只需要為 flash builder 加上啟動參數(shù)
    " -clean -nl en_US "
    完成后記得將 -clean 去掉,以免每次啟動 flash builder 都執(zhí)行清理動作而浪費時間。
    posted @ 2011-06-15 14:04 wawlian 閱讀(539) | 評論 (0)編輯 收藏

    下載正確的版本,然后修改refhost.xml文件


    然后解壓,在目錄中找到refhost.xml(有兩個,我的一個是在stage\prereq\db目錄下,一個是在stage\prereq\db_prereqs\db目錄下)進行添加修,添加如下代碼:

    <!--Microsoft Windows 7-->
    <OPERATING_SYSTEM>
    <VERSION VALUE="6.1"/>
    </OPERATING_SYSTEM>

    注:如果安裝的是客戶端,將路徑中的db改為client即可。

    而后還要修改一個oraparam.ini文件,在install目錄下

    先在[Certified Versions]
    #You can customise error message shown for failure, provide value for CERTIFIED_VERSION_FAILURE_MESSAGE
    #Windows=5.0,5.1,5.2,6.0,6.1

    注:即在#Windows=5.0,5.1,5.2后面添加 ,6.0,6.1

    再添加下面代碼:

    #[Windows-6.1-required]
    #Minimum display colours for OUI to run
    MIN_DISPLAY_COLORS=256
    #Minimum CPU speed required for OUI
    #CPU=300
    #[Windows-6.1-optional]


    以管理員身份運行setup.exe

    posted @ 2011-06-02 21:13 wawlian 閱讀(654) | 評論 (1)編輯 收藏
     1 //升序插入排序
     2     public static int[] insertSort(int[] a) {
     3         for(int i = 1; i < a.length; i++) {
     4             int j = i-1;
     5             int tmp = a[i];
     6             while(j >= 0 && a[j] > tmp) {
     7                 a[j+1= a[j];
     8                 j = j -1;
     9             }
    10             a[j+1= tmp;
    11         
    12         }
    13         
    14         return a;
    15     }
    16     
    17     //降序插入排序
    18     public static int[] insertSortDesc(int[] a) {
    19         for(int j=1; j < a.length; j++) {
    20             int i = j - 1;
    21             int key = a[j];
    22             while(i >= 0 && a[i] < key) {
    23                 a[i+1= a[i];
    24                 --i;
    25             }
    26             a[i+1= key;
    27         }
    28         return a;
    29     }
    posted @ 2011-05-25 14:02 wawlian 閱讀(171) | 評論 (0)編輯 收藏

    <2011年5月>
    24252627282930
    1234567
    891011121314
    15161718192021
    22232425262728
    2930311234

    常用鏈接

    留言簿

    隨筆分類

    隨筆檔案

    搜索

    •  

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 波多野结衣在线免费视频| 亚洲AV之男人的天堂| 亚洲欧美日韩中文字幕在线一区| 香蕉高清免费永久在线视频| 国产成人无码免费看片软件| 亚洲另类小说图片| 日韩精品成人亚洲专区| 一级毛片在线免费看| 亚洲av成人一区二区三区观看在线| 亚洲色偷拍另类无码专区| 日韩国产免费一区二区三区| 久久久久亚洲AV片无码| 水蜜桃亚洲一二三四在线| 亚洲自偷自偷图片| 香蕉成人免费看片视频app下载| 亚洲国产成人在线视频| 免费一级毛片在级播放| 中文字幕免费高清视频| 一级毛片a免费播放王色电影 | 美女被cao网站免费看在线看| 亚洲日韩一区精品射精| 亚洲av永久无码精品网站| 免费看小12萝裸体视频国产| 蜜桃成人无码区免费视频网站| 粉色视频成年免费人15次| 亚洲av极品无码专区在线观看| 亚洲中文字幕久久精品无码APP| 成人A级毛片免费观看AV网站| A级毛片高清免费视频在线播放| 鲁死你资源站亚洲av| 亚洲无成人网77777| 国产亚洲一区二区三区在线| 国产免费卡一卡三卡乱码| www.免费在线观看| 久久精品免费观看| 一级一看免费完整版毛片| 亚洲av无码专区在线电影| 亚洲人成网站看在线播放| 久久亚洲日韩看片无码| 久久亚洲精品视频| 亚洲中文字幕无码久久精品1|