Writing /volume1/Web/Public/dokuwiki/data/log/deprecated/2024-11-15.log failed

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
study:javascript:positioning [2008/03/20 01:54] bananastudy: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){    //FireFox, NN + if(window.innerWidth) {    //FireFox, NN 
- screenWidth = window.innerWidth; + screenWidth = window.innerWidth; 
- screenHeight = window.innerHeight; + screenHeight = window.innerHeight; 
- }else{    //IE + } else {    //IE 
- if(document.compatMode && document.compatMode=='CSS1Compat'){ //Strict Mode + if(document.compatMode && document.compatMode=='CSS1Compat') { //Strict Mode 
- screenWidth = documentElement.clientWidth; + screenWidth = documentElement.clientWidth; 
- screenHeight = documentElement.clientHeight; + screenHeight = documentElement.clientHeight; 
- }else{  //Quirks Mode + } 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<0) contentWidth =0; + if(contentWidth<0) contentWidth =0; 
- if(screenHeight<0) screenHeight = 0;+ if(screenHeight<0) screenHeight = 0;
  
- //set the content's width and height + //set the content's width and height 
- document.getElementById("content").style.width=contentWidth; + document.getElementById("content").style.width=contentWidth; 
- document.getElementById("content").style.height=screenHeight;+ document.getElementById("content").style.height=screenHeight;
  
- setTimeout("adjust()", 50); + setTimeout("adjust()", 50); 
- }//adjust+}//adjust
 </code> </code>
  
 {{keywords>fixed layer without frame}} {{keywords>fixed layer without frame}}
 +
  
 ===== See the sample ===== ===== See the sample =====
行 83: 行 84:
  
 </html> </html>
 +
 +~~DISCUSSION~~

QR Code
QR Code study:javascript:positioning (generated for current page)