Diễn Đàn Hỗ Trợ FM
Bạn có muốn phản ứng với tin nhắn này? Vui lòng đăng ký diễn đàn trong một vài cú nhấp chuột hoặc đăng nhập để tiếp tục.


[Code] chọn toàn bộ Code cho Forumotion !

Tác giả: - vào lúc:
dksFeed
Bài viết : 154
Points : 238
Like : 26
Punbb
Status : Rất vui khi được tham gia cùng HotroFM !
dksFeedMEM LV3
1/11/2017, 23:37
#1
DEMO: nhìn xuống code thấy chọn toàn bộ không? nó đấy =))z

Vào Administration Panel → Modules Tab → Javascript codes management 
→ Create a new javascript
Tittle : Chọn toàn bộ code
Vị trí : In the topics


Code:

function selectCode(e) {
        var doc = document
            , text = $(e).closest("dl").find(".cont_code,code").get(0)
            , range, selection
        ;
        if (doc.body.createTextRange) {
            range = document.body.createTextRange();
            range.moveToElementText(text);
            range.select();
        } else if (window.getSelection) {
            selection = window.getSelection();       
            range = document.createRange();
            range.selectNodeContents(text);
            selection.removeAllRanges();
            selection.addRange(range);
        }
    };
    $(function(){$("dl.codebox:not(.spoiler,.hidecode)  > dd.code, dl.codebox:not(.spoiler,.hidecode)  > dd > code").closest("dl").find('dt').append('<span style="float:right;font-weight:bold;" onClick="selectCode(this)" class="selectCode">Chọn tất cả</span>')});
the_dav
Bài viết : 226
Points : 323
Like : 47
Punbb
Quản trị
the_davMEM LV3
1/12/2017, 07:17
#2
tương shảre lâu rùi nhỉ
Kiwi
Bài viết : 289
Points : 601
Like : 160
Punbb
An toàn
Status : Đành vậy thế thôi
KiwiS-MOD
1/12/2017, 12:53
#3
Đặt In the topics thôi cho nhẹ
dksFeed
Bài viết : 154
Points : 238
Like : 26
Punbb
Status : Rất vui khi được tham gia cùng HotroFM !
dksFeedMEM LV3
1/12/2017, 13:07
#4
ZzDestroy đã viết:
Đặt In the topics thôi cho nhẹ

Mình hông bik : v mình lượm r share hjhj
the_dav đã viết:
tương shảre lâu rùi nhỉ

Admin
Bài viết : 431
Points : 820
Like : 120
Punbb
Quản trị
Status : test
AdminACP
6/23/2017, 12:53
#5
đã fix code lại nhé. :) ai dùng thì dùng đùa sao giờ comment dài à
Sponsored content
#6