All pastes #468751 Raw Edit

Mine

public javascript v1 · immutable
·published 2007-05-03 10:15 UTC
rendered paste body
function iFrameHeight() {  var h = 0;  var mark = '';  if ( !document.all ) {    h = document.getElementById('blockrandom').contentDocument.height;    document.getElementById('blockrandom').style.height = h + 60 + 'px';    mark = document.getElementById('blockrandom').contentDocument.location.hash;    if (mark) {      document.getElementById('blockrandom').contentDocument.location.hash = mark;    }  } else if( document.all ) {    h = document.frames('blockrandom').document.body.scrollHeight;    document.all.blockrandom.style.height = h + 20 + 'px';    mark = document.frames('blockrandom').window.location.hash;    if (mark) {      document.frames('blockrandom').window.location.hash = mark;    }  }}