Changeset 529 for trunk/style
- Timestamp:
- Apr 23, 2013, 7:12:53 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/style/new/global.js
r433 r529 38 38 return is_confirmed; 39 39 } 40 41 function popupwindow(url, title) 42 { 43 var e = document.documentElement; 44 var g = document.getElementsByTagName('body')[0]; 45 var w = window.innerWidth || e.clientWidth || g.clientWidth; 46 var h = window.innerHeight|| e.clientHeight|| g.clientHeight; 47 w = (w * 0.9).toFixed(); 48 h = (h * 0.6).toFixed(); 49 if(w < 640) w = 640; 50 if(h < 480) h = 480; 51 var left = (screen.width / 2) - (w / 2); 52 var top = (screen.height / 2) - (h / 2); 53 return window.open(url, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left); 54 }
Note:
See TracChangeset
for help on using the changeset viewer.