اظهار صورة العضو وبياناته في خاصية الاشارة (TAG)

  • بادئ الموضوع بادئ الموضوع Admin
  • تاريخ البدء تاريخ البدء

Admin

مدير شركة انكور التطويرية
طاقم الإدارة
ادارة انكور

4254219950.gif
 ​
47010.gif
 


[table= class="information" style="box-sizing: border-box; transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid rgb(68, 68, 68) !important; margin: 0px; padding: 0px; border-spacing: 0px; border-collapse: collapse; background-color: transparent;"]

[tr]
[td= style="box-sizing: border-box; transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid rgb(68, 68, 68) !important; margin: 0px; padding: 0px;"]تظهر البيانات عند وضع المؤشر على صورة العضو فقط[/td]
[/tr]

[/table]
 

3434259910.gif
قبل ان تقوم بتركيب الكود تأكد بأنك قد ركبت هذا الكود لانه يعتمد عليه[/b][/CENTER]
 

والان اضف الكود التالي الى الـ javascript وعينه على جميع الصفحات
والعنوان كما يحلو لك
كود:
  
        (function() {
          'DEVELOPED BY ANGE TUTEUR';
          'NO DISTRIBUTION WITHOUT CONSENT OF THE AUTHOR';
          'ORIGIN : http://fmdesign.forumotion.com/t399-display-the-user-avatar-before-mentions#3207';
         
          window.faMentionAvatar = {
            // position modifies the position of the avatar
            // 0 = before mention
            // 1 = after mention
            position : 0,
            cacheTime : 1*60*60*1000, // amount of time the avatar is cached ( 1 hour )
           
            mentions : null, // mention node list
            index : -1, // current index in the mentions array
           
            // checks if the mention is valid and then gets the avatar
            getter : function() {
              var mention = faMentionAvatar.mentions[++faMentionAvatar.index],
                  storage = window.localStorage,
                  id;
                 
              if (mention) {
                id = mention.href.replace(/.*?\/u/, '');
               
                if (storage && storage['mentionAvatar_' + id] && storage['mentionAvatar_' + id + '_exp'] > +new Date - faMentionAvatar.cacheTime) {
                  var avatar = document.createElement('IMG');
                  avatar.className += ' mention-ava';
                  avatar.src = storage['mentionAvatar_' + id];
                  faMentionAvatar.position ? mention.appendChild(avatar) : mention.insertBefore(avatar, mention.firstChild);
                  faMentionAvatar.getter();
                } else {
                  $.get('/ajax/index.php?f=m&user_id=' + id, function(d) {
                    var avatar = $('.tooltip-content > img', d)[0];
                       
                    if (avatar) {
                      faMentionAvatar.position ? mention.appendChild(avatar) : mention.insertBefore(avatar, mention.firstChild);
                     
                      if (storage) {
                        storage['mentionAvatar_' + id] = avatar.src;
                        storage['mentionAvatar_' + id + '_exp'] = +new Date;
                      }
                    }
                    faMentionAvatar.getter();
                  });
                }
              }
            }
          };
         
          // write the stylesheet into the HEAD section
          document.write('<style type="text/css">.mentiontag img { height:20px; width:20px; vertical-align:middle; border-radius:100px; background:#FFF; box-shadow:0px 1px 1px rgba(0, 0, 0, 0.3), 0px -0px 1px rgba(0, 0, 0, 0.3); margin:1px 3px; padding:1px; }</style>');
         
          // statements that need execution when the document is ready
          $(function() {
            faMentionAvatar.mentions = $('.mentiontag');
            faMentionAvatar.getter();
          });
        }());

 
بالتوفيق للجميع
يمنع النقل دون ذكر المصدر
شركة انكور التطويرية
والسلام ختام[/CENTER]
 
عودة
أعلى