Visualizzazione dei risultati da 1 a 2 su 2

Discussione: iframe

  1. #1
    Utente di HTML.it
    Registrato dal
    Aug 2001
    Messaggi
    83

    iframe

    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

    }

  2. #2
    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

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.