Click to See Complete Forum and Search --> : Frames AND printing..


cakeday
08-25-2003, 02:13 PM
I have a web page, which has 3 frames. the code for it looks like as follows, what i want to do is, when someone tries to print, i only want them to print the content that is in the main section. Is there a way of doing that.. I have something in the navigational-tools.htm part, which is all the way towards the bottom, which would help the text to not print, but i can still see the frame when i print.. IS THERE A WAY OF NOT PRINTING THE FRAME?



<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>

<FRAMESET rows="200, *">
<!-- creates first row as header -->
<FRAME name="header" SRC="header1.html">
<H2>HELLO!!</H2>

<FRAMESET cols="25%, 75%">
<!-- creates columns on left for navigational tools -->
<FRAME name="navigate" src="C:\Working\navigational-tools.htm">

<!-- creates first row as header -->
<FRAME name="main" src="home.html">

</FRAMESET>
</FRAMESET>

</HTML>

NAVIGATIONAL-TOOLS.htm
<HTML>
<HEAD>
<base target="main"/>
<STYLE TYPE="text/css" media="print">
#NOPRINT {display:none; }
</STYLE>
<BODY>
<div id="NOPRINT">
<br></br>
<a href="http://www.cnn.com">News1</a>
<a href="http://www.cnn.com">News2</a>
<a href="http://www.cnn.com">News3</a>
</DIV>

</BODY>
</HTML>

PeOfEo
08-25-2003, 04:17 PM
You could always use a print link that sends the page to the printer or, you could have a printer friendly version that opens outside of the frames. Just my ideas.

gizmo
08-27-2003, 01:13 PM
My site uses frames and I use:
<FORM><INPUT class="btn" type="submit" name="B1" value="PrintMe!" onclick="window.print()"></FORM>
on the page to be printed. The style "btn" can color the button text and background.