More Frame Help: Resizing frame on checkbox click |
More Frame Help: Resizing frame on checkbox click |
AngelsNecropolis |
Aug 4 2008, 12:56 PM
Post
#1
|
Group: Members Posts: 5 Joined: 30-July 08 Member No.: 6,299 |
Thanks in advance for any help!
I need to make a checkbox that will autoresize the frame the checkbox is in on click. Checkbox is clicked on frame. Frame autoresizes its height from X number to X number. uncheck and it reverts back to normal. Basically its creating a minimize function. The frame size is located on the "main frame" page and the check box is located on a seperate page called "bottum frame." Here is the code for the main frame page: <title>**CN Enhanced (BETA)</title> <html> <frameset border=0 rows="45,*,200"> <! rows="x,*,z" where X=verticle size of menue and Y=verticle size of Paste> <frameset rows="45,*"> <frame scrolling="no" name="menu" src="G:\Temp\Custom_Notes_Enhanced_-_Beta\CNE_Top_Frame_BETA.html"> </frameset> <frame name="customnotes" src="G:\Temp\Custom_Notes_Enhanced_-_Beta\Custom_Notes_Prefilled.html"> <frame scrolling="no" rows="45"name="bottom" src="G:\Temp\Custom_Notes_Enhanced_-_Beta\CNE_Bottom_Frame_BETA.html"> </frameset> </html> Here is the code for the bottom frame: <Title>Test Notepad</title> <body bgcolor="green"> <script type=text/javascript> function copytoclipboard1() {document.formx1.txtareax1.focus(); document.formx1.txtareax1.select(); copiedtxt = document.selection.createRange(); copiedtxt.execCommand("Copy"); }</SCRIPT> <script type=text/javascript> function clear1() {document.formx1.txtareax1.focus(); document.formx1.txtareax1.select(); copiedtxt = document.selection.createRange(); copiedtxt.execCommand("delete"); }</SCRIPT> <script type=text/javascript> function CC1() {document.formx1.txtareax1.focus(); document.formx1.txtareax1.select(); copiedtxt = document.selection.createRange(); copiedtxt.execCommand("Copy"); copiedtxt.execCommand("delete"); }</SCRIPT> <center> <INPUT onclick=copytoclipboard1() type=button value=Copy> <INPUT onclick=clear1() type=button value=Clear> <INPUT onclick=CC1() type=button value=Cut> <FORM name=formx1><TEXTAREA id=txtareax1 rows=8 cols=35></TEXTAREA></FORM> </center> |
pandy |
Aug 4 2008, 01:27 PM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
Seems this is related to this thread.
http://forums.htmlhelp.com/index.php?showtopic=6618&hl= |
AngelsNecropolis |
Aug 4 2008, 02:58 PM
Post
#3
|
Group: Members Posts: 5 Joined: 30-July 08 Member No.: 6,299 |
This one has to do with autoresizing the current frame with a checkbox. The other post im not interested in resizing the frame. In the other post I just want the contents to be displayed or aligned towards the top of the frame. Thanks. I'll upload the files but cant right now. At work. Thanks. |
Christian J |
Aug 4 2008, 04:34 PM
Post
#4
|
. Group: WDG Moderators Posts: 9,653 Joined: 10-August 06 Member No.: 7 |
Something like this seems to work in my browsers:
CODE top.document.getElementsByTagName('frameset')[0].rows='500,*'; |
Lo-Fi Version | Time is now: 19th April 2024 - 08:38 PM |