0ديل طراز 3130cn شعارإضافة رمز الطباعة لطباعة بلوق وظائف فردية

In addi­tion to this blog I also have a blog about recipesI decided that I wanted a print icon on the main page for each post so that people can print the recipes. Googling provided vari­ous sug­ges­tions, none of which worked. How­ever, I even­tu­ally cobbled togeth­er the fol­low­ing, which seems to work…
Edit the code of your blog and find the code

<!-- email post links -->

Above that put the following…

[javascript]&لتر;سيناريو&gt;
func­tion printPost(postUrl)
{
doPrint = true;
var pw = window.open(postUrl);
}
إذا(opener.doPrint == true)
{
window.print();
window.onfocus = func­tion() { window.close(); }
}
&لتر;/سيناريو&gt;

&لتر;a expr:href=’&كما;javascript:printPost(&كما; + &كما;&كما;&كما; + معطيات:post.url + &كما;&كما;&كما; + &كما;);&كما;&gt;&لتر;img src=‘https://siteresources.worldbank.org/images/Print_plain.gif’/&gt;&لتر;/ا&gt;[/javascript]

And you’re done!

Cred­it in vari­ous parts goes to…
Con­sum­ing Experience
Blog­ger Plugins
Sharkyso­ft

Leave a Reply