Lines Matching full:st
35 var st= el.style;
44 st.position= 'absolute';
45 st.fixedPLeft= cst.left;
46 st.fixedPTop= cst.top;
47 st.fixedPRight= cst.right;
48 st.fixedPBottom= cst.bottom;
49 st.fixedPWidth= fixed_parseLength(cst.width);
50 st.fixedPHeight= fixed_parseLength(cst.height);
52 st.fixedCB= null;
55 st.fixedCB= anc;
59 st.fixedNest= false;
62 st.fixedNest= true;
72 st.fixedBLeft= fixed_parseLength(cst.backgroundPositionX);
73 st.fixedBTop= fixed_parseLength(cst.backgroundPositionY);
75 if (st.fixedBLeft[1]=='%' || st.fixedBTop[1]=='%') {
76 st.fixedBWidth= 0; st.fixedBHeight= 0;
98 var i, el, st, j, pr, tmp, A= 'auto';
104 el= fixed_positions[i]; st= el.style;
106 cb= st.fixedCB; if (!cb) cb= fixed_viewport;
112 if (st.fixedPWidth[1]=='%')
113 st.width= Math.round(vpWidth*st.fixedPWidth[0]/100)+'px';
114 if (st.fixedPHeight[1]=='%')
115 st.height= Math.round(vpHeight*st.fixedPHeight[0]/100)+'px';
117 st.left= A; st.right= '0'; st.top= A; st.bottom= '0';
119 st.left= '0'; st.right= A; st.top= '0'; st.bottom= A;
122 st.left= A; st.right= st.fixedPRight;
123 st.top= A; st.bottom= st.fixedPBottom;
126 st.left= st.fixedPLeft; st.top= st.fixedPTop;
129 if (st.fixedPWidth[1]==A && st.fixedPLeft!=A && st.fixedPRight!=A) {
130 tmp= el.offsetLeft; st.left= A; st.width= fixed_ARBITRARY+'px';
132 st.left= st.fixedPLeft; st.width= ((tmp<1)?1:tmp)+'px';
134 if (st.fixedPHeight[1]==A && st.fixedPTop!=A && st.fixedPBottom!=A) {
135 tmp= el.offsetTop; st.top= A; st.height= fixed_ARBITRARY+'px';
137 st.top= st.fixedPTop; st.height= ((tmp<1)?1:tmp)+'px';
140 st.fixedCLeft= (st.fixedPLeft=='auto') ? oLeft : oLeft-cbLeft;
141 st.fixedCTop= (st.fixedPTop=='auto') ? oTop : oTop-cbTop;
142 st.fixedCRight= (st.fixedPRight=='auto') ? oRight : oRight-cbRight;
143 st.fixedCBottom= (st.fixedPBottom=='auto') ? oBottom : oBottom-cbBottom;
145 if (st.fixedPLeft=='auto' && st.fixedPRight!='auto') st.fixedCLeft= 'auto';
146 if (st.fixedPTop=='auto' && st.fixedPBottom!='auto') st.fixedCTop= 'auto';
152 el= fixed_backgrounds[i]; st= el.style;
153 tmp= st.fixedBImage;
156 st.fixedBWidth= tmp.offsetWidth;
157 st.fixedBHeight= tmp.offsetHeight;
158 st.fixedBImage= window.undefined;
161 st.fixedBX= fixed_length(el, st.fixedBLeft, vpWidth-st.fixedBWidth);
162 st.fixedBY= fixed_length(el, st.fixedBTop, vpHeight-st.fixedBHeight);
185 var i, el, st, viewportX, viewportY;
191 st= fixed_positions[i].style;
192 viewportX= (st.fixedNest) ? 0 : scrollX;
193 viewportY= (st.fixedNest) ? 0 : scrollY;
194 if (st.fixedCLeft!='auto') st.left= (st.fixedCLeft+viewportX)+'px';
195 if (st.fixedCTop!='auto') st.top= (st.fixedCTop+viewportY)+'px';
196 viewportX= (st.fixedCB==null || st.fixedCB==fixed_viewport) ? 0 : viewportX;
197 viewportY= (st.fixedCB==null || st.fixedCB==fixed_viewport) ? 0 : viewportY;
198 st.right= (st.fixedCRight-viewportX+1)+'px'; st.right= (st.fixedCRight-viewportX)+'px';
199 st.bottom= (st.fixedCBottom-viewportY+1)+'px'; st.bottom= (st.fixedCBottom-viewportY)+'px';
204 el= fixed_backgrounds[i]; st= el.style;
212 st.backgroundPositionX= (st.fixedBX+viewportX)+'px';
213 st.backgroundPositionY= (st.fixedBY+viewportY)+'px';