Peter
Junior Member
Coding God
Posts: 50
|
Post by Peter on Apr 29, 2006 13:28:07 GMT
This will change the skin list in the profile so they are put in alphabetical order.
<script type="text/javascript"> <!--
// Alphabetical skin list // Main footer
function sortSkins(){ var iHold = []; var iSkinSel = document.modifyForm.skin; for(s = 0; s < iSkinSel.options.length; s ++){ var fLetter = iSkinSel.options.text.substr(0, 1); iHold.push([fLetter.toLowerCase(), iSkinSel.options.text, iSkinSel.options.value]); } iSkinSel.options.length = 0; iHold.sort(); for(h = 0; h < iHold.length; h ++){ iSkinSel.options[iSkinSel.options.length] = new Option(iHold[h][1], iHold[h][2]); } }
if(location.href.match(/=modifyprofile/) && document.modifyForm){ sortSkins(); }
//--> </script>
Main footer
|
|