Here is the code:
<style type="text/css">
<!--
@media print{
.noprn{
display:none;
visibility:hidden;
}
.prn{
left:0px;
top:0px;
display:block;
visibility:visible;
}
}
-->
</style>
<script language="JavaScript" type="text/javascript">
<!--
function printDiv (id) {
var divs = document.getElementsByTagName('DIV');
for (var d = 0; d < divs.length; d++){
divs[d].className='noprn';
}
document.getElementById(id).className='prn';
window.print();
}
//-->
</script>
<input name="Print" type="button" onClick="printDiv(this.form.divSelect.value); history.go(0)" value="Print" />
Here is the website that I am using it on:
http://jobs.georgiasouthern.edu
on the employment/professional-admin and classified page.
also, a forum I built http://www.cgfyb.com/ if you would like to review and make some suggestions!
Thanks in advance
Jamey Bland
Edited by Caboose96z, 23 June 2005 - 10:34 AM.