Post by Mistah Showtime on Apr 5, 2009 11:46:12 GMT -5
<script>
/*Smiley Gallery
Created By Wrighty
Do not: rip, repost or claim*/
var s = {
d: document.getElementsByTagName('td'),
win: function(){
var g = window.open("","Smilies", "width=325,height=10,scrollbars=yes").document.body.appendChild(this.x);
},
link: '<a href = "javascript: s.win();">Smiley Gallery</a>',
x: document.createDocumentFragment(),
s: '',
init: function(){
if(document.postForm){
this.build();
}
},
build: function(){
for(a = 0; a < this.d.length; a++){
if(/Smilies:/.test(this.d.innerHTML) && /windowbg2/.test(this.d.className)){
this.d[a+1].innerHTML = this.d[a+1].innerHTML.replace(/add/g, 'window.opener.add');
this.s = this.d[a+1].firstChild.cloneNode(true);
this.d[a+1].firstChild.innerHTML = this.link;
break;
}
}
this.x.appendChild(document.createElement('br'));
var d = document.createElement('center');
d.appendChild(this.s);
if(typeof w_e_smile != 'undefined'){
for(a = 0; a < w_e_smile.length; a++){
var x = document.createElement('a');
var y = document.createElement('img');
y.src = w_e_smile[0];
y.border = '0';
x.appendChild(y);
x.href = 'javascript:window.opener.add(" ' + w_e_smile[1] + '")';
d.appendChild(x);
d.appendChild(document.createTextNode(' '));
}
}
d.appendChild(document.createElement('br'));
var ar = document.createElement('a');
ar.href = 'javascript: window.close();';
ar.appendChild(document.createTextNode('Close Window'));
d.appendChild(ar);
this.x.appendChild(d);
}
};
s.init();
</script>
This goes in the Global Footer. I need to figure out how to add smileys to the page that pops up.
/*Smiley Gallery
Created By Wrighty
Do not: rip, repost or claim*/
var s = {
d: document.getElementsByTagName('td'),
win: function(){
var g = window.open("","Smilies", "width=325,height=10,scrollbars=yes").document.body.appendChild(this.x);
},
link: '<a href = "javascript: s.win();">Smiley Gallery</a>',
x: document.createDocumentFragment(),
s: '',
init: function(){
if(document.postForm){
this.build();
}
},
build: function(){
for(a = 0; a < this.d.length; a++){
if(/Smilies:/.test(this.d.innerHTML) && /windowbg2/.test(this.d.className)){
this.d[a+1].innerHTML = this.d[a+1].innerHTML.replace(/add/g, 'window.opener.add');
this.s = this.d[a+1].firstChild.cloneNode(true);
this.d[a+1].firstChild.innerHTML = this.link;
break;
}
}
this.x.appendChild(document.createElement('br'));
var d = document.createElement('center');
d.appendChild(this.s);
if(typeof w_e_smile != 'undefined'){
for(a = 0; a < w_e_smile.length; a++){
var x = document.createElement('a');
var y = document.createElement('img');
y.src = w_e_smile[0];
y.border = '0';
x.appendChild(y);
x.href = 'javascript:window.opener.add(" ' + w_e_smile[1] + '")';
d.appendChild(x);
d.appendChild(document.createTextNode(' '));
}
}
d.appendChild(document.createElement('br'));
var ar = document.createElement('a');
ar.href = 'javascript: window.close();';
ar.appendChild(document.createTextNode('Close Window'));
d.appendChild(ar);
this.x.appendChild(d);
}
};
s.init();
</script>
This goes in the Global Footer. I need to figure out how to add smileys to the page that pops up.