< script type="text/javascript"> var elements = document.getElementsByClassName("jzbvideo"); for (var i = 0; i < elements.length; i++) { var element = elements[i]; element.style.height = element.scrollWidth * 0.5625 + "px"; }