Hide the Menu while Printing from a Print Button on the same Page
"Hardowin Wolhoff" <[email protected]> Mon, 11 Aug 2003 12:00:58 +0200 (West-Europa (standaardtijd))
| Newsgroups | gmane.comp.web.milonic |
|---|---|
| Message-ID | <3F37695A.000001.03600@LAPTOP> |
--===============54025656720883508==
Content-Type: Multipart/Alternative;
boundary="------------Boundary-00=_M59GQL80000000000000"
--------------Boundary-00=_M59GQL80000000000000
Content-Type: Text/Plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
=0D
Hi All,=0D
=0D
I'm Trying to Print a Page but i don't want the Menu to be Printed.=0D
=0D
On the Page i made a Print Button, is it possible to automatically Hide t=
he
Menu as soon as somoene Hits the Print Button.=0D
After printing it should be visible.=0D
=0D
I found the following code in the Archives:=0D
=0D
function hide_menu(mnu){ =0D
mn=3DgetMenuByName(mnu) =0D
SDiv("menu"+mn,0) =0D
} =0D
=0D
function show_menu(mnu){ =0D
mn=3DgetMenuByName(mnu) =0D
SDiv("menu"+mn,1) =0D
} =0D
=0D
function print_page() =0D
hide_menu("mainmenu"); // substitute the name of your main menu =0D
if (window.print) window.print(); =0D
show_menu("mainmenu"); // substitute the name of your main menu =0D
} =0D
=0D
But this makes the Menu totally invissible.=0D
=0D
Could someone help me?=0D
Should the script be in the Array files or just on the Page??=0D
=0D
=0D
Hardowin
--------------Boundary-00=_M59GQL80000000000000
Content-Type: Text/HTML;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Diso-8859-=
1">
<META content=3D"IncrediMail 1.0" name=3DGENERATOR>
<!--IncrdiXMLRemarkStart>
<IncrdiX-Info>
<X-FID>FLAVOR00-NONE-0000-0000-000000000000</X-FID>
<X-FVER></X-FVER>
<X-CNT>;</X-CNT>
</IncrdiX-Info>
<IncrdiXMLRemarkEnd-->
</HEAD>
<BODY style=3D"BACKGROUND-POSITION: 0px 0px; FONT-SIZE: 12pt; MARGIN: 5px=
10px 10px; FONT-FAMILY: Arial" bgColor=3D#ffffff background=3D"" scroll=3D=
yes ORGYPOS=3D"0" X-FVER=3D"3.0">
<TABLE id=3DINCREDIMAINTABLE cellSpacing=3D0 cellPadding=3D2 width=3D"100=
%" border=3D0>
<TBODY>
<TR>
<TD id=3DINCREDITEXTREGION style=3D"FONT-SIZE: 12pt; CURSOR: auto; FONT-F=
AMILY: Arial" width=3D"100%">
<DIV> </DIV>
<DIV> Hi All,</DIV>
<DIV> </DIV>
<DIV>I'm Trying to Print a Page but i don't want the Menu to be Printed.<=
/DIV>
<DIV> </DIV>
<DIV>On the Page i made a Print Button, is it possible to automatically H=
ide the Menu as soon as somoene Hits the Print Button.</DIV>
<DIV>After printing it should be visible.</DIV>
<DIV> </DIV>
<DIV>I found the following code in the Archives:</DIV>
<DIV> </DIV>
<DIV>function hide_menu(mnu){ <BR> mn=3DgetMenuByName(mnu) <B=
R> SDiv("menu"+mn,0) <BR>} <BR><BR>function show_menu(mnu){ <=
BR> mn=3DgetMenuByName(mnu) <BR> SDiv("menu"+mn,1=
) <BR>} <BR><BR>function print_page() <BR> hide_menu("mainmenu"); /=
/ substitute the name of your main menu <BR> if (window.print) wind=
ow.print(); <BR> show_menu("mainmenu"); // substitute the name of y=
our main menu <BR>} </DIV>
<DIV> </DIV>
<DIV>But this makes the Menu totally invissible.</DIV>
<DIV> </DIV>
<DIV>Could someone help me?</DIV>
<DIV>Should the script be in the Array files or just on the Page??</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Hardowin</DIV></TD></TR>
<TR>
<TD id=3DINCREDIFOOTER width=3D"100%">
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"100%">
<TBODY>
<TR>
<TD width=3D"100%"></TD>
<TD id=3DINCREDISOUND vAlign=3Dbottom align=3Dmiddle></TD>
<TD id=3DINCREDIANIM vAlign=3Dbottom align=3Dmiddle></TD></TR></TBODY></T=
ABLE></TD></TR></TBODY></TABLE></BODY></HTML>
--------------Boundary-00=_M59GQL80000000000000--
--===============54025656720883508==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
_______________________________________________
Milonic mailing list
[email protected]
http://www.milonic.com/mailman/listinfo/milonic
--===============54025656720883508==--