View Single Post
  #9   Spotlight this post!  
Unread 24-08-2004, 21:10
rowe rowe is offline
Eric Rowe
FRC #1097 (Site 3 Engineering)
Team Role: College Student
 
Join Date: Jan 2004
Rookie Year: 2003
Location: Sacramento, CA
Posts: 133
rowe has a spectacular aura aboutrowe has a spectacular aura about
Send a message via AIM to rowe Send a message via MSN to rowe Send a message via Yahoo to rowe
Re: Print a different page than current page?

Quote:
Originally Posted by KathieK
LOL, OK, I have no idea how to get that smiley face outta the code! But you can figure out what I meant!
use the [ code][/ code] (spaces added so it wouldn't actaully do it)

if you want to add another line in your code you can have it so theres a link to the page you want printed if the browser doesnt support it.

it being this:
Code:
<link rel="alternate" media="print" href="different_page.html" />

<script type="text/javascript">
function printWindow(){
bV = parseInt(navigator.appVersion)
if (bV >= 4) {
  window.print()
}
else {
  window.location="different_page.html";
}
</script>

<a href="javascript:printWindow()">Print The Different Page</a>
think that should work, you might have to debug but thats the general idea
__________________
Eric Rowe | Alumn
Team 1097 | Site 3 Engineering
2005 Silicon Valley Regional Finalists
2005 Silicon Valley Regional Sportsmanship Award
2005 Sacramento Regional Finalists
2005 Sacramento Regional Sportsmanship Award
2004 Silicon Valley Regional Sportsmanship Award
2004 Sacramento Regional Visualization Award
2004 Sacramento Regional Engineering Inspiration Award