TEST
Oct 29, 2009 19:13:29 GMT -8
Post by Jason on Oct 29, 2009 19:13:29 GMT -8
<SCRIPT language=JavaScript>
<!--
/*
Extra Smilies, with preview, drop down menu and option to view all
by Todge (Todge-@ntlworld.com)
Copyright © 2005
Please keep this header intact
*/
if (location.href.indexOf('action=headersfooters') == -1)
{
var smilieCode = ' ';
var smCode = new Array();
var smilie = new Array();
var content = ' ';
// Edit below here...
smilie[0]="http://img.photobucket.com/albums/v491/hosta/jason_voorhees.gif";
smilie[1]="http://img.photobucket.com/albums/v491/hosta/freddy_krueger.gif";
smilie[2]="http://img.photobucket.com/albums/v491/hosta/michael_myers.gif";
smilie[3]="http://img.photobucket.com/albums/v491/hosta/pinhead.gif";
smilie[4]="http://img.photobucket.com/albums/v491/hosta/chatterer.gif";
smilie[5]="http://img.photobucket.com/albums/v491/hosta/butterball.gif";
smilie[6]="http://img.photobucket.com/albums/v491/hosta/Female.gif";
smilie[7]="http://img.photobucket.com/albums/v491/hosta/puzzlebox.gif";
smilie[8]="http://img.photobucket.com/albums/v491/hosta/Ghostface.gif";
smilie[9]="http://img.photobucket.com/albums/v491/hosta/chucky.gif";
smilie[10]="http://img.photobucket.com/albums/v491/hosta/candyman.gif";
smilie[11]="http://img.photobucket.com/albums/v491/hosta/tallman.gif";
smilie[12]="http://img.photobucket.com/albums/v491/hosta/leatherface.gif";
smilie[13]="http://img.photobucket.com/albums/v491/hosta/hannibal.gif";
smilie[14]="http://img.photobucket.com/albums/v491/hosta/alien.gif";
smilie[15]="http://img.photobucket.com/albums/v491/hosta/predator.gif";
smilie[16]="http://i.imgur.com/yNRkJyq.gif";
smilie[17]="http://i21.photobucket.com/albums/b273/Jason374/terminator.gif";
smilie[18]="http://img.photobucket.com/albums/b273/Jason374/capt.gif";
smilie[19]="http://img.photobucket.com/albums/b273/Jason374/otis.gif";
smilie[20]="http://img.photobucket.com/albums/b273/Jason374/mama.gif";
smilie[21]="http://img.photobucket.com/albums/b273/Jason374/baby.gif";
smilie[22]="http://img.photobucket.com/albums/b273/Jason374/hugo.gif";
smilie[23]="http://img.photobucket.com/albums/b273/Jason374/tiny.gif";
smilie[24]="http://img.photobucket.com/albums/b273/Jason374/stump.gif";
smilie[25]="http://img.photobucket.com/albums/b273/Jason374/rabbit.gif";
smilie[26]="http://i.imgur.com/Liob5ug.gif";
smilie[27]="http://i21.photobucket.com/albums/b273/Jason374/Garfield2.gif";
smilie[28]="http://img.photobucket.com/albums/b273/Jason374/sonic.gif";
smilie[29]="http://img.photobucket.com/albums/b273/Jason374/homer.gif";
smilie[30]="http://img.photobucket.com/albums/b273/Jason374/marge.gif";
smilie[31]="http://img.photobucket.com/albums/b273/Jason374/bart.gif";
smilie[32]="http://img.photobucket.com/albums/b273/Jason374/lisa.gif";
smilie[33]="http://img.photobucket.com/albums/b273/Jason374/maggie.gif";
smilie[34]="http://img.photobucket.com/albums/b273/Jason374/peter.gif";
smilie[35]="http://img.photobucket.com/albums/b273/Jason374/lois.gif";
smilie[36]="http://img.photobucket.com/albums/b273/Jason374/stewie.gif";
smilie[37]="http://img.photobucket.com/albums/b273/Jason374/brian.gif";
smilie[38]="http://img.photobucket.com/albums/b273/Jason374/chris.gif";
smilie[39]="http://img.photobucket.com/albums/b273/Jason374/meg.gif";
smilie[40]="http://img.photobucket.com/albums/b273/Jason374/mario0013.gif";
smilie[41]="http://img.photobucket.com/albums/b273/Jason374/mario0012.gif";
smilie[42]="http://img.photobucket.com/albums/b273/Jason374/mario0011.gif";
smilie[43]="http://img.photobucket.com/albums/b273/Jason374/beavis.gif";
smilie[44]="http://img.photobucket.com/albums/b273/Jason374/butthead.gif";
smilie[45]="http://img.photobucket.com/albums/b273/Jason374/Cartman.gif";
smilie[46]="http://img.photobucket.com/albums/b273/Jason374/Stan.gif";
smilie[47]="http://img.photobucket.com/albums/b273/Jason374/Kyle.gif";
smilie[48]="http://img.photobucket.com/albums/b273/Jason374/Kenny.gif";
smilie[49]="http://img.photobucket.com/albums/b273/Jason374/tmnt2.gif";
smilie[50]="http://img.photobucket.com/albums/b273/Jason374/tmnt3.gif";
smilie[51]="http://img.photobucket.com/albums/b273/Jason374/tmnt1.gif";
smilie[52]="http://img.photobucket.com/albums/b273/Jason374/tmnt4.gif";
smilie[53]="http://img.photobucket.com/albums/b273/Jason374/mrt.gif";
smilie[54]="http://i.imgur.com/85GOpS1.gif";
smilie[55]="http://i.imgur.com/d9hAcI4.gif";
smilie[56]="http://i.imgur.com/rALADwv.gif";
smilie[57]="http://i.imgur.com/NuUDyft.gif";
smilie[58]="http://i.imgur.com/blKJEWC.gif";
smilie[59]="http://i.imgur.com/TGbGQLd.gif";
smilie[60]="http://img.photobucket.com/albums/b273/Jason374/cool23.gif";
smilie[61]="http://i.imgur.com/j84Wl7B.gif";
smilie[62]="http://i.imgur.com/ynlcuFN.gif";
smilie[63]="http://i.imgur.com/oNSaLtJ.gif";
smilie[64]="http://i.imgur.com/m5uOG3v.gif";
smilie[65]="http://i.imgur.com/BtDrgO6.gif";
smilie[66]="http://i.imgur.com/OZdMYTK.gif";
smilie[67]="";
smilie[68]="http://img.photobucket.com/albums/b273/Jason374/ASSHOLE.gif";
smilie[69]="http://i.imgur.com/Bl6THax.gif";
smilie[70]="http://i.imgur.com/Yd4coD8.gif";
smilie[71]="http://img.photobucket.com/albums/b273/Jason374/rolleye04.gif";
smilie[72]="http://i.imgur.com/B2EyHbm.gif";
smilie[73]="http://img.photobucket.com/albums/b273/Jason374/love20.gif";
smilie[74]="http://i.imgur.com/cT1AxJb.gif";
smilie[75]="http://i.imgur.com/4zpYEAG.gif";
smilie[76]="http://img.photobucket.com/albums/b273/Jason374/happy11.gif";
smilie[77]="http://i.imgur.com/ThTZ7d5.gif";
smilie[78]="http://i.imgur.com/Qq6MmPj.gif";
smilie[79]="http://i.imgur.com/a4bOLrF.gif";
smilie[80]="http://i.imgur.com/5UlIhGI.gif";
smilie[81]="http://i.imgur.com/CoB6Plh.gif";
smilie[82]="http://img.photobucket.com/albums/b273/Jason374/mad44.gif";
smilie[83]="http://i.imgur.com/nPZPYzc.gif";
smilie[84]="http://i.imgur.com/sCnjqIZ.gif";
smilie[85]="http://img.photobucket.com/albums/b273/Jason374/tongue11.gif";
smilie[86]="http://i.imgur.com/y0bwntl.gif";
smilie[87]="http://i.imgur.com/n8b18xZ.gif";
smilie[88]="http://i.imgur.com/7c8qvNM.gif";
smilie[89]="http://img.photobucket.com/albums/b273/Jason374/lipssealed.gif";
smilie[90]="http://i.imgur.com/0x5BfrC.gif";
smilie[91]="http://i.imgur.com/wLmLCFh.gif";
smilie[92]="http://i.imgur.com/aRwLiUt.gif";
smilie[93]="http://i.imgur.com/bpFqWXm.gif";
smilie[94]="http://i.imgur.com/Qm1O0W2.gif";
smilie[95]="http://i.imgur.com/u2vEXbV.gif";
smilie[96]="http://i.imgur.com/B9scFDl.gif";
smilie[97]="http://i.imgur.com/hDfeqjV.gif";
smilie[98]="http://i.imgur.com/APmuqA5.gif";
smilie[99]="http://i.imgur.com/fFKsrW9.gif";
smilie[100]="http://i.imgur.com/iethmPg.gif";
smilie[101]="http://i.imgur.com/LwVYtR8.gif";
smilie[102]="http://img.photobucket.com/albums/b273/Jason374/winking12.gif";
smilie[103]="http://i.imgur.com/es5kXcV.gif";
smilie[104]="http://i.imgur.com/Q9MhkMW.gif";
smilie[105]="http://i.imgur.com/Sr3fILG.gif";
smilie[106]="http://i.imgur.com/OQmOz5j.gif";
smilie[107]="http://i.imgur.com/DdL3Tcv.gif";
smilie[108]="http://i.imgur.com/6Lie3sH.gif";
smilie[109]="http://i.imgur.com/WU9FZnv.gif";
smilie[110]="http://img.photobucket.com/albums/b273/Jason374/sad02.gif";
smilie[111]="http://i.imgur.com/iethmPg.gif";
// Edit above here...
// Cache smilies...
document.write('<font ID="theSmilies" style="display: none;">');
for(t=0; t<smilie.length; t++)
{
smCode[t] = '#'+smilie[t].split('/')[smilie[t].split('/').length-1].split('.')[0]+'#';
document.write(' <a href=\'javascript:add(" '+smCode[t]+' ")\'><img src="'+smilie[t]+'" border="0" alt=" '+smCode[t]+' "/></a> ');
}
document.write('</font>');
// set variables
smilieCode += '<br /><br /><table bgcolor="000000" border="0"><TR><TD><select name="selectsmilie" style="width: 120px;" onChange="aS(this.options[this.selectedIndex].value)"><option>Select Smileys';
for (p2=0; p2<smCode.length[img]http://i.imgur.com/2Ix3EXd.gif[/img]2++)
{
smilieCode += '<option value=" '+smCode[p2]+' ">'+smCode[p2];
}
smilieCode += '</select></TD></TR><TR><TD ID="smile" class="windowbg2" height="60" align="center" valign="middle">';
smilieCode += '</TD></TR>';
smilieCode += '<TR><TD class="windowbg2" align="center" valign="middle" height="15"><a href="javascript:void(0)" onClick="popsmilies()">View all Smileys</a></TD></TR></table>';
var winleft = (screen.width/2)-250;
var winatts = 'width=500,height=200,left='+winleft+',top=50,scrollbars';
content = document.getElementsByTagName('style')[0].innerHTML;
content = '<html><head></head><style>'+content+'</style><body>';
content += '<br><table width="450" cellspacing="1" cellpadding="0" border="0" align="center" class="bordercolor">';
content += '<tr><td width="450" class="catbg" align="center"><font>Extra Smilies</font></td></tr>';
content += '<tr><td width="450" class="windowbg2" align="center">'
for(t=0; t<smCode.length; t++)
{
content += " <img src=\""+smilie[t]+"\" border=\"0\" alt=\" "+smCode[t]+" \" style=\"cursor:hand;\" onMouseDown=\"window.opener.add(\' "+smCode[t]+" \');document.focus();\"> ";
}
content += '</td></tr></table></body></html>';
// display smilies
function aS(smiley)
{
for(t=0; t<smCode.length; t++)
{
if(smiley.match(smCode[t]))
{
document.getElementById('smile').innerHTML = ' <a href=\'javascript:add(" '+smCode[t]+' ")\'><img src="'+smilie[t]+'" border="0" alt=" '+smCode[t]+' "/></a> ';
}
}
}
function popsmilies()
{
var smilieWindow = window.open("","newWindow",winatts);
smilieWindow.document.write(content);
}
// list smilies
var TD = document.getElementsByTagName('TD');
for(t=0; t<TD.length; t++)
{
if(TD[t].width == '30%' && TD[t].className == 'windowbg2' && TD[t].innerHTML.match('Message:'))
{
TD[t].vAlign = 'top';
TD[t].innerHTML += smilieCode;
}
}
// show smilies in posts
var post = document.getElementsByTagName('TD');
for(pc=0; pc<post.length; pc++)
{
if(post[pc].colSpan =='3' && post[pc].vAlign == 'top')
{
for(t=0; t<smCode.length; t++)
{
post[pc].getElementsByTagName('font')[0].innerHTML = post[pc].getElementsByTagName('font')[0].innerHTML.replace(new RegExp(smCode[t],"g"),'<img src="'+smilie[t]+'" border="0">');
}
}
}
}
// -->
</script>
<script language=JavaScript>
<!--
var QR = document.getElementsByTagName('TD');
for(q=0; q<QR.length; q++)
{
if(QR[q].className == 'titlebg' && QR[q].innerHTML.match('Quick Reply'))
{
smilieCode = smilieCode.split('<br /><br />')[1];
content = content.replace(/add/g,'adds');
function adds(smilie)
{
var tArea=document.getElementsByTagName('textarea');
tArea[0].value=tArea[0].value+smilie;
}
function aS(smiley)
{
for(t=0; t<smCode.length; t++)
{
if(smiley.match(smCode[t]))
{
document.getElementById('smile').innerHTML = ' <a href=\'javascript:adds(" '+smCode[t]+' ")\'><img src="'+smilie[t]+'" border="0" alt=" '+smCode[t]+' "/></a> ';
}
}
}
document.write('<style> textarea { WIDTH: 100%; }</style>');
var QRcode = QR[q+1].innerHTML;
QR[q+1].innerHTML = '<table width="100%"><tr><td>'+QRcode+'</td><td align="center" valign="middle" width="30%">'+smilieCode+'</td></tr></table>';
}
}
// -->
</script>
<script type="text/javascript">
<!--
/*
Spoiler tags by Todge (Todge-@ntlworld.com)
Copyright © 2005
Please keep this header intact
*/
var newButton = 'http://i11.photobucket.com/albums/a192/cds1976/hmamspoilerfinal.jpg';
// Change image and function of button...
var A = document.getElementsByTagName('A');
for(t=0; t<A.length; t++)
{
if(A[t].href == 'javascript:add("[tt]","[/tt]")')
{
A[t].href = 'javascript:add("[spoiler]","[/spoiler]")';
A[t].innerHTML = '<img src="'+newButton+'" border="0">';
break;
}
}
// Create spoiler table...
var spoiler='<center><table bgcolor="000000" border="0" class="bordercolor" align="center" border="0" cellpadding="0" cellspacing="1" width="90%">';
spoiler+='<tr><td bgcolor="000000" border="0" class="spoilertitle" width="100%" align="center"><b>SPOILER WARNING! (Click to view)</b><td><tr>';
spoiler+='<tr style="display: none"><td class="spoilerbody">';
// Find spoilers and insert table into posts...
var post = document.getElementsByTagName('TD');
for(t=0; t<post.length; t++)
{
if(post[t].align=='right'&&post[t].height=='20'&&post[t].vAlign=='bottom'&&post[t].width=='40%')
{
var posttxt=post[t+1].innerHTML;
posttxt=posttxt.split('[spoiler]');
for(s=1; s<posttxt.length; s++)
{
posttxt[s]=posttxt[s].split('[/spoiler]');
posttxt[s][0]=spoiler+posttxt[s][0]+'</td></tr></table></center>';
posttxt[s]=posttxt[s].join(' ');
}
posttxt=posttxt.join(' ');
post[t+1].innerHTML=posttxt;
}
}
// how spoiler when clicked on...
var spoil = document.getElementsByTagName('table');
for(s=0; s<spoil.length; s++)
{
if(spoil[s].getElementsByTagName('TD')[0].className=='spoilertitle')
{
spoil[s].onclick=function(){if(this.getElementsByTagName('TR')[2].style.display=='none'){this.getElementsByTagName('TR')[2].style.display='';}else{this.getElementsByTagName('TR')[2].style.display='none';}}
}
}
// -->
</script>
<script type="text/javascript">
<!--
/* advanced Mod drop down boxes by ross
[url]http://support.proboards.com[/url] */
var td=document.getElementsByTagName("td");
for(e=0; e<td.length; e++) {
if(td[e].width=="100%" && (td[e].colSpan=="2" || td[e].colSpan=="8") && td[e].getElementsByTagName('img')[0].alt.match(/Admin Functions/)) {
var a = td[e].getElementsByTagName("a");
if(location.href.match(/board=/) && td[e].colSpan=="8") {
var advMod='<select onchange="if(this.options[this.selectedIndex].value) document.ammForm.nextaction.value=this.options[this.selectedIndex].value; document.ammForm.submit(); return true;"><option value="">Admin Functions</option><option value="">----------</option>';
for(r=0;r<a.length;r++) {
for(j=0;j<a[r].attributes.length;j++) {
if(a[r].attributes.item(j).nodeName.match(/onclick/i))
{
var val = a[r].attributes.item(j).nodeValue.split('\';doc')[0].split('lue=\'')[1];
var nam = (a[r].firstChild.alt.match(/\[(.+?)\]/))? RegExp.$1 : a[r].firstChild.alt;
advMod +='<option value="'+val+'">'+nam+'</option>';
break;
}
}
}
} else {
var advMod='<select onChange="if(this.options[this.selectedIndex].value) window.location=this.options[this.selectedIndex].value;"><option value="">Admin Functions</option><option value="">----------</option>'
for(r=0;r<a.length;r++) {
var val = a[r].href;
var nam = (a[r].firstChild.alt.match(/\[(.+?)\]/))? RegExp.$1 : a[r].firstChild.alt;
advMod+='<option value="'+val+'">'+nam+'</option>';
}
}
advMod+='</select>'
td[e].innerHTML=advMod;
}
}
//-->
</script>