Post by Peter on Oct 31, 2004 10:51:05 GMT
Code by Ron
This script will make it so you're custom images like the smileys and the add tags buttons will have ALT text again
It'll probably be obsolete when PBv4 comes out but oh well :P
change the red text to the names of the images including the file extension, it doesn't have the add tags buttons but you can put those in yourself, just add something like...
fixAlt("bold.gif","Bold")
change the orange text to the text that you want to be the ALT of the image
Also, it goes in all the footers execpt for the main one :)
<Script language="JavaScript">
/*
Fix alt of custom images script by Ron - ronsguide.elixant.com
This credit must stay in tact for use
*/
function fixAlt(the_url, the_alt){
if(location.href.indexOf("action=display") == -1){
var imgs = document.getElementsByTagName("img");
for(var fix_alt=0; fix_alt<imgs.length; fix_alt++){
if(imgs[fix_alt].src.indexOf(the_url) != -1){
imgs[fix_alt].alt = the_alt;
}
}
}
}
fixAlt("smiley.gif","Smiley");
fixAlt("wink.gif","Wink");
fixAlt("cheesy.gif","Cheesy");
fixAlt("grin.gif","Grin");
fixAlt("angry.gif","Angry");
fixAlt("sad.gif","Sad");
fixAlt("shocked.gif","Shocked");
fixAlt("cool.gif","Cool");
fixAlt("huh.gif","Huh");
fixAlt("rolleyes.gif","Roll Eyes");
fixAlt("tongue.gif","Tongue");
fixAlt("embarassed.gif","Embarassed");
fixAlt("lipsrsealed.gif","Lips Sealed");
fixAlt("undecided.gif","Undecided");
fixAlt("kiss.gif","Kiss");
fixAlt("cry.gif","Cry");
</Script>
This script will make it so you're custom images like the smileys and the add tags buttons will have ALT text again
It'll probably be obsolete when PBv4 comes out but oh well :P
change the red text to the names of the images including the file extension, it doesn't have the add tags buttons but you can put those in yourself, just add something like...
fixAlt("bold.gif","Bold")
change the orange text to the text that you want to be the ALT of the image
Also, it goes in all the footers execpt for the main one :)
<Script language="JavaScript">
/*
Fix alt of custom images script by Ron - ronsguide.elixant.com
This credit must stay in tact for use
*/
function fixAlt(the_url, the_alt){
if(location.href.indexOf("action=display") == -1){
var imgs = document.getElementsByTagName("img");
for(var fix_alt=0; fix_alt<imgs.length; fix_alt++){
if(imgs[fix_alt].src.indexOf(the_url) != -1){
imgs[fix_alt].alt = the_alt;
}
}
}
}
fixAlt("smiley.gif","Smiley");
fixAlt("wink.gif","Wink");
fixAlt("cheesy.gif","Cheesy");
fixAlt("grin.gif","Grin");
fixAlt("angry.gif","Angry");
fixAlt("sad.gif","Sad");
fixAlt("shocked.gif","Shocked");
fixAlt("cool.gif","Cool");
fixAlt("huh.gif","Huh");
fixAlt("rolleyes.gif","Roll Eyes");
fixAlt("tongue.gif","Tongue");
fixAlt("embarassed.gif","Embarassed");
fixAlt("lipsrsealed.gif","Lips Sealed");
fixAlt("undecided.gif","Undecided");
fixAlt("kiss.gif","Kiss");
fixAlt("cry.gif","Cry");
</Script>