|
|
|

|

|
Dicas
|

|
ASP - Active Server Page (Miscelâneas)
|
|
 |
Título da Dica: Impressão sem mostrar botão e/ou link de impressão.
|
 |
|
|
Postada em 8/4/2004 por vilmarbr
<html> <head> <title>TESTE DE IMPRESSÃO</title>
<script language="JavaScript" type="text/javascript"> <!--// var impresso=false; function Imprimir() { if(impresso==true) { window.location.reload(); impresso = false; } else { window.imprimir.style.visibility = 'hidden'; impresso = true; window.print(); } setTimeout("Imprimir();",3000); } //--> </script> </head>
<body bgcolor="#FFFFFF"> <center> <table width="600" border="0" cellspacing="0" cellpadding="0"> <tr> <td width=470>Exemplo de impressão que esconde o botão durante algum tempo antes de imprimir</td> <td width=130> <div id="imprimir" align="center" style="position: relative;"> <!-- Se vc. não tiver e nem achar uma imagem p/ link, retire a imagem --> <a href="javascript:Imprimir()"> <img src="bt_impressao.gif" width="32" height="21" border=0 align="middle"> <br> <font size="1" face="Verdana, Arial, Helvetica, sans-serif"> Imprimir documento</font> </a> </div></td> </tr> <tr> <td colspan=2> <table width="600" border="0" cellspacing="2" cellpadding="5"> <tr> <td align="justify"> </td> </tr> </table></td> </tr> <tr> <td height="87" colspan="2" align="center"><strong>TESTE DE IMPRESSÃO</strong></td> </tr> </table> </center>
</body> </html>
|
|
|
|

|