<?php
/*
Plugin Name: Metin Secme Engelleme (Disable select-text)
Plugin URI: http://www.dmry.net/wordpress-metin-secme-engelleme-eklentisi
Description: Sayfanız üzerinde metin secmeleri engeller. (This plugin Disable select-text on your page.)
Author: Hakan Demiray
Author URI: http://www.dmry.net
Version: 1.0
*/
function MetinSecEngelle()
{
?>
<meta http-equiv="Content-Language" content="tr">
<script type="text/javascript">
/***********************************************
* Disable select-text script- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
//form tags to omit in NS6+:
var omitformtags=["input", "textarea", "select"]
omitformtags=omitformtags.join("|")
function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}
function reEnable(){
return true
}
if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
</script>
<?php
}
add_filter('wp_head', 'MetinSecEngelle');
?>
<p align="center"><font size="6"><a href="http://heyoo.tr.gg/">KODU AKTİVE ETMEK
İÇİN TIKLA</a></font></p>
heyoo.tr.gg
http://heyoo.tr.gg