可拖動&可收縮的frame
可拖動&可收縮的frame
<frameset id="first" rows="*" cols="260,10,*"> <frame src="left.jsp" frameborder="0" allowtransparency="true" /> <frame src="mid.jsp" frameborder="1" bordercolor="red" allowtransparency="true" scrolling="no"> <frame src="right.jsp" frameborder="0"> </frameset> |
<table width="10" height="800" bgcolor="#CCFF33">
<tr valign="middle" onclick="folder()"><td>0</td></tr>
</table>
</body>
?
var counter = 0;? // 加個計數參數 // 伸縮 frame function folder(){ ?????? counter++; ?????? if(counter%2==1){? // 單數點擊 ????????????? parent.first.cols="0,10,*"; ?????? }else{ ????????????? parent.first.cols = "260,10,*";?????? ?????? } } |
posted on 2008-06-20 10:08 李云澤 閱讀(2388) 評論(1) 編輯 收藏 所屬分類: javascript 、HTML