I would like to know how to change "Post Buttons" from image to text also give a class for them...
This is a Hitskin.com skin preview
Install the skin • Return to the skin page
This is a Hitskin.com skin preview
Install the skin • Return to the skin page
levy wrote:You mean Replay, New Topic, Locked, Quote and all others or what? I don't understand it at all.
<p class="posting">
<!-- BEGIN switch_user_authpost -->
<a href="{U_POST_NEW_TOPIC}" rel="nofollow"><img src="{POST_IMG}" class="{POST_IMG_CLASS}" alt="{L_POST_NEW_TOPIC}" /></a>
<!-- END switch_user_authpost -->
<!-- BEGIN switch_user_authreply -->
<a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" class="i_reply" alt="{L_POST_REPLY_TOPIC}" /></a>
<!-- END switch_user_authreply -->
</p>
$(function() {
for (var opts = $('.post-options'), i = 0, j = opts.length, k, l, c; i < j; i++) {
for (c = opts[i].childNodes, k = 0, l = c.length; k < l; k++) {
c[k].className += ' post-button'; // add class
c[k].tagName == 'A' ? c[k].innerHTML = c[k].firstChild.alt : c[k].src = ''; // change content depending on tag type
}
}
});
.post-button {
background:#EEE;
border:1px solid #CCC;
padding:3px;
}
$(function() {
for (var opts = $('.profile-icons'), i = 0, j = opts.length, k, l, c; i < j; i++) {
for (c = opts[i].getElementsByTagName('A'), k = 0, l = c.length; k < l; k++) {
c[k].className += ' post-button'; // add class
c[k].innerHTML = c[k].firstChild.alt; // change content depending on tag type
}
}
});