Post by Mel on Jan 16, 2006 12:57:29 GMT -8
Forum URL: lovehopepeace.proboards80.com
This is the code I was using for my smile faces? It was working fidn then I went and added mroe and now its not working? Is there a limit to how many I can add here? Or did I delete something that I wasn't suppose to??
Thanks Mel
This is the code I was using for my smile faces? It was working fidn then I went and added mroe and now its not working? Is there a limit to how many I can add here? Or did I delete something that I wasn't suppose to??
Thanks Mel
<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]=" img.villagephotos.com/p/2005-12/1126764/angel.gif";
smilie[1]=" img.villagephotos.com/p/2005-12/1126764/cel.gif";
smilie[2]=" img.villagephotos.com/p/2005-12/1126764/bighug.gif";
smilie[3]=" img.villagephotos.com/p/2005-12/1126764/BlingsL.gif";
smilie[4]=" img.villagephotos.com/p/2005-12/1126764/cold.gif";
smilie[5]=" img.villagephotos.com/p/2005-12/1126764/bugeyed.gif";
smilie[6]=" img.villagephotos.com/p/2005-12/1126764/mad.gif";
smilie[7]=" img.villagephotos.com/p/2005-12/1126764/mrhot.gif";
smilie[8]=" img.villagephotos.com/p/2003-8/331226/001.gif";
smilie[9]=" img.villagephotos.com/p/2003-8/331226/0011.gif";
smilie[10]=" img.villagephotos.com/p/2003-8/331226/003.gif";
smilie[11]=" img.villagephotos.com/p/2003-8/331226/0034.gif";
smilie[12]=" img.villagephotos.com/p/2003-8/331226/005.gif";
smilie[13]=" img.villagephotos.com/p/2003-8/331226/009.gif";
smilie[14]=" img.villagephotos.com/p/2003-8/331226/010.gif";
smilie[15]=" img.villagephotos.com/p/2003-8/331226/012.gif";
smilie[16]=" img.villagephotos.com/p/2003-8/331226/024.gif";
smilie[17]=" img.villagephotos.com/p/2003-8/331226/0243.gif";
smilie[18]=" img.villagephotos.com/p/2003-8/331226/aktion033.gif";
smilie[19]=" img.villagephotos.com/p/2003-8/331226/hug.gif";
smilie[20]=" img.villagephotos.com/p/2003-8/331226/hearts.gif";
smilie[21]="http://img.villagephotos.com/p/2005-12/1126764/images.jpg";
smilie[22]="http://img.villagephotos.com/p/2005-12/1126764/rolling.gif";
smilie[23]="http://img.villagephotos.com/p/2005-12/1126764/cheesy.gif";
smilie[24]="http://img.villagephotos.com/p/2005-12/1126764/pooh.gif";
smilie[25]="http://img.villagephotos.com/p/2005-12/1126764/night.gif"
smilie[26]="http://img.villagephotos.com/p/2005-12/1126764/smiley-faces64.gif"
smilie[27]="http://img.villagephotos.com/p/2005-12/1126764/no.gif"
smilie[28]="http://img.villagephotos.com/p/2005-12/1126764/thinking.gif"
smilie[29]="http://img.villagephotos.com/p/2005-12/1126764/peace.gif"
smilie[30]="http://img.villagephotos.com/p/2005-12/1126764/tongue.gif"
smilie[31]="http://img.villagephotos.com/p/2005-12/1126764/sad.gif"
smilie[32]="http://img.villagephotos.com/p/2005-12/1126764/up.gif"
smilie[33]="http://img.villagephotos.com/p/2005-12/1126764/smiley-faces57.gif"
smilie[34]="http://img.villagephotos.com/p/2005-12/1126764/duh.gif"
smilie[35]="http://img.villagephotos.com/p/2005-12/1126764/Frame001.gif"
Smilie[36]=”http://img.villagephotos.com/p/2005-12/1126764/ahhhhhhh.GIF”
Smilie[37]=”http://img.villagephotos.com/p/2005-12/1126764/bubblegum.gif”
Smilie[38]=”http://img.villagephotos.com/p/2005-12/1126764/bikemill.gif”
Smilie[39]=”http://img.villagephotos.com/p/2005-12/1126764/blackeye.gif”
Smilie[40]=”http://img.villagephotos.com/p/2005-12/1126764/buggie.gif”
Smilie[41]=”http://img.villagephotos.com/p/2005-12/1126764/blush.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 Smilie';
for (p2=0; p2<smCode.length;p2++)
{
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 smilies</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>
<!--
/*
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]=" img.villagephotos.com/p/2005-12/1126764/angel.gif";
smilie[1]=" img.villagephotos.com/p/2005-12/1126764/cel.gif";
smilie[2]=" img.villagephotos.com/p/2005-12/1126764/bighug.gif";
smilie[3]=" img.villagephotos.com/p/2005-12/1126764/BlingsL.gif";
smilie[4]=" img.villagephotos.com/p/2005-12/1126764/cold.gif";
smilie[5]=" img.villagephotos.com/p/2005-12/1126764/bugeyed.gif";
smilie[6]=" img.villagephotos.com/p/2005-12/1126764/mad.gif";
smilie[7]=" img.villagephotos.com/p/2005-12/1126764/mrhot.gif";
smilie[8]=" img.villagephotos.com/p/2003-8/331226/001.gif";
smilie[9]=" img.villagephotos.com/p/2003-8/331226/0011.gif";
smilie[10]=" img.villagephotos.com/p/2003-8/331226/003.gif";
smilie[11]=" img.villagephotos.com/p/2003-8/331226/0034.gif";
smilie[12]=" img.villagephotos.com/p/2003-8/331226/005.gif";
smilie[13]=" img.villagephotos.com/p/2003-8/331226/009.gif";
smilie[14]=" img.villagephotos.com/p/2003-8/331226/010.gif";
smilie[15]=" img.villagephotos.com/p/2003-8/331226/012.gif";
smilie[16]=" img.villagephotos.com/p/2003-8/331226/024.gif";
smilie[17]=" img.villagephotos.com/p/2003-8/331226/0243.gif";
smilie[18]=" img.villagephotos.com/p/2003-8/331226/aktion033.gif";
smilie[19]=" img.villagephotos.com/p/2003-8/331226/hug.gif";
smilie[20]=" img.villagephotos.com/p/2003-8/331226/hearts.gif";
smilie[21]="http://img.villagephotos.com/p/2005-12/1126764/images.jpg";
smilie[22]="http://img.villagephotos.com/p/2005-12/1126764/rolling.gif";
smilie[23]="http://img.villagephotos.com/p/2005-12/1126764/cheesy.gif";
smilie[24]="http://img.villagephotos.com/p/2005-12/1126764/pooh.gif";
smilie[25]="http://img.villagephotos.com/p/2005-12/1126764/night.gif"
smilie[26]="http://img.villagephotos.com/p/2005-12/1126764/smiley-faces64.gif"
smilie[27]="http://img.villagephotos.com/p/2005-12/1126764/no.gif"
smilie[28]="http://img.villagephotos.com/p/2005-12/1126764/thinking.gif"
smilie[29]="http://img.villagephotos.com/p/2005-12/1126764/peace.gif"
smilie[30]="http://img.villagephotos.com/p/2005-12/1126764/tongue.gif"
smilie[31]="http://img.villagephotos.com/p/2005-12/1126764/sad.gif"
smilie[32]="http://img.villagephotos.com/p/2005-12/1126764/up.gif"
smilie[33]="http://img.villagephotos.com/p/2005-12/1126764/smiley-faces57.gif"
smilie[34]="http://img.villagephotos.com/p/2005-12/1126764/duh.gif"
smilie[35]="http://img.villagephotos.com/p/2005-12/1126764/Frame001.gif"
Smilie[36]=”http://img.villagephotos.com/p/2005-12/1126764/ahhhhhhh.GIF”
Smilie[37]=”http://img.villagephotos.com/p/2005-12/1126764/bubblegum.gif”
Smilie[38]=”http://img.villagephotos.com/p/2005-12/1126764/bikemill.gif”
Smilie[39]=”http://img.villagephotos.com/p/2005-12/1126764/blackeye.gif”
Smilie[40]=”http://img.villagephotos.com/p/2005-12/1126764/buggie.gif”
Smilie[41]=”http://img.villagephotos.com/p/2005-12/1126764/blush.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 Smilie';
for (p2=0; p2<smCode.length;p2++)
{
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 smilies</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>