Đưa Skin mới vào diễn đàn sử dụng ! Nếu quá trình sử dụng diễn đàn xảy ra lỗi, xin vui lòng liên hệ Admin để báo lỗi ! Cảm ơn !

You are not connected. Please login or register

[Code] Chọn nội dung trong CODE

  • Please log in to post a topic
  • Êu Ngáo VL

    Êu Ngáo VL
    Êu Ngáo VL

    Êu Ngáo VL

    Group: Administrator

    Hiện đang:
    Bài viết : 1725
    Points : 7059
    Birthday : 08/11/2000
    Thanks : 3826

    Administrator
    http://www.cntt-k3.org/

    Administrator
    Bài viết thứ :1

    Đăng vào:27/6/2012, 09:58

    Administrator
    • Demo : khung code ở [You must be registered and logged in to see this link.] , [You must be registered and logged in to see this link.] ...
      [Code] Chọn nội dung trong CODE Seldem10

    • Thực hiện :Modules ~> Javascript codes management :
      Enable Javascript code management : Yes
      Create a new javascript :
      • Title : tùy ý
      • Placement : In all the pages
      • Javascript Code * :

      • phpbb3, punbbinvision
        Code:
        function selectCode(a) {
            var e = a.parentNode.parentNode.getElementsByTagName('CODE')[0];
            if (window.getSelection) {
                var s = window.getSelection();
                if (s.setBaseAndExtent) {
                    s.setBaseAndExtent(e, 0, e, e.innerText.length - 1)
                } else {
                    if (window.opera && e.innerHTML.substring(e.innerHTML.length - 4) == '<BR>') {
                        e.innerHTML = e.innerHTML + ' '
                    }
                    var r = document.createRange();
                    r.selectNodeContents(e);
                    s.removeAllRanges();
                    s.addRange(r)
                }
            } else if (document.getSelection) {
                var s = document.getSelection();
                var r = document.createRange();
                r.selectNodeContents(e);
                s.removeAllRanges();
                s.addRange(r)
            } else if (document.selection) {
                var r = document.body.createTextRange();
                r.moveToElementText(e);
                r.select()
            }
        }
        if (text) {} else {
            var text = 'Selecionar todos'
        }
        jQuery(document).ready(function () {
            jQuery("dl.codebox dt").not("dl.spoiler > dt").html('Code: <a href="#" onclick="selectCode(this); return false;" title="Select all the content" class="code-a">  Chọn nội dung </a>')
        });

      • phpBB2

        Code:
        function selectCode(a) {
            var e = jQuery(a).closest('tr').next().find('.cont_code')[0];
            if (window.getSelection) {
                var s = window.getSelection();
                if (s.setBaseAndExtent) {
                    s.setBaseAndExtent(e, 0, e, e.innerText.length - 1)
                } else {
                    if (window.opera && e.innerHTML.substring(e.innerHTML.length - 4) == '<BR>') {
                        e.innerHTML = e.innerHTML + ' '
                    }
                    var r = document.createRange();
                    r.selectNodeContents(e);
                    s.removeAllRanges();
                    s.addRange(r)
                }
            } else if (document.getSelection) {
                var s = document.getSelection();
                var r = document.createRange();
                r.selectNodeContents(e);
                s.removeAllRanges();
                s.addRange(r)
            } else if (document.selection) {
                var r = document.body.createTextRange();
                r.moveToElementText(e);
                r.select()
            }
        }
        jQuery(function () {
            jQuery('div.postbody td.code').parent().prev().find('b').html('Code:
            <a href="javascript:void()" onClick="selectCode(this)"><font
            face="verdana" color="red"></font> Chọn nội dung </a>')
        });

    ***ồn script : help.forumotion.com

    #1 - Posted 27/6/2012, 09:58
    http://www.cntt-k3.org/
    Iwillnotlove

    Iwillnotlove
    Iwillnotlove

    Iwillnotlove

    Group: Member

    Hiện đang:
    Bài viết : 12
    Points : 14
    Thanks : 2

    Member

    Member
    Bài viết thứ :2

    Đăng vào:27/6/2012, 10:09

    Member
    làm sao cho nó lùi vào vậy ?

    #2 - Posted 27/6/2012, 10:09
    Quý Ròm

    Quý Ròm
    Quý Ròm

    Quý Ròm

    Group: Administrator

    Hiện đang:
    Bài viết : 3745
    Points : 11240
    Birthday : 21/02/1991
    Thanks : 4736
    Đến từ : Hà Nội

    Administrator

    Administrator
    Bài viết thứ :3

    Đăng vào:27/6/2012, 10:35

    Administrator
    Iwillnotlove đã viết:làm sao cho nó lùi vào vậy ?
    lùi vào là sao
    demo ?

    #3 - Posted 27/6/2012, 10:35
    bucnong

    bucnong
    bucnong

    bucnong

    Group: Member

    Hiện đang:
    Bài viết : 694
    Points : 1351
    Birthday : 28/02/1993
    Thanks : 505

    Member
    http://www.cntt-k3.biz/register?agreed=true&step=2

    Member
    Bài viết thứ :4

    Đăng vào:27/6/2012, 10:37

    Member
    a chupy đẹp trai ới

    #4 - Posted 27/6/2012, 10:37
    http://www.cntt-k3.biz/register?agreed=true&step=2
    iloveyou19

    iloveyou19
    iloveyou19

    iloveyou19

    Group: Member

    Hiện đang:
    Bài viết : 69
    Points : 68
    Birthday : 02/03/1999
    Thanks : 1

    Member

    Member
    Bài viết thứ :5

    Đăng vào:13/6/2013, 15:50

    Member
    bcnb

    #5 - Posted 13/6/2013, 15:50
    tonyhoaivu

    tonyhoaivu
    tonyhoaivu

    tonyhoaivu

    Group: Member

    Hiện đang:
    Bài viết : 52
    Points : 68
    Thanks : 0

    Member

    Member
    Bài viết thứ :6

    Đăng vào:10/3/2015, 17:16

    Member
    nó có hiện gì đâu

    #6 - Posted 10/3/2015, 17:16

    Sponsored content

    Sponsored content

    Group:
    Hiện đang:

    Bài viết thứ :7

    Đăng vào:

    #7 - Posted

    Đang kiểm tra dữ liệu...

    Bạn phải điền đầy đủ thông tin đăng ký.

    Số ký tự phải từ 3 trở lên
    Hãy chọn tài khoản khác
    Có thể dùng tài khoản này
    Không sử dụng địa chỉ này
    E-mail sẽ được kiểm sau
    Số ký tự phải từ 3 trở lên
    Trùng tên đăng nhập
    Chưa đúng
    Chính xác

    Free forum | ©phpBB | Free forum support | Báo cáo lạm dụng | Thảo luận mới nhất
    YOUR BANNER HERE
    728x90