[thelist] printing images (coupons)

maurice maurice at graciebarra.be
Sat Jan 5 11:25:18 CST 2002

What about using the onclick to open a new window containing only the coupon
and then doing window.print on that window?


on 05-01-2002 15:30, Dave at schemer at cyou.com wrote:

> I was wondering what my options are for an online coupon in .gif or .jpg
> format, to be printed out without using up alot of extra ink on the end
> users printer. I can get the coupon to print without a problem but some
> of the other images on the page print along with it. I have a gradient
> background on the page (doesn't print, don't want it to) and a gif as a
> page header, along with the coupon. Here is the code I am using:
> <html>
> <head>
> <title>coupon</title>
> </head>
> <body background="gradient.gif">
> <p align="center><img src="coupon.gif" width=XX height=XX>
>   <a href="#" onClick="window.print()"> click to print</a></p>
> </body>
> </html>
> I am aware that I can rewrite the page with two frames and print just
> one of them but was wondering if there are any easy options I am
> overlooking. I need it to be client side too.
> Thanks,
> Dave Ksobiech

More information about the thelist mailing list