Post by foxylady23 on Jun 6, 2007 9:25:29 GMT -5
I found another code for smilies better than other this on work for me other did not my problem is not begin tech enough to work all out I place three saw few but say and more that my problem working how do that and place them all in right place on the code list. here the code:- [/img]");
} else if(obj3){
add("" + obj3, "[/img]");
}
},
build_smiley_table: function(){
this.content = '<div style="margin-top: 14px; width: 130px"><table width="130" align="center" cellspacing="0" cellpadding="0" class="bordercolor"><tr><td>';
this.content += '<table cellpadding="4" cellspacing="1" width="100%"><tr><td width="100%" class="titlebg" align="center">';
this.content += '<select name="addsmiley" onchange="extra_smileys_previewer.add_set(this);"><option></option>';
this.popup_content = "<html><head><style>body { background-color: #DEDBCB; margin: 10px }</style></head><body>";
this.popup_content += '<table width="450" align="center"><tr><td width="450" class="windowbg2" align="center">';
for(s = 0; s < _pv_the_smileys.length; s ++){
this.content += '<option>' + _pv_the_smileys.substring((_pv_the_smileys.lastIndexOf("/") + 1), _pv_the_smileys.lastIndexOf(".")) + '</option>';
this.popup_content += '<img src="' + _pv_the_smileys + '" onmouseover="this.style.cursor = \'pointer\'" onclick="opener.extra_smileys_previewer.add_set(null, null, this.src)" /> ';
}
this.popup_content += '</td></tr></table></body></html>';
this.content += '</select></td></tr><tr><td width="100%" valign="middle" align="center" class="windowbg" height="80" id="sholder" onclick="extra_smileys_previewer.add_set(null, this)" onmouseover="this.style.cursor = \'pointer\'"';
this.content += ' style="height: 80px"></td></tr><tr><td class="windowbg" align="center"><a href="#" onclick="extra_smileys_previewer.popup(); return false">View All</a></td></tr></table></td></tr></table></div>';
},
show_smileys: function(){
if(document.postForm && document.postForm.message){
this.build_smiley_table();
var cells = document.getElementsByTagName("td");
for(c = 0; c < cells.length; c ++){
if(cells.item(c).width == "30%" && cells.item(c).innerHTML.match(/>Message:<\//)){
cells.item(c).innerHTML += this.content;
break;
}
}
}
}
}
extra_smileys_previewer.init();
//-->
</script>
[/quote]this what say at end of the code I am not sure where as go or do add no under othere s I started if some can help out would nice I give a list all smilie like on if any place them on here for me and make sure work ok thanks foxy
<script type="text/javascript">
<!--
/********************************************
*
* Extra Smileys With Previewer - Main Footer
*
* Created By Peter
*
* This script can not be redistributed without
* permission from the creator.
*
* Copyright © 2005 - 2007
* pixelDepth.net
* templates.proboards1.com
*
* All rights reserved
*
*********************************************/
// Add more smileys here, make sure last entry doesn't end with a comma
var _pv_the_smileys = [
"http://smileys.on-my-web.com/repository/Angels_and_Demons/devil-0029.gif",
"http://smileys.on-my-web.com/repository/Angels_and_Demons/devil-0060.gif",
"http://smileys.on-my-web.com/repository/Angels_and_Demons/little-angel-078.gif",
"http://smileys.on-my-web.com/repository/Angels_and_Demons/satanic-0052.gif"
];
var extra_smileys_previewer = {
];
var extra_smileys_previewer = {
content: "",
popup_content: "",
init: function(){
this.show_smileys();
},
popup: function(){
var w = window.open("", "smileys", "width=500,height=270,left=150',top=50,scrollbars");
w.document.write(extra_smileys_previewer.popup_content);
},
add_set: function(obj, obj2, obj3){
if(obj && obj.selectedIndex != 0){
document.getElementById("sholder").innerHTML = '<img src="' + _pv_the_smileys[obj.selectedIndex - 1] + '" />';
} else if(obj2 && obj2.getElementsByTagName("img").item(0)){
add("" + obj2.getElementsByTagName("img").item(0).src, "
<!--
/********************************************
*
* Extra Smileys With Previewer - Main Footer
*
* Created By Peter
*
* This script can not be redistributed without
* permission from the creator.
*
* Copyright © 2005 - 2007
* pixelDepth.net
* templates.proboards1.com
*
* All rights reserved
*
*********************************************/
// Add more smileys here, make sure last entry doesn't end with a comma
var _pv_the_smileys = [
"http://smileys.on-my-web.com/repository/Angels_and_Demons/devil-0029.gif",
"http://smileys.on-my-web.com/repository/Angels_and_Demons/devil-0060.gif",
"http://smileys.on-my-web.com/repository/Angels_and_Demons/little-angel-078.gif",
"http://smileys.on-my-web.com/repository/Angels_and_Demons/satanic-0052.gif"
];
var extra_smileys_previewer = {
];
var extra_smileys_previewer = {
content: "",
popup_content: "",
init: function(){
this.show_smileys();
},
popup: function(){
var w = window.open("", "smileys", "width=500,height=270,left=150',top=50,scrollbars");
w.document.write(extra_smileys_previewer.popup_content);
},
add_set: function(obj, obj2, obj3){
if(obj && obj.selectedIndex != 0){
document.getElementById("sholder").innerHTML = '<img src="' + _pv_the_smileys[obj.selectedIndex - 1] + '" />';
} else if(obj2 && obj2.getElementsByTagName("img").item(0)){
add("" + obj2.getElementsByTagName("img").item(0).src, "
} else if(obj3){
add("" + obj3, "[/img]");
}
},
build_smiley_table: function(){
this.content = '<div style="margin-top: 14px; width: 130px"><table width="130" align="center" cellspacing="0" cellpadding="0" class="bordercolor"><tr><td>';
this.content += '<table cellpadding="4" cellspacing="1" width="100%"><tr><td width="100%" class="titlebg" align="center">';
this.content += '<select name="addsmiley" onchange="extra_smileys_previewer.add_set(this);"><option></option>';
this.popup_content = "<html><head><style>body { background-color: #DEDBCB; margin: 10px }</style></head><body>";
this.popup_content += '<table width="450" align="center"><tr><td width="450" class="windowbg2" align="center">';
for(s = 0; s < _pv_the_smileys.length; s ++){
this.content += '<option>' + _pv_the_smileys
this.popup_content += '<img src="' + _pv_the_smileys
}
this.popup_content += '</td></tr></table></body></html>';
this.content += '</select></td></tr><tr><td width="100%" valign="middle" align="center" class="windowbg" height="80" id="sholder" onclick="extra_smileys_previewer.add_set(null, this)" onmouseover="this.style.cursor = \'pointer\'"';
this.content += ' style="height: 80px"></td></tr><tr><td class="windowbg" align="center"><a href="#" onclick="extra_smileys_previewer.popup(); return false">View All</a></td></tr></table></td></tr></table></div>';
},
show_smileys: function(){
if(document.postForm && document.postForm.message){
this.build_smiley_table();
var cells = document.getElementsByTagName("td");
for(c = 0; c < cells.length; c ++){
if(cells.item(c).width == "30%" && cells.item(c).innerHTML.match(/>Message:<\//)){
cells.item(c).innerHTML += this.content;
break;
}
}
}
}
}
extra_smileys_previewer.init();
//-->
</script>
In the script near the top, there is an array where you can add more smileys if you wish. At the moment there are 3 entries in the array, if I wanted to add 1 more to the list I would do this...
var _pv_the_smileys = [
"http://yourdomain.com/images.gif",
"http://yourdomain.com/images.gif",
"http://yourdomain.com/images.gif",
"http://yourdomain.com/another.gif"
];
See the line in italic? Notice that it is in quotes and that the final line does not have a comma on the end.
var _pv_the_smileys = [
"http://yourdomain.com/images.gif",
"http://yourdomain.com/images.gif",
"http://yourdomain.com/images.gif",
"http://yourdomain.com/another.gif"
];
See the line in italic? Notice that it is in quotes and that the final line does not have a comma on the end.