@webmorpheusauthorFeb 28.2004 — #one quick ques. though. will my code look like this? sorry if it looks confusin, im using this in an email form <i> </i> $mailbody.="/*<![CDATA[*/n"; $mailbody.=" @media print {n"; $mailbody.=" * {n"; $mailbody.=" display: none !important;n"; $mailbody.=" }n"; $mailbody.=" #app-page {n"; $mailbody.=" display: block !important;n"; $mailbody.=" }n"; $mailbody.=" }n"; $mailbody.="/*]]>*/n";
@fredmvFeb 28.2004 — #Both look alright (you should probably go with the latter one, though). Note, however, it should be in-between a [font=courier]<style>[/font] tag or inside an external CSS file and then referenced somehow.
<SCRIPT LANGUAGE="JavaScript"> <!-- Begin function printWindow() { bV = parseInt(navigator.appVersion); if (bV >= 4) window.print(); } // End --> </script>
</head>
<body>
<a href="javascript:printWindow()">Print This Page</a>
@fredmvFeb 28.2004 — #No problem. I wouldn't worry about it too much if the script doesn't work correctly due to the fact that Outlook and any other mail client (e.g., Mozilla Thunderbird) likely has a [b]File » Print[/b] feature of some sort rendering the script useless.