相關頁面知識備份
一.標簽frameset使用 注:frameset外不能套用body標簽
<frameset rows="96,*" framespacing="0" frameborder="1" >
?
?
?
?
?
</frameset>
?
設置frameset中的frame大小不可調,使用frame標簽的noresize="noresize"屬性或直接noresize,缺省是允許調節(jié)大小的
<frameset rows="50%,50%">
?
?
?
?
?
</frameset> 功能:返回頂層窗口,即瀏覽器窗口。 語法:window.top 注:如果窗口本身就是頂層窗口,top屬性返回的是對自身的引用。
二.選擇iframe以下是代碼片段
<body style="background-image:url(images/background.bmp);background-repeat:repeat-x; background-color:#FFFFFF">
<table border="0" cellpadding="0" cellspacing="0" width="950" height="100%" align="center">
<tr>
?<td width="950px" height="180"><iframe id="iframeTop" name="iframeTop" src="jsp/top.htm" scrolling="no" frameborder="0" marginwidth="0" marginheight="0" width="950" height="100%"></iframe></td>
</tr>
<tr>
?<td><iframe id="iframeCenter" name="iframeCenter" src="jsp/center.htm" scrolling="no" frameborder="0" marginwidth="0" marginheight="0" width="950px"></iframe></td>
</tr>
<tr>
?<td height="55px"><iframe id="iframeBottom" name="iframeBottom"" src="jsp/bottom.htm" scrolling="no" frameborder="0" marginwidth="0" marginheight="0" width="950px" height="55px"></iframe></td>
</tr>
</table>
</body>
</html>
scrolling="no"?? 意思是不能的下拉框
三.Window top、parent屬性
window.top
![]() |
功能:返回父窗口。 語法: window.parent 注:如果窗口本身是頂層窗口,parent屬性返回的是對自身的引用。 在框架網頁中,一般父窗口就是頂層窗口,但如果框架中還有框架,父窗口和頂層窗口就不一定相同了。 |
四.釋放ie中對象的內存
if(window.navigator.appName=='Microsoft Internet Explorer'){
??obj.src = null;
??CollectGarbage();//用于內存釋放,先將需要釋放的對象置為空
?}
CollectGarbage,是IE的一個特有屬性,用于釋放內存的,使用方法嘛應該是,將該變量或引用對象,設置為null或delete,然后在進行釋放動作,在做CollectGarbage前,要必需清楚的兩個必備條件:
引用
- 一個對象在其生存的上下文環(huán)境之外,即會失效。
- 一個全局的對象在沒有被執(zhí)用(引用)的情況下,即會失效。
五.彈出一個頁面
window.open('../six.html','main','top=0,left=0,width=465,height=620,status=no,toolbar=no,menubar=no,scrollbars=yes,resizable=no');
resizable=no就是不讓用戶修改彈出窗口大小
posted on 2009-08-03 15:53 tobyxiong 閱讀(223) 評論(0) 編輯 收藏 所屬分類: show page