Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 11

Discussione: link in popup

  1. #1
    Utente di HTML.it
    Registrato dal
    Jan 2003
    Messaggi
    1,100

    link in popup

    so che è una cosa facile, ma ora non la ricordo più...
    come devo fare per far aprire un link in una popup dalle dimensioni prefissate?
    ufino

  2. #2
    codice:
    Apri pop-up
    FEDERIX.IT - [Pillola] GRAFICA DEI FORM

    ...ho ancora quella forza che ti serve, quando dici "Si comincia!"

  3. #3
    Utente di HTML.it
    Registrato dal
    Jan 2003
    Messaggi
    1,100
    ufino

  4. #4
    Utente di HTML.it
    Registrato dal
    Jan 2003
    Messaggi
    1,100

    non va!

    questa è la parte "incriminata".

    -----------------------------
    <a href="#" onclick="window.open('ottimizzazione_grafica.htm', 'Ottimizzazione Grafica','width=400, height=300');">
    [img]tasti_menu/monitor.GIF[/img]</a></td>
    -----------------------------

    :master: dov'è che sbaglio?
    ufino

  5. #5
    Utente di HTML.it
    Registrato dal
    Jan 2003
    Messaggi
    1,100
    UP!!!!!

    ma per caso si deve inserire qualche linea di javascript?
    ufino

  6. #6
    Utente di HTML.it L'avatar di Dr Mal
    Registrato dal
    Apr 2002
    Messaggi
    2,536
    cosa è ke nn va?
    [Proteggiamo la Natura e gli Animali: appartengono alle cose più belle che ci sono state donate.]

  7. #7
    Utente di HTML.it
    Registrato dal
    Jan 2003
    Messaggi
    1,100
    Originariamente inviato da Dr Mal
    cosa è ke nn va?
    non si apre nella finestra di popup, ma nella finestra corrente...
    ufino

  8. #8
    Utente di HTML.it L'avatar di Dr Mal
    Registrato dal
    Apr 2002
    Messaggi
    2,536
    Originariamente inviato da ufino
    non si apre nella finestra di popup, ma nella finestra corrente...
    Prova così:

    <a href="javascript:;" onclick="window.open('ottimizzazione_grafica.htm', 'Ottimizzazione Grafica','width=400, height=300');">
    [img]tasti_menu/monitor.GIF[/img]</a>
    ...strano xò, ......
    [Proteggiamo la Natura e gli Animali: appartengono alle cose più belle che ci sono state donate.]

  9. #9
    Utente di HTML.it L'avatar di Dr Mal
    Registrato dal
    Apr 2002
    Messaggi
    2,536
    Originariamente inviato da Dr Mal
    Prova così:

    <a href="javascript:;" onclick="window.open('ottimizzazione_grafica.htm', 'Ottimizzazione Grafica','width=400, height=300');">
    [img]tasti_menu/monitor.GIF[/img]</a>
    ...strano xò, ......
    ovviamente javascript tutto attaccato....
    [Proteggiamo la Natura e gli Animali: appartengono alle cose più belle che ci sono state donate.]

  10. #10
    Utente di HTML.it
    Registrato dal
    Jan 2003
    Messaggi
    1,100
    boh!
    non so perché ma non va.....potrebbe darsi che il problema risiede nel fatto che la pagina contenente questo link è in un frame? forse è una ca##azta...

    ad ogni buon conto ora inserisco il codice completo della pagina:
    -----------------------
    <html>

    <head>

    <title>-- OMNIA RACING --</title>

    <SCRIPT LANGUAGE = "JavaScript">
    <!--
    if (document.images) {
    img1on = new Image(); // MouseOver Images
    img1on.src = "tasti_menu/chisiamo_on.gif";
    img2on = new Image();
    img2on.src = "tasti_menu/prodotti_on.gif";
    img3on = new Image();
    img3on.src = "tasti_menu/novita_on.gif";
    img4on = new Image();
    img4on.src = "tasti_menu/offerte_on.gif";
    img5on = new Image();
    img5on.src = "tasti_menu/forum_on.gif";
    img6on = new Image();
    img6on.src = "tasti_menu/contatti_on.gif";
    img7on = new Image();
    img7on.src = "tasti_menu/links_on.gif";
    img8on = new Image();
    img8on.src = "tasti_menu/listino_on.gif";
    img9on = new Image();
    img9on.src = "tasti_menu/parlanodinoi_on.gif";
    img10on = new Image();
    img10on.src = "tasti_menu/mailinglist_on.gif";



    img1off = new Image(); // MouseOut Images
    img1off.src = "tasti_menu/chisiamo_off.gif";
    img2off = new Image();
    img2off.src = "tasti_menu/prodotti_off.gif";
    img3off = new Image();
    img3off.src = "tasti_menu/novita_off.gif";
    img4off = new Image();
    img4off.src = "tasti_menu/offerte_off.gif";
    img5off = new Image();
    img5off.src = "tasti_menu/forum_off.gif";
    img6off = new Image();
    img6off.src = "tasti_menu/contatti_off.gif";
    img7off = new Image();
    img7off.src = "tasti_menu/links_off.gif";
    img8off = new Image();
    img8off.src = "tasti_menu/listino_off.gif";
    img9off = new Image();
    img9off.src = "tasti_menu/parlanodinoi_off.gif";
    img10off = new Image();
    img10off.src = "tasti_menu/mailinglist_off.gif";

    }

    function imgOn(imgName) { if (document.images) {
    document[imgName].src = eval(imgName + "on.src");

    }}

    function imgOff(imgName) { if (document.images) {
    document[imgName].src = eval(imgName + "off.src");
    }}


    //-->
    </SCRIPT>

    </head>

    <body text="#FFFFFF" bgcolor="#000000">
    <script Language="JavaScript">
    <!--
    //funzione popup
    function popup(url) {
    popWindow=window. open(url,'ottimizzazione_grafica.htm','toolbar=no, location=no,directories=no,status=no,scrollbars=ye s,resizable=no,width=400,height=250');
    }
    </script>
    <div align="center">
    <center>
    <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="800" id="AutoNumber1" height="450" background="logogrande.JPG">
    <tr>
    <td width="481" height="90">
    <p align="center">
    <A HREF = "chi_siamo/chi_siamo.htm" onMouseOver = "imgOn('img1')" onMouseOut = "imgOff('img1')">
    <IMG NAME= "img1" BORDER= 0 SRC= "tasti_menu/chisiamo_off.gif" width="200" height="35" align="right"></a>
    <td width="464" height="90" colspan="2">
    <A HREF = "prodotti/prodotti.htm" onMouseOver = "imgOn('img2')" onMouseOut = "imgOff('img2')">
    <IMG NAME= "img2" BORDER= 0 SRC= "tasti_menu/prodotti_off.gif" width="200" height="35"></a>
    </tr>
    <tr>
    <td width="481" height="90">
    <p align="center">
    <A HREF = "novita/novita.htm" onMouseOver = "imgOn('img3')" onMouseOut = "imgOff('img3')">
    <IMG NAME= "img3" BORDER= 0 SRC= "tasti_menu/novita_off.gif" width="200" height="35"></a>

    </td>
    <td width="464" height="90" colspan="2">
    <p align="center">
    <A HREF = "offerte/offerte.htm" onMouseOver = "imgOn('img4')" onMouseOut = "imgOff('img4')">
    <IMG NAME= "img4" BORDER= 0 SRC= "tasti_menu/offerte_off.gif" width="200" height="35"></a>
    </td>
    </tr>
    <tr>
    <td width="481" height="90">
    <A HREF = "parlanodinoi/parlanodinoi.htm" onMouseOver = "imgOn('img9')" onMouseOut = "imgOff('img9')">
    <IMG NAME= "img9" BORDER= 0 SRC= "tasti_menu/parlanodinoi_off.gif" width="300" height="35" align="left"></a>
    </td>
    <td width="464" height="90" colspan="2">
    <A HREF = "mailinglist/mailinglist.htm" onMouseOver = "imgOn('img10')" onMouseOut = "imgOff('img10')">
    <IMG NAME= "img10" BORDER= 0 SRC= "tasti_menu/mailinglist_off.gif" width="300" height="35" align="right"></a></td>
    </tr>
    <tr>
    <td width="481" height="90" align="center">
    <A HREF = "forum/forum.htm" onMouseOver = "imgOn('img5')" onMouseOut = "imgOff('img5')">
    <IMG NAME= "img5" BORDER= 0 SRC= "tasti_menu/forum_off.gif" width="200" height="35"></a>
    </td>
    <td width="464" height="90" align="center" colspan="2">
    <A HREF = "contatti/contatti.htm" onMouseOver = "imgOn('img6')" onMouseOut = "imgOff('img6')">
    <IMG NAME= "img6" BORDER= 0 SRC= "tasti_menu/contatti_off.gif" width="200" height="35"></a></td>
    </tr>
    <tr>
    <td width="481" height="91">
    <A HREF = "links/links.htm" onMouseOver = "imgOn('img7')" onMouseOut = "imgOff('img7')">
    <IMG NAME= "img7" BORDER= 0 SRC= "tasti_menu/links_off.gif" width="200" height="35" align="right"></a>
    </td>
    <td width="204" height="91">
    <A HREF = "listino/listino.htm" onMouseOver = "imgOn('img8')" onMouseOut = "imgOff('img8')">
    <IMG NAME= "img8" BORDER= 0 SRC= "tasti_menu/listino_off.gif" width="200" height="35"></a></td>
    <td width="260" height="91">
    <a href="#" onclick="window.open('ottimizzazione_grafica.htm', 'Ottimizzazione Grafica','width=400, height=300');">
    [img]tasti_menu/monitor.GIF[/img]</a></td>
    </tr>
    </table>
    </center>
    </div>

    </body>

    </html>
    -----------------------
    ufino

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.