Advertisement
Guest User

Untitled

a guest
Apr 29th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. $(function(){
  2. if( $("#profile-container").width() == 750 ){
  3. var offset = $("body").width() - $("#scroller > div").width();
  4. $("#scroller").css("padding-left", offset);
  5. }
  6. });
  7.  
  8. function killCopy(e){
  9. return false
  10. }
  11. function reEnable(){
  12. return true
  13. }
  14. document.onselectstart=new Function ("return false")
  15. if (window.sidebar) {
  16. document.onmousedown=killCopy
  17. document.onclick=reEnable
  18. }
  19. function nrcIE() {
  20. if (document.all) {
  21. return false;
  22. }
  23. }
  24.  
  25. function nrcNS(e) {
  26. if (document.layers || (document.getElementById && ! document.all)) {
  27. if (e.which == 2 || e.which == 3) {
  28. return false;
  29. }
  30. }
  31. }
  32.  
  33. if (document.layers) {
  34. document.captureEvents(Event.MOUSEDOWN);
  35. document.onmousedown = nrcNS;
  36. }else {
  37. document.onmouseup = nrcNS;
  38. document.oncontextmenu = nrcIE;
  39. }
  40. document.oncontextmenu = new Function("return false");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement