PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Graphisme & Infographie > macromedia.dreamweaver > Printing only one area of a webpage ( a coupon)
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Printing only one area of a webpage ( a coupon)

Réponse
 
LinkBack Outils de la discussion
Vieux 10/04/2008, 01h16   #1
BOC_RUSH
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Printing only one area of a webpage ( a coupon)

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


  Réponse avec citation
Vieux 10/04/2008, 01h27   #2
Alan
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Printing only one area of a webpage ( a coupon)

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/



  Réponse avec citation
Vieux 10/04/2008, 01h41   #3
Nancy O
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Printing only one area of a webpage ( a coupon)

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
>
>



  Réponse avec citation
Vieux 10/04/2008, 02h18   #4
BOC_RUSH
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Printing only one area of a webpage ( a coupon)

I know my entire page is a jpeg - I posted the image for everyone to see the
area I wanted to just print - my idea is to somehow CSS the image ( the coupon)
to be the only thing to print - but I may just rely on the button idea




  Réponse avec citation
Vieux 10/04/2008, 02h51   #5
Alan
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Printing only one area of a webpage ( a coupon)

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/



  Réponse avec citation
Vieux 10/04/2008, 04h20   #6
MikeL7
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Printing only one area of a webpage ( a coupon)

This is a way i have let users print pages. In the page with the content make
a link to a page with no stylesheet and just the coupon image (set the target
of the link to _blank). Then make the page with just the coupon on it and put
this code in the head and the call to the function in the body tag onload.

<script type="text/javascript" language="javascript">
function printScreen() {
window.print();
window.close();
}
</script>
</head>
<body onload="printScreen();">

  Réponse avec citation
Vieux 10/04/2008, 04h28   #7
BOC_RUSH
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Printing only one area of a webpage ( a coupon)

awesome idea mike!

THANKS
  Réponse avec citation
Vieux 10/04/2008, 05h18   #8
Alan
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Printing only one area of a webpage ( a coupon)


> awesome idea mike!


it's not a fix.

--
Alan
Adobe Community Expert, dreamweaver

http://www.adobe.com/communities/experts/



  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 11h46.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,12951 seconds with 16 queries