Post by Ross on Apr 21, 2006 11:40:02 GMT
Global Footer
Simply put, allows you to use smiley images in your thread title. Just edit the image URLs if you have custom smilies
<script type="text/javascript">
<!--
/* smileys in thread titles
by ross of 101support.proboards.com
please do not repost or redistribute */
var smiley_array = [
['', 'http://s1.images.proboards.com/smiley.gif'],
['', 'http://s1.images.proboards.com/wink.gif'],
['', 'http://s1.images.proboards.com/sad.gif'],
['', 'http://s1.images.proboards.com/rolleyes.gif'],
[':\'(', 'http://s1.images.proboards.com/cry.gif'],
['', 'http://s1.images.proboards.com/shocked.gif'],
['', 'http://s1.images.proboards.com/tounge.gif'],
['', 'http://s1.images.proboards.com/embarassed.gif'],
['', 'http://s1.images.proboards.com/lipsrsealed.gif'],
['', 'http://s1.images.proboards.com/kiss.gif'],
[';D', 'http://s1.images.proboards.com/grin.gif'],
['', 'http://s1.images.proboards.com/cheesy.gif'],
['', 'http://s1.images.proboards.com/huh.gif'],
['', 'http://s1.images.proboards.com/unsure.gif'],
['', 'http://s1.images.proboards.com/cool.gif'],
['', 'http://s1.images.proboards.com/angry.gif']
];
var a = document.getElementsByTagName('a');
smiley_array.reverse();
for(s=0; s<smiley_array.length; s++) {
smiley_array[0] = smiley_array[0].replace(/(\(|\)|\[|\]|\?|\*)/g, '\\$1');
smiley_array[0] = new RegExp(smiley_array[0], 'gi');
smiley_array[1] = '<img src="'+smiley_array[1]+'" border="0" />';
document.title = document.title.replace(smiley_array[0], '');
document.getElementsByTagName('font').item(1).innerHTML = document.getElementsByTagName('font').item(1).innerHTML.replace(smiley_array[0], '');
}
if(location.href.match(/\.com\/?(index.cgi)?\??(&?action=home)?(#.+?)?(&board=.+?)?$/) && !location.href.match(/ion=(display|(pm)?(calendar)?view|search2)/)) {
for(i=0; i<a.length; i++) {
if(a.item(i).href.match(/ion=display/)) {
for(s=0; s<smiley_array.length; s++) {
a.item(i).innerHTML = a.item(i).innerHTML.replace(smiley_array[0], smiley_array[1]);
}
}
}
}
//-->
</script>
Simply put, allows you to use smiley images in your thread title. Just edit the image URLs if you have custom smilies
<script type="text/javascript">
<!--
/* smileys in thread titles
by ross of 101support.proboards.com
please do not repost or redistribute */
var smiley_array = [
['', 'http://s1.images.proboards.com/smiley.gif'],
['', 'http://s1.images.proboards.com/wink.gif'],
['', 'http://s1.images.proboards.com/sad.gif'],
['', 'http://s1.images.proboards.com/rolleyes.gif'],
[':\'(', 'http://s1.images.proboards.com/cry.gif'],
['', 'http://s1.images.proboards.com/shocked.gif'],
['', 'http://s1.images.proboards.com/tounge.gif'],
['', 'http://s1.images.proboards.com/embarassed.gif'],
['', 'http://s1.images.proboards.com/lipsrsealed.gif'],
['', 'http://s1.images.proboards.com/kiss.gif'],
[';D', 'http://s1.images.proboards.com/grin.gif'],
['', 'http://s1.images.proboards.com/cheesy.gif'],
['', 'http://s1.images.proboards.com/huh.gif'],
['', 'http://s1.images.proboards.com/unsure.gif'],
['', 'http://s1.images.proboards.com/cool.gif'],
['', 'http://s1.images.proboards.com/angry.gif']
];
var a = document.getElementsByTagName('a');
smiley_array.reverse();
for(s=0; s<smiley_array.length; s++) {
smiley_array
smiley_array
smiley_array
document.title = document.title.replace(smiley_array
document.getElementsByTagName('font').item(1).innerHTML = document.getElementsByTagName('font').item(1).innerHTML.replace(smiley_array
}
if(location.href.match(/\.com\/?(index.cgi)?\??(&?action=home)?(#.+?)?(&board=.+?)?$/) && !location.href.match(/ion=(display|(pm)?(calendar)?view|search2)/)) {
for(i=0; i<a.length; i++) {
if(a.item(i).href.match(/ion=display/)) {
for(s=0; s<smiley_array.length; s++) {
a.item(i).innerHTML = a.item(i).innerHTML.replace(smiley_array
}
}
}
}
//-->
</script>