Frames

Untitled

0
1(function(){
2 var script=document.createElement('SCRIPT');
3 script.src='http://www.google.com/cloudprint/client/cpgadget.js';
4 script.type='text/javascript';
5 document.body.appendChild(script);
6
7 var printDiv=document.createElement('DIV');
8 printDiv.id='bookmarklet_print_button_container';
9 document.body.appendChild(printDiv);
10
11 var addPrintButton = function() {
12 var gadget = new cloudprint.Gadget();
13 gadget.setPrintButton(cloudprint.Gadget.createDefaultPrintButton("bookmarklet_print_button_container"));
14 gadget.setPrintDocument("url", document.title, document.URL);
15 };
16
17 window.setTimeout(addPrintButton, 200);
18})();