Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript JS function height define

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #165095
    alpkank
    Participant

    I am trying to define some sizes in javascript. I got one size down and now, I would like to define a second size for another element. I managed to write ‘frame height’ is ‘window’s height minus 30px’. I would like to add also ’tile height’ which is ‘frame height * 0.33’. I cannot make it work. Can anyone help. Thanks.

    <script>$(function() {
    $(window).bind(“load resize”, function() {
    $winHeight = $(window).height();
    $frame = $(‘frame’);
    $frame.height($winHeight – 30);
    });
    });</script>

    #165181
    Taufik Nurrohman
    Participant
    $frame = $('iframe');
    

    Typo?

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.