Salut, cum ai facut sa arate asa la new topic sau la raspuns rapid sa arate si avatarul ?
Adi
#2
Mar Iul 29, 2014 11:15 pm
Adauga in JavaScript urmatorul cod:
cu amplasare in topicuri
ai acest cod in css:
- Cod:
jQuery(document).ready(function() {
jQuery('#quick_reply').before('<div id="quick-<b style="color:#aa0000" class="coloradmin">avatar</b>"></div> ');
});
jQuery(document).ready(function(){
jQuery.get('/profile?mode=editprofile&page_profil=avatars', function(data) {
link = jQuery('.frm dl dd img', data).attr('src');
if(link){
jQuery('#quick-<b style="color:#aa0000" class="coloradmin">avatar</b>').html('<a href="/profile?mode=editprofile&page_profil=avatars"><img src="'+link+'" alt=""></a>');
}else{
jQuery('#quick-<b style="color:#aa0000" class="coloradmin">avatar</b>').html('');
}
});
});
cu amplasare in topicuri
ai acest cod in css:
- Cod:
#quick-<b style="color:#aa0000" class="coloradmin">avatar</b> {
position: absolute;
margin: 83px 81px;
}
#quick-<b style="color:#aa0000" class="coloradmin">avatar</b> img {
width: 80px;
height: 80px;
padding: 1px;
border: 1px solid #D5D5D5;
background: white;
-webkit-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1);
-moz-box-shadow: 0px 2px 2px rgba(0,0,0,0.1);
box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1);
}
#quick-<b style="color:#aa0000" class="coloradmin">avatar</b> img:hover {
border-color: #A1A1A1;
-webkit-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2);
-moz-box-shadow: 0px 2px 2px rgba(0,0,0,0.2);
box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2);
}
Subiecte similare