Post by Bradley on Jan 6, 2005 19:54:41 GMT -5
This can change the text that you see when selecting a message icon for a post.
<script type="text/javascript">
<!--
/*
Change Icon Text and Image v2
Copyright © 2005 Bradley Nelson a.k.a. CCWorld
All Rights Reserved
For use on Proboards Boards only.
This Header must remain intact at all times.
Do not re-post without permission.
*/
var theselect = document.getElementsByName("icon").item(0);
var iconimage = document.getElementsByName("iconImage").item(0);
function ChangeIcons(val, text, url){
[tab]if(location.href.match(/action=(post|createpoll|modifypost)/i)){
[tab][tab]for(i=0; i<theselect.options.length; i++){
[tab][tab][tab]if(theselect.options.value==val){
[tab][tab][tab][tab]theselect.options.text = text;
[tab][tab][tab][tab]theselect.options.value = url;
[tab][tab][tab]}
[tab][tab]}
[tab][tab]if(val=="xx"){
[tab][tab][tab]iconimage.src = url;
[tab][tab]}
[tab]}
}
if(location.href.match(/action=(post|createpoll|modifypost)/i)){
[tab]theselect.onchange = function(){
[tab][tab]if(theselect.options[theselect.selectedIndex].value.match(/http\:\/\//i)){
[tab][tab][tab]iconimage.src = theselect.options[theselect.selectedIndex].value;
[tab][tab]}
[tab][tab]else {
[tab][tab][tab]iconimage.src = 'http://www.4d5.net/v4images/'+theselect.options[theselect.selectedIndex].value+'.gif';
[tab][tab]}
[tab]}
}
ChangeIcons("thumbup", "Plan X", "http://216.40.206.219/boardimages/sad.gif");
// -->
</script>
The name, not text, of the image. The names, in order, are: xx, thumbup, thumbdown, exclamation, question, lamp, smiley, angry, cheesy, laugh, sad, wink.
The text to change it too.
The new URL for it.
Repeat the entire underlined line for more.
<script type="text/javascript">
<!--
/*
Change Icon Text and Image v2
Copyright © 2005 Bradley Nelson a.k.a. CCWorld
All Rights Reserved
For use on Proboards Boards only.
This Header must remain intact at all times.
Do not re-post without permission.
*/
var theselect = document.getElementsByName("icon").item(0);
var iconimage = document.getElementsByName("iconImage").item(0);
function ChangeIcons(val, text, url){
[tab]if(location.href.match(/action=(post|createpoll|modifypost)/i)){
[tab][tab]for(i=0; i<theselect.options.length; i++){
[tab][tab][tab]if(theselect.options.value==val){
[tab][tab][tab][tab]theselect.options.text = text;
[tab][tab][tab][tab]theselect.options.value = url;
[tab][tab][tab]}
[tab][tab]}
[tab][tab]if(val=="xx"){
[tab][tab][tab]iconimage.src = url;
[tab][tab]}
[tab]}
}
if(location.href.match(/action=(post|createpoll|modifypost)/i)){
[tab]theselect.onchange = function(){
[tab][tab]if(theselect.options[theselect.selectedIndex].value.match(/http\:\/\//i)){
[tab][tab][tab]iconimage.src = theselect.options[theselect.selectedIndex].value;
[tab][tab]}
[tab][tab]else {
[tab][tab][tab]iconimage.src = 'http://www.4d5.net/v4images/'+theselect.options[theselect.selectedIndex].value+'.gif';
[tab][tab]}
[tab]}
}
ChangeIcons("thumbup", "Plan X", "http://216.40.206.219/boardimages/sad.gif");
// -->
</script>
The name, not text, of the image. The names, in order, are: xx, thumbup, thumbdown, exclamation, question, lamp, smiley, angry, cheesy, laugh, sad, wink.
The text to change it too.
The new URL for it.
Repeat the entire underlined line for more.