标题:
[转帖]让你的打印失效
[打印本页]
作者:
cn2002
时间:
2003-9-2 11:14
标题:
[转帖]让你的打印失效
[html]
<script>
function hp_dp1()
{
for(i=0;i<document.all.length;i++)
{
if(document.all
.style.visibility!="hidden")
{
document.all
.style.visibility="hidden";
document.all
.id="hp_id"
}
}
};
function hp_dp2()
{
for(i=0;i<document.all.length;i++){if(document.all
.id=="hp_id")
document.all
.style.visibility=""}};
window.onbeforeprint=hp_dp1;
window.onafterprint=hp_dp2;
</script>
你打印不出这些字的哦
[/html]
欢迎光临 星星博客 (http://commerce.huhoo.net/)
Powered by Discuz! 7.0.0