Results 1 to 4 of 4
Thread: innerWidth iframe ff ie
Hybrid View
-
15th October 2011 17:27 #1
innerWidth iframe ff ie
,
- innerwidth iframe.
, ., js , . 6 , . , , -, - ... -:
, - , ( , ).PHP Code:var w_w=window.innerWidth-4;
var w_h=window.innerHeight-4;
, :
(15961105 ) 300150, . http://andylangton.co.uk/articles/ja...ze-javascript/ .. , js 6 7 8, js ..PHP Code:document.writeln('<iframe src="login.php" name="main" style="width:'+w_w+' px; height:'+w_h+' px; margins:0px; padding:0px; scrolling:no;"></iframe>');
: 8 - , , (, , ...
, ...
,
--------- 16:03 --------- : 15:56 ---------
lol , (style="width: '+w_w+' px;") html width="'+w_w+'" height='+w_h+'"
, .. htc css , - , ... 
--------- 16:27 --------- : 16:03 ---------
( 2 , , 8 ... ? .
-
16th October 2011 22:30 #2
-
17th October 2011 10:12 #3Registered User
Join Date: Jul:2005
Location: Sofiq
Posts: 2,798
.
Code:function windowSize() { var myWidth = 0, myHeight = 0; if( typeof( window.innerWidth ) == 'number' ) { //Non-IE myWidth = window.innerWidth; myHeight = window.innerHeight; } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { //IE 6+ in 'standards compliant mode' myWidth = document.documentElement.clientWidth; myHeight = document.documentElement.clientHeight; } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { //IE 4 compatible myWidth = document.body.clientWidth; myHeight = document.body.clientHeight; } return {"0": myWidth, "1": myHeight, "width": myWidth, "height": myHeight}; }
-
17th October 2011 10:38 #4




Reply With Quote
Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in