如果在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) |
編輯 收藏