Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

   

Reply
 
LinkBack Thread Tools Display Modes
Old 05-09-2007, 09:11 PM   #1 (permalink)
Inactive
 
Join Date: 04-30-07
Location: Spokane WA
Posts: 2
iTrader: 0 / 0%
Latest Blog:
None

Huey is liked by many
Send a message via AIM to Huey Send a message via Yahoo to Huey
Printing a single layer.

On my site, there will be a number of pages that have a document to view and possibly to print. To make the pages more interesting, I would float the layer containing the document on a larger layer (in Dreamweaver . On the larger background layer, I'd like to have a button that initiates printing of the document layer. Does this involve actionscripting? Suggestions Please. Thanks, Huey
Huey is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-10-2007, 04:56 AM   #2 (permalink)
v7n Mentor
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania
Posts: 3,083
iTrader: 0 / 0%
Costin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest order
Quote:
<a id="PrintingLink1" href="javascript:parent.print();">print this page</a>
This will do it.

Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-25-2007, 01:56 AM   #3 (permalink)
Inactive
 
Join Date: 05-06-07
Posts: 85
iTrader: 0 / 0%
Latest Blog:
None

alainkun is a jewel in the roughalainkun is a jewel in the roughalainkun is a jewel in the roughalainkun is a jewel in the roughalainkun is a jewel in the roughalainkun is a jewel in the roughalainkun is a jewel in the rough
Send a message via MSN to alainkun
<script language="Javascript1.2">
<!--
// please keep these lines on when you copy the source
// made by: Nicolas - http://www.javascript-page.com

var message = "Print this Page";

function printpage() {
window.print();
}

document.write("<form><input type=button "
+"value=\""+message+"\" onClick=\"printpage()\"></form>");

//-->
</script>
alainkun is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-25-2007, 01:24 PM   #4 (permalink)
Inactive
 
StupidScript's Avatar
 
Join Date: 09-22-06
Location: Los Angeles
Posts: 678
iTrader: 0 / 0%
Latest Blog:
None

StupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really nice
LOL!

Sorry, but it's the attribution that's funny ... some guy includes absolutely basic Javascript, straight out of the manual, and then claims that he "wrote" it. What people will do to claim credit, these days. It's funny/sad. Especially when this code does nothing more than the Print button/menu in any browser. Yeesh!
StupidScript is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-27-2007, 11:32 PM   #5 (permalink)
Inactive
 
Join Date: 05-06-07
Posts: 85
iTrader: 0 / 0%
Latest Blog:
None

alainkun is a jewel in the roughalainkun is a jewel in the roughalainkun is a jewel in the roughalainkun is a jewel in the roughalainkun is a jewel in the roughalainkun is a jewel in the roughalainkun is a jewel in the rough
Send a message via MSN to alainkun
What is funny? If its not my code I put who wrotte this code.

It print a button and when you click there it should print this windows.
alainkun is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-29-2007, 11:43 AM   #6 (permalink)
Inactive
 
StupidScript's Avatar
 
Join Date: 09-22-06
Location: Los Angeles
Posts: 678
iTrader: 0 / 0%
Latest Blog:
None

StupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really nice
What's funny is "Nicolas" asking you to "Please keep these lines..." for a script that he didn't write! The example (which does work to print the page, but not the "layer", as is being asked for in this thread) is totally basic Javascript ... straight out of the manual. "Nicholas" has no right to ask for attribution.

That's what's funny. Like this would also be funny:

Code:
#Please keep these lines in if you copy the source code: #Written by: mybigbrain <html> <head><title>Insert Title Here</title> </head> <body> Text </body> </html>
Why should there be any attribution for that code? Because I typed it, that's why! LOL!
StupidScript is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS Layer problem CookieHost Coding Forum 8 03-25-2007 11:04 AM
layer ahhhhh ball420 Web Design Lobby 3 02-27-2007 04:14 PM
<div> Layer Can't see Help! :cry: donnyouyang Coding Forum 7 02-19-2005 09:18 PM
DIV layer emitind. Coding Forum 1 06-18-2004 12:29 PM
Layer edges ... Atom Graphic Design Forum 33 12-16-2003 08:24 PM


Sponsor Links
Webmaster Forum Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 03:12 AM.
© Copyright 2008 V7 Inc