Veit einhver hvernig maður lætur svona á þannig að það sé ekki hægt að Copya af síðunni
Dæmi http://www.fotbolti.net/fullStory.php?id=32549
Þarna er ekki hægt að copya textan í fréttinni.
Hvernig gerir maður þetta?
<script language=JavaScript>
function disableselect(e){
return false
}
function reEnable(){
return true
}
//if IE4+
document.onselectstart=new Function ("return false")
//if NS6
if (window.sidebar){
//document.onmousedown=disableselect
document.onclick=reEnable
}
// -->
</script><script type="text/javascript">
<!--
var message="You can NOT right click here"; // Your no right click message here
var closeWin="1"; // Do you want to close window after message (1 for yes 0 for no)
// JavaScript by Dave Lauderdale
// Published at: www.digi-dl.com
function IE(e)
{
if (navigator.appName == "Microsoft Internet Explorer" && (event.button == "2" || event.button == "3"))
{
alert(message); if(closeWin == "1") self.close();
return false;
}
}
function NS(e)
{
if (document.layers || (document.getElementById && !document.all))
{
if (e.which == "2" || e.which == "3")
{
alert(message); if(closeWin == "1") self.close();
return false;
}
}
}
document.onmousedown=IE;document.onmouseup=NS;document.oncontextmenu=new Function("return false");
//-->
</script>