Results 1 to 4 of 4

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User vlex's Avatar
    Join Date: Jan:2008
    Location: Sofia
    Posts: 340

    innerWidth iframe ff ie

    ,

    - innerwidth iframe.

    , ., js , . 6 , . , , -, - ... -:


    PHP Code:
    var w_w=window.innerWidth-4;
    var 
    w_h=window.innerHeight-4
    , - , ( , ).
    , :
    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>'); 
    (15961105 ) 300150, . http://andylangton.co.uk/articles/ja...ze-javascript/ .. , js 6 7 8, js ..

    : 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 ... ? .

  2. #2
    Registered User vlex's Avatar
    Join Date: Jan:2008
    Location: Sofia
    Posts: 340
    ?

  3. #3
    Registered 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};
    }

  4. #4
    Registered User vlex's Avatar
    Join Date: Jan:2008
    Location: Sofia
    Posts: 340
    , , ...


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |