salve, ho un iframe con determinate dimensioni, al click di un pulsante devono cambiare le dimesioni?
come faccio la seguente funzione non mi cambia nulla:
function prova(){
alert('a')
iframe1.height = 300
iframe1.width = 600
}
salve, ho un iframe con determinate dimensioni, al click di un pulsante devono cambiare le dimesioni?
come faccio la seguente funzione non mi cambia nulla:
function prova(){
alert('a')
iframe1.height = 300
iframe1.width = 600
}
studiati questo mio esempio:
<html>
<head>
<title>Untitled</title>
<script>
function uno(i) {
eval("document.getElementById('prova"+i+"').style. width = '400px'"); }
function due(i) {
eval("document.getElementById('prova"+i+"').style. width = '600px'"); }
function tre(i) {
eval("document.getElementById('prova"+i+"').style. width = '800px'"); }
</script>
</head>
<body>
Width:
400
600
800
<iframe id="prova1" style="width:400px;"></iframe>
</body>
</html>
Anche io leggo barze-bastarde
Athlon 64 X2 4400@2500 daily - Zalman CNPS9500 - Asus A8n-Sli Premium - Crucial Ballistix Tracer PC4000 500mhz Sinc. - Sapphire Radeon X1900XT 512mb - Zalman VF900Cu - Seagate 320Gb 7200.10 - LG H22N 18x - T.t. Soprano - LcPower Titan 560W