<HEAD> <link href="common_codethat.css" rel="stylesheet" type="text/css"> <script language="javascript1.2" src="codethatsdk.js"></script> <script language="javascript1.2" src="jsform/codethatform_windowed.js"></script> <script language="javascript1.2"> var w; var html = "table border=0 cellpadding=4 cellspacing=2 "+ "width=100%><tr><td>"+ "<p class=title><img src='img/alarm.gif' align=left "+ "valign=bottom> It's time to wake up!</td></tr>"; function wincreate () { w = new CWindow( 384, 256, 150, 10,'CodeThatJSForm - windowed', html,'#F0DCA3','','','/common_codethat.css',1,1); w.create(); } </script> </head> <body> <form> <P class=title3> <IMG height=15 src="/img/arrow_light.gif" width=13> Press this button to Create New Simple Window Form <input class=btn type=button onclick="wincreate()" value="Create New Box"> <P class=title3> <IMG height=15 src="/img/arrow_light.gif" width=13> Change window coordinate <p> <b>x</b> <input class=formlist style="width: 50px" name=x value=300> <b>y</b> <input class=formlist style="width: 50px" name=y value=200> <input type=button value="Move" class="btn" onclick="if (w == null) alert('You should create at least one Windowed Form. Press Create New Box button.'); else if (x.value == null) alert('You should enter x-coordinate.'); else if (y.value == null) alert('You should enter y-coordinate.'); else w.move(x.value, y.value)"> <P class=title3> <IMG height=15 src="/img/arrow_light.gif" width=13> Change window size <p> <b>width</b> <input class=formlist style="width: 50px" name=win_width value=400> <b>height</b> <input class=formlist style="width: 50px" name=win_height value=100> <input type=button value="Resize" class="btn" onclick="if (w == null) alert('You should create at least one Windowed Form. Press Create New Box button.'); else if (win_width.value == null) alert('You should enter width.'); else if (win_height.value == null) alert('You should enter height.'); else w.resize(win_width.value, win_height.value)"> <P class=title3> <IMG height=15 src="/img/arrow_light.gif" width=13> Load URL <p> <input name=url maxlength=1024 size=30 value='http://www.codethat.com'> <input type=button class=btn onclick="if (w == null) alert('You should create at least one Windowed Form. Press Create New Box button.'); else w.loadURL(this.form.url.value)" value="Load"> </form> </body> </html>