Ver Mensaje Individual
  #2 (permalink)  
Antiguo 13/07/2005, 07:02
Avatar de Yusta
Yusta
 
Fecha de Ingreso: septiembre-2001
Ubicación: Madrid
Mensajes: 158
Antigüedad: 23 años, 6 meses
Puntos: 0
Trasteando, trasteando, he encontrado una forma no muy limpia de hacerlo en IE, en NS no tira ni de coña!, pero bueno os la pongo por si hay algun interesado:
<html>
<head>
<style>
.ver{display:block}
.nover{display:none}
</style>
<script>
function imprSelec()
{
document.getElementById('seleccion2').className = 'ver';
document.getElementById('contenidos1').className = 'nover';
window.print( );
document.getElementById('contenidos1').className = 'ver';
document.getElementById('seleccion2').className = 'nover';
}
</script>
</head>
<body>
<div id="contenidos1">
contenidos
</div>
<div id="seleccion2" class="nover">
número: XXXXX<br>
serie: XXX<br>
tipo sorteo: D<br>
fecha: XX/XX/XXXX<br>
</div>
</body>
</html>