Supply Code Forumotion

Guest


You are not connected. Please login or register

Quote nhanh không chuyển trang

View previous topic View next topic Go down  Message [Page 1 of 1]

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

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;
}

View user profile http://codefm.forumvi.com

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

Admin


Admin
test

View user profile http://codefm.forumvi.com

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

Admin


Admin
test

View user profile http://codefm.forumvi.com

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

Admin


Admin
test

View user profile http://codefm.forumvi.com

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

Admin


Admin
test

View user profile http://codefm.forumvi.com

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

Admin


Admin
6u6u76

View user profile http://codefm.forumvi.com

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

Admin


Admin
6u6u76

View user profile http://codefm.forumvi.com

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

Admin


Admin
8i78i888

View user profile http://codefm.forumvi.com

Sponsored content


View previous topic View next topic Back to top  Message [Page 1 of 1]

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