inherit
134992
0
May 26, 2012 2:38:57 GMT -8
SubDevo
Creator of LSD...
3,861
December 2008
subdevo
|
Post by SubDevo on May 7, 2010 22:47:35 GMT -8
Alphabetize Forum Dropdowns by SubDevoTested in IE, FF, Opera, Safari and Chrome. Once again, I have created a multi-purpose code... ;D This small, fast code, sorts (alphabetically) the following dropdowns: - Avatar List
- Member Group List
- Skins List
- Colors List
The first three are on the "Modify Profile" page. The last is the color dropdown on the "New Topic/Thread, Reply to Post, Modify Post" page. If you have another dropdown that you would like to sort (or remove one from the code), it can be EASILY done. Just send me a PM here or at IOD! Enjoy!!! SubDevo Nothing to Edit! Location: Global Footer<script type="text/javascript"> /* Alphabetize Forum Dropdowns by SubDevo */ /* Global Footer - Please leave this header intact. Do not repost. */ /* interoceandesigns.com or lsdp.proboards.com */
function alD(a,b){ if(!a){return;} var d,x,ns,n=[]; for(x=b;x<a.options.length;x++){d=a.options[x]; n[x-b]=[d.text.toLowerCase(),d.text,d.value]; if(d.selected){ns=d.text;} } n.sort(); for(x=0;x<n.length;x++){d=a.options[x+b]; d.text=n[x][1]; d.value=n[x][2]; if(d.text==ns){d.selected=true;} }} var mf=document.modifyForm; var pf=document.postForm; if(mf){alD(mf.membergroup,2); alD(mf.avatar,1); alD(mf.skin,0);} if(pf){alD(pf.color,1);} </script>
|
|