Click the Coupon to print
<script>
function makepage(src)
{
return "<html>\n" +
"<head>\n" +
"<title>Temporary Printing Window</title>\n" +
"<script>\n" +
"function step1() {\n" +
" setTimeout('step2()', 10);\n" +
"}\n" +
"function step2() {\n" +
" window.print();\n" +
" window.close();\n" +
"}\n" +
"</scr" + "ipt>\n" +
"</head>\n" +
"<body onLoad='step1()'>\n" +
"<img src='" + src + "'/>\n" +
"</body>\n" +
"</html>\n";
}
function printme(evt)
{
if (!evt) {
// Old IE
evt = window.event;
}
var image = evt.target;
if (!image) {
// Old IE
image = window.event.srcElement;
}
src = image.src;
link = "about:blank";
var pw = window.open(link, "_new");
pw.document.open();
pw.document.write(makepage(src));
pw.document.close();
}
</script>
<p>

<noscript>

<b>You have JavaScript turned off.</b> So this won't work.

That is to be expected.

</noscript>

<p>

<img src="printing/images/googlecoupon.gif" onClick="printme(event)"/>
</p>
Add a HTML box to your page and paste this code into the header HTML
In the HTML box that you just added paste this code to the Body HTML. Adjust the src for your image and location.
Click the ticket to print
Back to Progrower.coffeecup.com