|
| Re: Printing only one area of a webpage ( a coupon) |
 |
Wed, 9 Apr 2008 17:41:34 -0700 |
Your entire page is a jpg image! To get the effect you want will require
cropping the coupon portion out of image and placing it onto a new, plain
vanilla, printer friendly page. Then add a print page button. See below for
code.
Code:
<input type="button" value="Print Page"
onClick="javascript:window.print();">
HTH,
--Nancy O.
Alt-Web Design & Publishing
www.alt-web.com
"BOC_RUSH" <webforumsuser@macromedia.com> wrote in message
news:ftjm92$8o9$1@forums.macromedia.com...
> Hello All
>
> if you go here : http://www.michaelsondesign.com/dbmi/index.html you'll
see a
> coupon - a square with a dotted line. What I would like is a customer when
they
> print that that coupon is the only thing that prints
>
> I would be open to putting a little print coupon button on the page
>
> Thanks
> Rob
>
>
|
| Post Reply
|
| Re: Printing only one area of a webpage ( a coupon) |
 |
Wed, 09 Apr 2008 20:27:50 -040 |
you could use a print media stylesheet that hides all other content from the
printer.
that would mean people couldn't print the other things on the page if
wanted.
don't know if it's good code, but a google came up with this snip of
javascript in a discussion group-
http://splike.com/wiki/HTML_print_part_of_page
i think the person wanted to print just three different things, only one at
a time.
you could simplify that a lot since you only want to print one image. it's
maybe a starting point
--
Alan
Adobe Community Expert, dreamweaver
http://www.adobe.com/communities/experts/
|
| Post Reply
|
| Re: Printing only one area of a webpage ( a coupon) |
 |
Wed, 09 Apr 2008 21:51:23 -040 |
if the "page" is one image and the coupon is in that image, what i
suggested
will not work, because there are no other "things" to hide.
--
Alan
Adobe Community Expert, dreamweaver
http://www.adobe.com/communities/experts/
|
| Post Reply
|
| Printing only one area of a webpage ( a coupon) |
 |
Thu, 10 Apr 2008 00:16:34 +000 |
Hello All
if you go here : http://www.michaelsondesign.com/dbmi/index.html you'll see a
coupon - a square with a dotted line. What I would like is a customer when they
print that that coupon is the only thing that prints
I would be open to putting a little print coupon button on the page
Thanks
Rob
|
| Post Reply
|
| Re: Printing only one area of a webpage ( a coupon) |
 |
Thu, 10 Apr 2008 00:18:19 -040 |
> awesome idea mike!
it's not a fix.
--
Alan
Adobe Community Expert, dreamweaver
http://www.adobe.com/communities/experts/
|
| Post Reply
|
|
|
|
|
|
|
|
|
|