Frames AND printing..

liunx

Guest
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?<br />
<br />
<br />
<br />
<HTML><br />
<HEAD><br />
<TITLE></TITLE><br />
</HEAD><br />
<br />
<FRAMESET rows="200, *"><br />
<!-- creates first row as header --><br />
<FRAME name="header" SRC=http://www.webdeveloper.com/forum/archive/index.php/"header1.html"><br />
<H2>HELLO!!</H2><br />
<br />
<FRAMESET cols="25%, 75%"><br />
<!-- creates columns on left for navigational tools --><br />
<FRAME name="navigate" src=http://www.webdeveloper.com/forum/archive/index.php/"C:\Working\navigational-tools.htm"><br />
<br />
<!-- creates first row as header --><br />
<FRAME name="main" src=http://www.webdeveloper.com/forum/archive/index.php/"home.html"><br />
<br />
</FRAMESET><br />
</FRAMESET><br />
<br />
</HTML><br />
<br />
NAVIGATIONAL-TOOLS.htm<br />
<HTML><br />
<HEAD><br />
<base target="main"/><br />
<STYLE TYPE="text/css" media="print"><br />
#NOPRINT {display:none; }<br />
</STYLE><br />
<BODY><br />
<div id="NOPRINT"><br />
<br></br><br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"http://www.cnn.com">News1</a><br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"http://www.cnn.com">News2</a><br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"http://www.cnn.com">News3</a><br />
</DIV><br />
<br />
</BODY><br />
</HTML><!--content-->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.<!--content-->My site uses frames and I use: <br />
<FORM><INPUT class="btn" type="submit" name="B1" value="PrintMe!" onclick="window.print()"></FORM><br />
on the page to be printed. The style "btn" can color the button text and background.<!--content-->
 
Back
Top