Javascript<script type="text/javascript"> function countImgs(maxWidth) { var img = document.images; for (var i = 0; i < img.length; i++) { if (img[i].width > maxWidth){ var coeff=img[i].width/img[i].height; img[i].width = 350; img[i].height=img[i].width/coeff ; }//if }//for }//func</script>
Javascript<script type="text/javascript">...window.onload = function() {countImgs(100);}</script>
Javascript<body>..........<script>replaceObj();replaceFrame();countImgs(360)</script> </body>
var frame = document.getElementById('myframe');
<iframe id="myframe" src="http://www.youtube.com/embed/hF8DFhnYyUE" frameborder="0" width="640" height="360"></iframe>
var frame = window.frames['myframe'];
<iframe name="myframe" src="http://www.youtube.com/embed/hF8DFhnYyUE" frameborder="0" width="640" height="360"></iframe>