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>
<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>