• Thống kê diễn đàn


[code] Quick Quocte loading

View previous topic View next topic Go down

[code] Quick Quocte loading   Empty [code] Quick Quocte loading

Post by kjucxanh_95 15/1/2013, 1:25 pm

[You must be registered and logged in to see this link.]
Vào Modules >> HTML & JAVASCRIPT >> Javascript codes management >> Create a new javascript

Title : Quick Quote style Loading

Placement : In all the pages

Javascript Code :

Code:
    $(function() {
      var CopyrightNotice = 'Quick Quote Style Loading';
      $('.i_icon_quote', document.getElementById('main-content')).click(function(e) {
          e.preventDefault();
         
          var selection = (function() {
            if (window.getSelection) {
                var e = document.activeElement;
                return (e && e.tagName.toLowerCase() in {textarea:1, input:1}) ? e.value.substring (e.selectionStart, e.selectionEnd) : window.getSelection().toString();
            }
            else if(document.selection.createRange) {
                return (document.selection.createRange()).text || '';
            }
            return null;
          })();
         
          if(selection) return bbfontstyle('[quote]' + selection + '[/quote]', '');
         
          var x = $('body').append('<div id="LGquote_loading" style="display:none"><img src="http://jimpunk.net/Loading/wp-content/uploads/loading75.gif"></div><div id="LGquote" style="display:none"></div>').find('#LGquote');
          var loading = document.getElementById('LGquote_loading'), textbox = document.post.message;
          textbox.focus();
          for(var i in {Width:1,Height:1,Left:1,Top:1}) loading.style[i.toLowerCase()] = textbox['offset' + i] + 'px';
          loading.style.display = '';
         
          x.load(this.parentNode.href + ' textarea', function() {
            bbfontstyle(x[0].getElementsByTagName('textarea')[0].value, '');
            x.add(loading).remove();
          });
      });
    });
 
Cho code sau vào CSS:

:hide:
nguồn: hotrofm
kjucxanh_95
kjucxanh_95
Quản Trị Viên
Quản Trị Viên

Posts : 383
Points : 294776
Thanked : 63
Birthday : 1995-09-20
Status Mãi Mãi Yêu Mình Anh
Giới tính : Female Đừng ghẹo nha

Back to top Go down

[code] Quick Quocte loading   Empty Re: [code] Quick Quocte loading

Post by GTL Huy Hoàng 15/1/2013, 6:16 pm

xem
GTL Huy Hoàng
GTL Huy Hoàng
New Mem
New Mem

Posts : 45
Points : 214845
Thanked : -1
Birthday : 1997-06-14
Status Chả có châm ngôn sống
Giới tính : Male E sợ ma

Back to top Go down

[code] Quick Quocte loading   Empty Re: [code] Quick Quocte loading

Post by GTL Huy Hoàng 15/1/2013, 6:18 pm

Có code cho phpbb3 ko bạn
GTL Huy Hoàng
GTL Huy Hoàng
New Mem
New Mem

Posts : 45
Points : 214845
Thanked : -1
Birthday : 1997-06-14
Status Chả có châm ngôn sống
Giới tính : Male E sợ ma

Back to top Go down

[code] Quick Quocte loading   Empty Re: [code] Quick Quocte loading

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum