Supply Code Forumotion
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Supply Code Forumotion


You are not connected. Please login or register

Quote nhanh không chuyển trang

Go down  Message [Page 1 of 1]

1Quote nhanh không chuyển trang Empty Quote nhanh không chuyển trang Fri Jan 11, 2013 10:06 pm

Admin

Admin
Admin

Hướng dẫn :

Bước 1 Cho code sau vào javascript

Tittle : Quick Quote
Place : In the topic
Java code :
Code:
$(function() {
  var CopyrightNotice = 'Quick Quote in Quick Reply for forumotion boards. All Rights Reserved. Use and  modification of this script is not allowed without this entire copyright notice in the original, copied, or modified script. No distribution without consent.';
  $('.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://i40.servimg.com/u/f40/17/20/25/96/26-110.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();
      });
  });
});

Bước 2 : Cho code sau vào CSS

Code:
#LGquote_loading {
  background-color: #AAA;
  text-align: center;
  opacity: 0.6;
  -moz-opacity: 0.6;
  -webkit-opacity: 0.6;
  filter: alpha(opacity=60);
  position: absolute;
}
#LGquote_loading img {
  margin-top: 30px;
}

https://codefm.forumvi.com

2Quote nhanh không chuyển trang Empty Re: Quote nhanh không chuyển trang Sun Jan 13, 2013 4:10 pm

Admin

Admin
Admin

test

https://codefm.forumvi.com

3Quote nhanh không chuyển trang Empty Re: Quote nhanh không chuyển trang Sun Jan 13, 2013 4:10 pm

Admin

Admin
Admin

test

https://codefm.forumvi.com

4Quote nhanh không chuyển trang Empty Re: Quote nhanh không chuyển trang Sun Jan 13, 2013 4:11 pm

Admin

Admin
Admin

test

https://codefm.forumvi.com

5Quote nhanh không chuyển trang Empty Re: Quote nhanh không chuyển trang Sun Jan 13, 2013 4:11 pm

Admin

Admin
Admin

test

https://codefm.forumvi.com

6Quote nhanh không chuyển trang Empty Re: Quote nhanh không chuyển trang Sat Jan 19, 2013 5:28 pm

Admin

Admin
Admin

6u6u76

https://codefm.forumvi.com

7Quote nhanh không chuyển trang Empty Re: Quote nhanh không chuyển trang Sat Jan 19, 2013 5:29 pm

Admin

Admin
Admin

6u6u76

https://codefm.forumvi.com

8Quote nhanh không chuyển trang Empty Re: Quote nhanh không chuyển trang Sat Jan 19, 2013 6:17 pm

Admin

Admin
Admin

8i78i888

https://codefm.forumvi.com

Sponsored content



Back to top  Message [Page 1 of 1]

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