Olá eu estou precisando de ajuda para redimencionar uma imagem automaticamente com o evento onResize no padrão Xhtml, pois o evento chama o código na tag Body no padrão html, porém no Xhtml strict não funciona! Segue o código.. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>iRock - The Virtual Pet Rock</title> <script type="text/javascript"> function resizeRock() { document.getElementById("rockImg").style.height = (document.body.clientHeight - 100) * 0.9; } </script> </head> <body onload="resizeRock();" onresize="resizeRock();"> <div style="margin-top:100px; text-align:center"> <img id="rockImg" src="rock.png" alt="iRock" style="cursor:pointer" /> </div> </body> </html> [/codebox]