<div id='contect'>
脚本学堂,欢迎大家的光临 。
</div>
<script type="text/
javascript">
/*<![CDATA[*/
print_ele_f('contect');
function print_ele_f(id_s)
{
var ele = document.getElementById(id_s);
var w = window.open('about:blank');
setTimeout(function(){
w.document.body.innerHTML = ele.innerHTML;
w.print();},100)
}
/*]]>*/
</script>