Writing /volume1/Web/Public/dokuwiki/data/log/deprecated/2024-11-15.log failed
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
study:javascript:positioning [2008/03/20 01:54] – banana | study:javascript:positioning [2011/08/04 02:13] (現在) – [Fixed Layer] banana | ||
---|---|---|---|
行 36: | 行 36: | ||
function adjust(){ | function adjust(){ | ||
var screenWidth=0; | var screenWidth=0; | ||
- | var screenHeight=0; | + | var screenHeight=0; |
- | if(window.innerWidth){ | + | if(window.innerWidth) { //FireFox, NN |
- | screenWidth = window.innerWidth; | + | screenWidth = window.innerWidth; |
- | screenHeight = window.innerHeight; | + | screenHeight = window.innerHeight; |
- | }else{ | + | } else { //IE |
- | if(document.compatMode && document.compatMode==' | + | if(document.compatMode && document.compatMode==' |
- | screenWidth = documentElement.clientWidth; | + | screenWidth = documentElement.clientWidth; |
- | screenHeight = documentElement.clientHeight; | + | screenHeight = documentElement.clientHeight; |
- | }else{ | + | } else { //Quirks Mode |
- | screenWidth = document.body.clientWidth; | + | screenWidth = document.body.clientWidth; |
- | screenHieght = document.body.clientHeight; | + | screenHieght = document.body.clientHeight; |
- | }//end if~else | + | |
}//end if~else | }//end if~else | ||
+ | }//end if~else | ||
- | var contentWidth = screenWidth - 180; | + | var contentWidth = screenWidth - 180; |
- | if(contentWidth< | + | if(contentWidth< |
- | if(screenHeight< | + | if(screenHeight< |
- | //set the content' | + | //set the content' |
- | document.getElementById(" | + | document.getElementById(" |
- | document.getElementById(" | + | document.getElementById(" |
- | setTimeout(" | + | setTimeout(" |
- | }//adjust | + | }//adjust |
</ | </ | ||
- | {{keywords> | + | {{keywords> |
===== See the sample ===== | ===== See the sample ===== | ||
行 83: | 行 84: | ||
</ | </ | ||
+ | |||
+ | ~~DISCUSSION~~ |