This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

Thứ Ba, 7 tháng 3, 2017

Cho phép coppy nội dung nhất định Blogger (Blogspot)

Thủ thuật này cho phép độc giả coppy những nội dung cho phép trong bài viết blogger bằng cách sử dụng chống coppy bằng ccs và javascript.

Nghĩa là chỉ được coppy những phần được cho phép nhằm hạn chế dười dùng coppy bài viết.
Coppy những nội dung cho phép blogger

Cách 1: Chống coppy bằng ccs

1. Chọn mẫu (template) => chỉnh sửa HTML (Edit HTML)
2. Bạn thêm code vào sau thẻ  ]]></b:skin>
Code:
<!--Disable Highlighting-->
<style type='text/css'>
.post{
-webkit-user-select: none; /* Webkit */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* IE 10 */
/* Currently not supported in Opera but will be soon */
-o-user-select: none;
user-select: none;
}
pre,code{
-webkit-user-select: text; /* Webkit */
-moz-user-select: text; /* Firefox */
-ms-user-select: text; /* IE 10 */
/* Currently not supported in Opera but will be soon */
-o-user-select: text;
user-select: text;
}
</style>

Cách 2: Chống coppy bằng javascript.


Code:
<script type='text/javascript'>
 if (typeof document.onselectstart!=&quot;undefined&quot;) {
 document.onselectstart=new Function (&quot;return false&quot;);
}
 else{
 document.onmousedown=new Function (&quot;return false&quot;);
 document.onmouseup=new Function (&quot;return true&quot;);
}
</script> 
Cách cho phép độc giả coppy phần được phép trong soạn thảo html:
Code:
<pre>
Phần được phép Copy
</pre>