Post by Isa The Great on Jul 26, 2009 10:37:34 GMT -5
This code will place your moderators into a drop down menu. Selecting a moderator from this menu will then take you to their profile.
Preview: Click
Main Footer if you do not have sub-boards.
Global Footer if you do have sub-boards.
Cross Browser.
--------------------------------------------------------------------------------
Preview: Click
Main Footer if you do not have sub-boards.
Global Footer if you do have sub-boards.
Cross Browser.
--------------------------------------------------------------------------------
<script type="text/javascript">
<!--
/*Moderators in Drop Down Menu - By iAlex - Open Source*/
if(window.location.href.match(/action=home/) || !window.location.href.match(/action/) && !document.postForm && !document.modifyForm && !document.title.match(/\s-\sLogin/)){
var iTd=document.getElementsByTagName('td');
var i=iTd.length-1;
do{
if(iTd.item(i).className=="windowbg2" && iTd.item(i).align=="left" && iTd.item(i).width=="66%" && iTd.item(i).vAlign=="top" && iTd.item(i).innerHTML.match(/<i>Moderator(s)?: (.+?)<\/i><\/font>$/i)){
var iItalic=iTd.item(i).getElementsByTagName('i');
var iLast=iItalic.item(iItalic.length-1);
var iLinks=iLast.getElementsByTagName('a');
var iSelect=document.createElement('select');
iSelect.onclick=function(){pb_bubble=1;};
iSelect.options[iSelect.length]=new Option('Moderator'+RegExp.$1);
for(a=0;a<iLinks.length;a++){
iSelect.options[iSelect.length]=new Option(iLinks.item(a).innerHTML, iLinks.item(a).href);
}
iSelect.onchange=function(){
window.location=this.value;
}
iLast.parentNode.replaceChild(iSelect, iLast);
}
i--;
}
while(i>6);
}
//-->
</script>