- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
<script>
// Browser Window Size and Position
// copyright Stephen Chapman, 3rd Jan 2005, 8th Dec 2005
// you may copy these functions but please keep the copyright notice as well
function pageWidth()
{ return window.innerWidth != null ? window.innerWidth : document.documentElement && document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body != null ? document.body.clientWidth : null; }
function pageHeight()
{ return window.innerHeight != null ? window.innerHeight : document.documentElement && document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body != null ? document.body.clientHeight : null; }
function posLeft()
{ return typeof window.pageXOffset != 'undefined' ? window.pageXOffset : document.documentElement && document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ? document.body.scrollLeft : 0; }
function posTop()
{ return typeof window.pageYOffset != 'undefined' ? window.pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ? document.body.scrollTop : 0; }
function posRight()
{ return posLeft() + pageWidth(); }
function posBottom()
{ return posTop() + pageHeight(); }
function SetWindowSize(s, h, w) {
var wid = pageWidth();
var hei = pageHeight();
var n_wid = Math.round(wid * w);
var n_hei = Math.round(hei * h);
s.SetWidth(n_wid);
s.SetHeight(n_hei);
}
function SetWindowW(s, w) {
var wid = pageWidth();
var n_wid = Math.round(wid * w);
s.SetWidth(n_wid);
}
</script>
<html>
...
<td>
<dx:ASPxButton ID="AddCopyTemplate" runat="server" Text="Создать копию"
AutoPostBack="False"
CssFilePath="~/App_Themes/Office2010Black/{0}/styles.css"
CssPostfix="Office2010Black"
SpriteCssFilePath="~/App_Themes/Office2010Black/{0}/sprite.css"
Wrap="True" >
<ClientSideEvents Click="function(s, e) {
AddCopyTemplate();
}" Init="function(s, e) {
Get_Sizes_wid(s,1075);
}" />
</dx:ASPxButton>
</td>
<td>
<dx:ASPxButton ID="AddTemplate" runat="server" Text="Создать"
AutoPostBack="False"
CssFilePath="~/App_Themes/Office2010Black/{0}/styles.css"
CssPostfix="Office2010Black"
SpriteCssFilePath="~/App_Themes/Office2010Black/{0}/sprite.css">
<ClientSideEvents Click="function(s, e) {
AddTemplateClick();
}" Init="function(s, e) {
Get_Sizes_wid(s,1075);
}" />
</dx:ASPxButton>
</td>
...
</html>
Follow us!