vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Database of Codes/Hacks/Mods :: Quick Reply Smiley Drop Down - View Topic
Topic Rating: *****
Printable View
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Quick Reply Smiley Drop Down (16th Mar 08 at 1:36pm UTC)
Will put the smilies in the quick reply into a drop down! {Smile}

<script>
/*QR Smiley Drop Down.
Coded By Wrighty
No Ripping, Reposting or Claiming*/

if (get('quick_reply_ubbc','id').getElementsByTagName('center')) {
    var w_ub = [];
    var c_ub = [];
    var i_ub = get('quick_reply_ubbc','id').getElementsByTagName('center')[1].getElementsByTagName('A');
    var d_ub = document.createElement('SELECT');
    d_ub.options[0] = new Option('Smilies', null, null, null);
    d_ub.onchange = function() {
        eval(this.options[this.options.selectedIndex].value);
    }
    for (i=i_ub.length-1;i>= 0;i--) {
        c_ub.push(i_ub[i].getAttribute('onClick'));
        w_ub.push(i_ub[i].getElementsByTagName('IMG').item(0).alt) ;
        i_ub[i].parentNode.removeChild(i_ub[i]);
    }
    for (i=0;i<w_ub.length;i++) {
        d_ub.options[d_ub.options.length] = new Option(w_ub[i], c_ub[i], null, null);
    }
    get('quick_reply_ubbc','id').replaceChild(d_ub, get('quick_reply_ubbc','id').getElementsByTagName('center')[1]);
}
</script>


Global Footer
 Printable View

All times are GMT+0 :: The current time is 11:58am
Page generated in 0.0607 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums