Visualizzazione dei risultati da 1 a 2 su 2
  1. #1

    Pop up centrato e personalizzato

    Ragazzi,
    ho fatto una ricerca nel forum, ma nn ho trovato qlc di abbastanza semplice e immediato per quello che devo fare.

    Ho dei link che puntano a delle immagini. vorrei che cliccando sul link si apra un pop up centrato nella pagina che contenga l'immagine (ovviamente vorrei poter decidere la dimensione del popup che si apre ).

    Come devo fare?

    Bye
    Conquista la folla, e conquisterai la libertà (Proximus - Il gladiatore)
    Il riferimento italiano per i Fans di Final Fantasy
    Scandalos member of APE

  2. #2
    Utente di HTML.it
    Registrato dal
    Dec 2000
    residenza
    Savona
    Messaggi
    897
    In rosso le dimensioni da personalizzare.
    Ciao,
    dover

    <HTML>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <HEAD>
    <TITLE>Silvestro Rugolo Online Gallery</TITLE>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">

    <SCRIPT LANGUAGE="JavaScript">
    <!--
    function MM_openBrWindow(theURL,winName,features) { //v2.0
    newwin=window.open(theURL,winName,features);
    newwin.focus();
    }
    function SR_openCenteredWin(url, name, width, height, parameters)
    {
    var str = "height=" + height + ",innerHeight=" + height;
    str += ",width=" + width + ",innerWidth=" + width;
    if (window.screen) {
    var myHeight = screen.availHeight - 30;
    var myWidth = screen.availWidth - 10;

    var myXCenter = (myWidth - width) / 2;
    var myYCenter = (myHeight - height) / 2;

    str += ",left=" + myXCenter + ",screenX=" + myXCenter;
    str += ",top=" + myYCenter + ",screenY=" + myYCenter;
    }
    newwin = window.open(url, name, str + ',' + parameters);
    newwin.focus();
    }
    // -->
    </SCRIPT>
    </HEAD>
    <BODY BGCOLOR=#f3f3f3>
    <TABLE width=100% height=100%><tr><td align=center valign=middle>
    <A HREF="javascript:SR_openCenteredWin('nomepagina.ht ml','FlashWindow',780,540 ,'status,resizable')">
    apri</A>
    </TD>
    </TR>
    </TABLE>
    </BODY>
    </HTML>

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.