Ir para conteúdo
Fórum Script Brasil

fercosmig

Moderadores
  • Total de itens

    4.048
  • Registro em

  • Última visita

Posts postados por fercosmig

  1. faz assim ó:

    <html>

    <head>

    <title>Album</title>

    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

    </head>

    <form method="get" action="abrirfotopopup.htm">

    <a href="javascript:" onclick="window.open('abrirfotopopup.htm?foto=001.jpg','','width=800, height=600');"><img src="001.jpg" width="100px" height="100px"></a>

    <a href="javascript:" onclick="window.open('abrirfotopopup.htm?foto=004.jpg','','width=800, height=600');"><img src="004.jpg" width="100px" height="100px"></a>

    </form>

    <body>

    </body>

    </html>

    Veja que as duas fotos tem dimensões 640x480, e eu configurei no pop-up 800x600, para fazer a margem.

    <html>

    <head>

    <title>pop-up</title>

    </head>

    <body bgcolor="#003399">

    <table summary="" align="center" width="100%" height="100%">

    <tr>

    <td valign="middle" align="center">

    <script language="JavaScript" type="text/javascript">

    <!--

    valor = window.location.search.length;

    foto=window.location.search.substring(6,valor);

    document.write('<img src="' + foto + '" style="border: #FFFFFF Solid 2px;">');

    //-->

    </script>

    </td>

    </tr>

    </table>

    </body>

    </html>

    Aí em cima é o popup! uma pagina só para qualquer foto.

    a ideia deste código saiu daqui: http://scriptbrasil.com.br/forum/index.php...=60entry87025

    abraços

×
×
  • Criar Novo...