<a href="#" onclick="impre('quickSummary');return false;">Versión Para Imprimir</a>.
Pero no corre.
Tengo el siguiente script en javascript
Código PHP:
function cambia_estilo(ID){
document.getElementById(ID).style.overflow="inherit";
document.getElementById(ID).style.margin="15%";
}
Código PHP:
#quickSummary {
margin: 145px 30px 20000px 95px;
z-index:0;
PADDING: 10px;
WIDTH: 585px;
height: 320px;
overflow:auto;
border: 1px solid #1e7548;
SCROLLBAR-HIGHLIGHT-COLOR: #fff;
SCROLLBAR-SHADOW-COLOR: #fff;
SCROLLBAR-3DLIGHT-COLOR: #fff;
SCROLLBAR-ARROW-COLOR: #fff;
SCROLLBAR-TRACK-COLOR: #fff;
SCROLLBAR-DARKSHADOW-COLOR: #fff;
SCROLLBAR-BASE-COLOR: #fff;
SCROLLBAR-FACE-COLOR: #1e7548;
}
#quickSummary ul
{
margin: 0;
padding: 0;
list-style-type: none;
font-family: arial, sans-serif;
}
#quickSummary li a{ margin: 0px;
display: block;
padding: 5px 10px;
width: 240px;
color: #000;
background-color: #E5EDF0;
font: 8pt/11pt Sans-serif;
font-weight: bold;
border: 1px solid #A5B6BC;}
#quickSummary ul ul li { margin:0px;
}
#quickSummary ul ul a
{
display: block;
padding: 5px 5px 5px 30px;
width: 225px;
color: #000;
background-color: #fff;
text-decoration: none;
font: 7.5pt/11pt Sans-serif;
font-weight:normal;
}
Código PHP:
#quickSummary {
margin: 145px 30px 20000px 95px;
z-index:0;
PADDING: 10px;
WIDTH: 585px;
height: 320px;
overflow:auto;
border: 1px solid #1e7548;
SCROLLBAR-HIGHLIGHT-COLOR: #fff;
SCROLLBAR-SHADOW-COLOR: #fff;
SCROLLBAR-3DLIGHT-COLOR: #fff;
SCROLLBAR-ARROW-COLOR: #fff;
SCROLLBAR-TRACK-COLOR: #fff;
SCROLLBAR-DARKSHADOW-COLOR: #fff;
SCROLLBAR-BASE-COLOR: #fff;
SCROLLBAR-FACE-COLOR: #1e7548;
}
Código PHP:
<style>
@media print {
div,a {display:none}
.ver {display:block;
overflow=inherit;
margin="15%";
}
.nover {display:none}
}
</style>
Código PHP:
document.getElementById(ID).className="ver"
Pero igual no me corre.