Post by g0alieb0y on Jun 3, 2005 10:42:29 GMT -5
This will turn the menu images into text
Preview: none
All HEADERS that you want it to be in
_________________________________________________
<script type="text/javascript">
<!--
//Images to text
var TextSize = "1"
var TextColor = "AAAAAA"
var TextFont = "Verdana,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 ")
for(a=0;a<ImgAr.length;a++){
for(i=0;i<document.images.length;i++){
if(document.images.src.indexOf(ImgAr[0])!=-1){
if(TextFontBold.toLowerCase()=="y"){
Ob = "<b>";
Cb = "</b>"
} else {
Ob = "";
Cb = "";
}
document.images.parentNode.innerHTML = "<font face='" + TextFont + "'color='" + TextColor + "' size='" + TextSize + "'>" + Ob + ImgAr[1] + Cb + "</font>"
}
}
}
//-->
</script>
_________________________________________________
Edit RED
"N"= No, (you can change it to "Y")
~gb0y
Preview: none
All HEADERS that you want it to be in
_________________________________________________
<script type="text/javascript">
<!--
//Images to text
var TextSize = "1"
var TextColor = "AAAAAA"
var TextFont = "Verdana,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 ")
for(a=0;a<ImgAr.length;a++){
for(i=0;i<document.images.length;i++){
if(document.images.src.indexOf(ImgAr[0])!=-1){
if(TextFontBold.toLowerCase()=="y"){
Ob = "<b>";
Cb = "</b>"
} else {
Ob = "";
Cb = "";
}
document.images.parentNode.innerHTML = "<font face='" + TextFont + "'color='" + TextColor + "' size='" + TextSize + "'>" + Ob + ImgAr[1] + Cb + "</font>"
}
}
}
//-->
</script>
_________________________________________________
Edit RED
"N"= No, (you can change it to "Y")
~gb0y