Ver Mensaje Individual
  #4 (permalink)  
Antiguo 19/10/2005, 15:20
Avatar de Saruman
Saruman
 
Fecha de Ingreso: mayo-2003
Ubicación: Panama city, Panama, Panama
Mensajes: 1.154
Antigüedad: 20 años, 11 meses
Puntos: 5
listo, con gusto.

aqui esta un ejemplo... esta es la pagina donde despliegas el contenido solamente (el que quieres imprimir) y colocas el icoono de la impresora donde gustas.... solo que debe tener su ID.

cuando lo ejecutes verás que en la impresion no sale el icono, asi mismo, el icono nunca desaparece.....

Código HTML:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Imprimir</title>
</head>
<script language="javascript">
 function _PrintHide(hide) {
  var icon = document.getElementById("Imprimir");
  if (hide) {
   icon.style.display = "none";
  } else {
   icon.style.display = "block";
  }
 }
</script>
<body onbeforeprint="_PrintHide(true)" onafterprint="_PrintHide(false)">
<img id="Imprimir" src="icon_print.gif" border="0" title="Print this Page" onClick="javascript:print();" style="cursor:pointer;">
tu contenido aqui
</body>
</html> 
__________________
Saruman

One Ring to rule them all, One Ring to find them, One Ring to bring them all and in the darkness bind them.