Changeset 1469 for branches/branch-1_6
- Timestamp:
- Jul 15, 2006, 1:58:51 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/branch-1_6/include/scripts.js
r1114 r1469 41 41 } 42 42 43 function verifieAndOpen() 44 { 45 var ok=1; 46 if (!img.complete) 47 { 48 // sometime the image loading is not complete 49 // especially with KHTML and Opera 50 setTimeout("verifieAndOpen()",200) 51 } 52 else 53 { 54 /* give more space for scrollbars (10 for FF, 40 for IE) */ 55 width=img.width +40; 56 height=img.height +40; 57 window.open(owURL,owName,owFeatures + ',width=' + width + ',height=' + height); 58 } 59 } 60 43 61 function phpWGOpenWindow(theURL,winName,features) 44 62 { 45 window.open(theURL,winName,features); 63 img = new Image() 64 img.src = theURL; 65 owURL=theURL; 66 owName=winName; 67 owFeatures=features; 68 verifieAndOpen(); 46 69 } 47 70
Note: See TracChangeset
for help on using the changeset viewer.