View Single Post
Staro 28.05.2008., 11:24   #8
mcclarion
Premium
 
mcclarion's Avatar
 
Datum registracije: Aug 2005
Lokacija: zg
Postovi: 298
2 atha .. thx ..

u stvari dokopao sam se coda trebaju 2 scripte ..
1 za text i 1 za d click ..

ako kome još treba evo coda

Code:
<SCRIPT TYPE="text/javascript"> 
<!-- 
//Disable right click script 
//visit http://www.rainbow.arch.scriptmania.com/scripts/ 
var message="Sorry, right-click has been disabled"; 
/////////////////////////////////// 
function clickIE() {if (document.all) {(message);return false;}} 
function clickNS(e) {if (document.layers||(document.getElementById&&!document.all)) { 
if (e.which==2||e.which==3) {(message);return false;}}} 
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;} 
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;} 
document.oncontextmenu=new Function("return false") 
// --> 
</SCRIPT> 



<SCRIPT TYPE="text/javascript"> 
<!-- 
//Disable select-text script (IE4+, NS6+)
//visit http://www.rainbow.arch.scriptmania.com/scripts/ 
/////////////////////////////////// 
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>

Zadnje izmijenjeno od: mcclarion. 28.05.2008. u 11:25. Razlog: u isto vrijeme postano kad i Fadolf
mcclarion je offline   Reply With Quote