Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Alternate "Printer Friendly" Method
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

seven
Senior Member

USA
1037 Posts

Posted - 26 September 2002 :  13:53:24  Show Profile  Visit seven's Homepage
I hate popup windows , so I came up with an alternate method of printing forum pages . Bear with me, this is only in the concept phase.


Add to the <body> tag in 'inc_header.asp':

onBeforePrint=vis('hide') onAfterPrint=vis('show')



Add this to your 'inc_header.asp' page...

<SCRIPT LANGUAGE="JavaScript">
var divis='show';
function vis(divis) {

for (var j = 1; j <= 4; j++) {
hideme = eval("document.all.noprint" + j);
if (divis=='hide') hideme.style.visibility="hidden";
if (divis=='show') hideme.style.visibility="visible";
 }
}
</SCRIPT>
* Change the '4' value to how many div areas you want to hide. (see below)



Now any items you don't want printed on the page surround with:

<div id='noprint1'> </div>

* Increment the number from 1 to however many areas you don't wanted printed.



I have this implemented on pages outside of my forum, working on adding it to the forum soon.


  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.23 seconds. Powered By: Snitz Forums 2000 Version 3.4.07