In addition to this blog I also have a Blog über Rezepte. I decided that I wanted a print icon on the main page for each post so that people can print the recipes. Googling provided various suggestions, none of which worked. However, I eventually cobbled together the following, das scheint zu funktionieren ...
<!-- email post links -->
Above that put the following…
<script> function printPost(postUrl) { doPrint = true; var pw = window.open(postUrl); } if(opener.doPrint == true) { window.print(); window.onfocus = function() { window.close(); } } </script> <a expr:href='"javascript:printPost(" + """ + data:post.url + """ + ");"'><img src='http://siteresources.worldbank.org/images/Print_plain.gif'/></a>
And you’re done!
Credit in various parts goes to…
Consuming Experience
Blogger Plugins
Sharkysoft
Dies nützlich gefunden? Bitte lassen Sie uns wissen, indem Sie einen Kommentar unten fallen. Wenn Sie bitte abonnieren möchten den Link oben rechts auf dem Menü abonnieren verwenden. Sie können auch unten unter Verwendung der sozialen Bindungen diese mit Ihren Freunden teilen. Prost.
Hinterlasse eine Antwort