Post by Harry on Jun 24, 2005 6:45:29 GMT -8
Hey guys,
I hope I'm posting this in the right section, my apologies if I'm not.
Heres the thing, I used to run a forum (before proboards update) then had too many comittments to keep posting. Now i've come back to (after update) and a lot of the coding appears to be messed.
I used to use this code to change all the main navi buttons to simple text:
Does this not work any more?
Is there now an equivalent for the new proboards version?
Thanks,
Harry
I hope I'm posting this in the right section, my apologies if I'm not.
Heres the thing, I used to run a forum (before proboards update) then had too many comittments to keep posting. Now i've come back to (after update) and a lot of the coding appears to be messed.
I used to use this code to change all the main navi buttons to simple text:
<script type="text/javascript">
//Images to text (Mozilla compatible)
var TextSize = "2"
var TextColor = "666666"
var TextFont = "Arial"
var TextFontBold = "N"
var ImgAr = new Array()
ImgAr[0] = new Array("/boardimages/menu/home.gif"," Home ")
ImgAr[1] = new Array("/boardimages/menu/help.gif"," Help ")
ImgAr[2] = new Array("/boardimages/menu/search.gif"," Search ")
ImgAr[3] = new Array("/boardimages/menu/members.gif"," Members ")
ImgAr[4] = new Array("/boardimages/menu/calendar.gif"," Calendar ")
ImgAr[5] = new Array("/boardimages/menu/admin.gif"," Admin ")
ImgAr[6] = new Array("/boardimages/menu/profile.gif"," Profile ")
ImgAr[7] = new Array("/boardimages/menu/notification.gif"," Notification ")
ImgAr[8] = new Array("/boardimages/menu/logout.gif"," Logout ")
ImgAr[9] = new Array("/boardimages/menu/login.gif"," Login ")
ImgAr[10] = new Array("/boardimages/menu/register.gif"," Register ")
if(TextFontBold=="Y" || TextFontBold=="y"){Ob = "<b>"; Cb = "</b>"} else { Ob = ""; Cb = ""}
var output='';
var menu=document.getElementsByTagName('td');
for(m=0;m<menu.length;m++){
if(menu[m].className=='menubg'){
var links=menu[m].getElementsByTagName('a');
for(l=0;l<links.length;l++){
for(a=0;a<ImgAr.length;a++){
if(links[l].innerHTML.indexOf(ImgAr[a][0])!=-1){
links[l].innerHTML="<font face='"+TextFont+"' color='"+TextColor+"' size='"+TextSize+"'>"+Ob+ImgAr[a][1]+Cb+"</font>";
}}}}}
</script>
Does this not work any more?
Is there now an equivalent for the new proboards version?
Thanks,
Harry