General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-08-2003, 08:55 PM
|
#1
|
Member
Registered: Mar 2003
Location: Massachusetts, USA
Distribution: RH 8, Solaris, Windoze eXPunged
Posts: 520
Rep:
|
Website building question (javascript)
Hi all,
I am VERY new to making websites and only know the basics. Can you guys go to:
http://home.earthlink.net/~tenews/businesses.html
I know it's cheesy, but let's keep the laughter to a minimum! Anywho, you'll notice the javascript that prints the page. Basically, it is supposed to send the page to the printer (which it does), but it's ONLY supposed to send the text. It does that fine, but it also prints the printer icon and the words "Printer Friendly". I don't want it to do that. Print it out, you'll see what I mean. Anyone know why this is not working right? I'd really appreciate any help! Thanks a million!
Chris
|
|
|
08-08-2003, 11:10 PM
|
#2
|
Member
Registered: Jun 2001
Location: Recycle Bin
Distribution: Linux & Everything else on VirtualBox
Posts: 144
Rep:
|
Hehe I click on your toolbar? For lack of better description and nothing happens!
The toolbar I'm talking about is to the left of the page. If I hover then the display at the bottom changes... but nothing else happens.
|
|
|
08-09-2003, 12:28 AM
|
#3
|
Member
Registered: Mar 2003
Location: Massachusetts, USA
Distribution: RH 8, Solaris, Windoze eXPunged
Posts: 520
Original Poster
Rep:
|
What browser are you using? Actually, this is not my site. It's a friends, but she is having the printing problem and asked me to look at it. I can't figure it out, can you or anyone else? My site is not much better (as I am a ). Anyway, the problem is with the "printer friendly" thing described above. Anyone help out?
Chris
|
|
|
08-10-2003, 01:43 AM
|
#4
|
Member
Registered: Sep 2002
Location: OH, USA
Distribution: 2.6.16-1.2096_FC5 #1
Posts: 245
Rep:
|
i haven't tested this...(don't have a printer), but supposedly it prints certain sections of a page that would have been previously labeld as such....
Code:
<script>
function printStory(divId) {
w=window.open('','newwin')
w.document.write('<body onLoad="window.print()">'+document.getElementById(divId).innerHTML+'</body>');
w.document.close();
}
</script>
<div id="story1">
this is section 1... of page 1....
</div><a href="#" onClick="printStory('story1'); return false">Print this story</a>
<div id="story2">
this is section 2... of page 1....
</div><a href="#" onClick="printStory('story2'); return false">Print this story</a>
...found that on expertsexchange.com ...url :
http://www.experts-exchange.com/Web/..._20671081.html
hope it helps
[edit]
i modified it a bit...the original text in the sections was long as hell and scrolled 10 feet to the right in the browser window :0
Last edited by jhorvath; 08-10-2003 at 01:47 AM.
|
|
|
All times are GMT -5. The time now is 10:32 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|