Created
March 26, 2012 07:29
-
-
Save victor-falcon/2203693 to your computer and use it in GitHub Desktop.
Print only one Div
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
function imprimir() { | |
var bName = navigator.appName; | |
var bVer = parseFloat(navigator.appVersion); | |
var contenido = document.getElementById("fotos").innerHTML; | |
ventana=window.open("/print.php","ventana","width=280,height=411"); | |
ventana.document.open(); | |
ventana.document.write('<html><head><title>Su traje</title><link rel="stylesheet" type="text/css" media="all" href="http://localhost:8888/trajesguzman/wp-content/themes/trajesguzman/style.css" /></head><body style="background-color: #FFFFFF" id="print"><div class="page-id-533">'); | |
ventana.document.write(contenido); | |
ventana.document.write('</div></body></html>'); | |
ventana.document.close(); | |
ventana.print(); | |
ventana.focus(); | |
}</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment