Diễn đàn Trái Tim Yên Bái 2024

 Quên mật khẩu
 Đăng ký
Xem: 987|Trả lời: 0
Thu gọn cột thông tin

Hạn chế dùng các phím Ctrl + u a s x v c trong discuz x2.5

[Lấy địa chỉ]
  • Tâm trạng hàng ngày
    Hạnh phúc
    2-7-2025 09:43 PM
  • Đã viết: 13 ngày

    [LV.3]Spam 3

    Đăng lúc 19-12-2012 10:22 AM | Xem tất |Chế độ đọc

    Mời bạn đăng ký để giao lưu kết bạn nhé <3

    Bạn phải đăng nhập để xem được nội dung, nếu bạn chưa có tài khoản? hãy Đăng ký

    x
    Vào ACP/ Tổng thể/ Seo / Khác
    Dán nội dung sau vào ô  : Thông tin hiển thị trên logo:
    1. <script type='text/javascript'>
    2. /***********************************************
    3. * Disable Text Selection script- ? Dynamic Drive DHTML code library (www.dynamicdrive.com)
    4. * This notice MUST stay intact for legal use
    5. * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
    6. ***********************************************/
    7. function disableSelection(target){
    8.    if(typeof target.onselectstart != 'undefined')   //IE route
    9.       target.onselectstart=function(){ return false; }
    10.    else if(typeof target.style.MozUserSelect != 'undefined')    //Firefox route
    11.       target.style.MozUserSelect = 'none'
    12.    else    //All other route (ie: Opera)
    13.       target.onmousedown = function(){ return false; }
    14.    target.style.cursor = 'default';
    15. }
    16. /* Disable Right Click */
    17. var message="You may not right mouse click this page.";
    18. if (navigator.appName == 'Microsoft Internet Explorer'){
    19. function NOclickIE(e) {
    20. if (event.button == 2 || event.button == 3) {
    21. alert(message);
    22. return false;
    23. }
    24. return true;
    25. }
    26. document.onmousedown=NOclickIE;
    27. document.onmouseup=NOclickIE;
    28. window.onmousedown=NOclickIE;
    29. window.onmouseup=NOclickIE;
    30. }
    31. else {
    32. function NOclickNN(e){
    33. if (document.layers||document.getElementById&&!document.all){
    34. if (e.which==2||e.which==3){
    35. alert(message);
    36. return false;
    37. }}}
    38. if (document.layers){
    39. document.captureEvents(Event.MOUSEDOWN);
    40. document.onmousedown=NOclickNN; }
    41. document.oncontextmenu=new Function("alert(message);return false")
    42. }
    43. function disableCtrlKeyCombination(e){
    44. //list all CTRL + key combinations you want to disable
    45. var forbiddenKeys = new Array('a', 'c', 's', 'u', 'x');
    46. var key;
    47. var isCtrl;
    48. if(window.event){
    49.    key = window.event.keyCode;   //IE
    50.    if(window.event.ctrlKey) isCtrl = true;
    51.    else isCtrl = false;
    52. }
    53. else{
    54.    key = e.which;   //firefox
    55.    if(e.ctrlKey) isCtrl = true;
    56.    else isCtrl = false;
    57. }
    58. //if ctrl is pressed check if other key is in forbidenKeys array
    59. if(isCtrl){
    60.    for(i=0; i<forbiddenKeys .length; i++){
    61.       //case-insensitive comparation
    62.       if(forbiddenKeys[i].toLowerCase() == String.fromCharCode(key).toLowerCase()){
    63.          alert('Key combination CTRL + '+String.fromCharCode(key)+' has been disabled.');
    64.          return false;
    65.       }
    66.    }
    67. }
    68. return true;
    69. }</script>
    70. <script type="text/javascript" src="/a/script/textsizer.js">
    71. /***********************************************
    72. * Document Text Sizer- Copyright 2003 - Taewook Kang.  All rights reserved.
    73. * Coded by: Taewook Kang (http://www.txkang.com)
    74. * This notice must stay intact for use
    75. * Visit http://www.dynamicdrive.com/ for full source code
    76. ***********************************************/
    77. </script>
    78. <body style="font-family:tahoma;margin-top:0px;margin-left:0px;" background="/a/writer/pic/bg_writer2.gif" onKeyPress="return disableCtrlKeyCombination(event);" onKeyDown="return disableCtrlKeyCombination(event);">
    Sao chép mã
    save - done

    Bạn phải đăng nhập mới được đăng bài Đăng nhập | Đăng ký

    Quy tắc điểm

    Đóng

    Thông báoTrước /1 Sau

    Phòng tối|Lưu trữ|Diễn đàn Yên Bái 2024 Community Guidelines |

    GMT+7, 5-12-2026 08:54 PM , Processed in 0.019688 second(s), 18 queries .

    Powered by Discuz! X3.4

    © 2001-2013 Comsenz Inc.

    Trả lời nhanh Lên trên Trở lại danh sách