home *** CD-ROM | disk | FTP | other *** search
- function resizeBrowserWindow(width,height) {
- window.resizeTo(width,height);
- }
- function behaviorFunction() {
- return "resizeBrowserWindow";
- }
-
- function canAcceptBehavior() {
- return ("onMouseUp");
- }
-
- function applyBehavior() {
- var width=document.theForm.width.value;
- var height=document.theForm.height.value;
- if (width=="" || width<1 || width>2000 || parseInt(width) != width) {
- width=300;
- }
- if (height=="" || height<1 || height>2000 || parseInt(height) != height) {
- height=300;
- }
- return "resizeBrowserWindow(" + width + "," + height + ")";
- }
-
- function inspectBehavior(ResizeFunctionCall) {
- var argArray = new Array;
- argArray = extractArgs(ResizeFunctionCall);
- document.theForm.width.value = argArray[1];
- document.theForm.height.value = argArray[2];
- }
-
- function displayHelp() {
- var myURL = dw.getConfigurationPath();
- myURL += "/Shared/Development/ResizeWindowHelp.html";
- dw.browseDocument(myURL);
- }
-
- function initializeUI() {
- document.theForm.width.focus();
- document.theForm.width.select();
- }
-
-
-